Firebrick using L2TP over dongle

From AAISP Support Site
Jump to: navigation, search



Some customers prefer to use a dongle as their main connection in areas where ADSL speeds are particularly poor. People may find that CGNAT or other limiting factors within the cellular network break certain services such as SIP. We can get around this using L2TP.

The config below is a small modification to the config generated by the FireBrick itself. The idea is to set the payload-table for L2TP to table 1, and to then put the LAN interface on this table.

 <port name="LAN" ports="1 2 3 4"/>
   <port name="USB" ports="" dongle="Dongle"/>
   <interface name="LAN" port="LAN" table="1" comment="Default LAN interface">
      <subnet name="Default IPs" ip="" nat="true" comment="Temporary IPs for setup only, delete when finished configuring"/>
      <dhcp name="Auto allocated IPs" ip="" comment="Allocates IP addresses automatically"/>
   <interface name="USB" port="USB" comment="Default USB interface">
      <subnet name="DHCP client"/>
      <dongle name="Dongle" comment="Default USB config, does not usually require any more settings"/>
   <l2tp accounting-interval="1:00:00">
      <outgoing name="AAISP" hostname="AAISP" ip="" graph="Tunnel" payload-table="1" username="xxx@a.x" password="xxxxxxxx" tcp-mss-fix="true" comment="To AAISP"/>
   <rule-set name="Firewall: LAN" target-interface="LAN" no-match-action="reject" comment="Default firewall rule for traffic to LAN">
      <rule name="Allow Firebrick" source-interface="self" comment="Allow all from the FireBrick to LAN"/>