Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

FireBrick 3G Dongle: Difference between revisions

Content deleted Content added
CrazyTeeka (talk | contribs)
CrazyTeeka (talk | contribs)
Line 19: Line 19:


=Basic 3G Config=
=Basic 3G Config=
If you have an AA data SIM, the FireBrick can configured to use this as a backup connection, by using a 3G dongle plugged into the USB port. Any routed legacy IP blocks will continue to work across this link, but so far IPv6 isn't supported (without using a tunnel).
If you have an AAISP data SIM, the FireBrick can be configured to use this as a backup connection, by using a 3G dongle plugged into the USB port. Any routed legacy IPv4 blocks will continue to work across this link, but so far IPv6 isn't supported (without using a tunnel).

The basic config is:
The basic config is:
<syntaxhighlight>
<syntaxhighlight>
Line 27: Line 28:
</syntaxhighlight>
</syntaxhighlight>


Provided you use your AA username and password, then that's all you need to get the dongle configured. If your main broadband connection goes down, the FireBrick will automatically switch to use the 3G connection, then back again once your main connection is back.
Provided you use your AAISP username and password, then that's all you need to get the dongle configured. If your main broadband connection goes down, the FireBrick will automatically switch to use the 3G connection, then back again once your main connection is back.


If the dongle is not using a AAISP SIM, (and therefore your IPv4 blocks won't be re-routed down the dongle, then include NAT="true" on the dongle line.
If the dongle is not using an AAISP SIM, and therefore your IPv4 blocks won't be re-routed down the dongle, then include NAT="true" on the dongle line.


<syntaxhighlight>
== Config with Tunnelled IPv6 Fallback==
<usb>
If using AAISP, then the options for IPv6 routing on the [[:Category:Control Pages|Control Pages]] allow an IPv6 block to be routed to a tunnel endpoint if the main routing (ie ADSL/FTTC) goes down. - This means IPv6 can be routed to the 3G dongle if the main broadband(s) go down. The MTU will be limited though.
<dongle username="me@a.3" password="secret" nat="true"/>
</usb>
</syntaxhighlight>


== Config with Tunneled IPv6 Fallback==
Here we have some profiles to manage the 3G, and also add logging.
If using AAISP, then the options for IPv6 routing on the [[:Category:Control Pages|Control Pages]] allow an IPv6 block to be routed to a tunnel endpoint if the main routing (ie ADSL/FTTC) goes down. This means IPv6 can be routed to the 3G dongle if the main broadband(s) go down. The MTU will be limited though.

Here we have an example config, with default logging. Please make changes to suit your FireBrick setup. If your MTU is 1492 then use ra-mtu="1472" instead of ra-mtu="1480".


<syntaxhighlight>
<syntaxhighlight>
<interface name="LAN" port="LAN" ra-client="false">
<usb log="true" profile="No_PPPoE">
<subnet ip="2001:8b0::1/64" ra="true" ra-other="dhcpv6" ra-mtu="1480" ra-dns="2001:8b0::2020 2001:8b0::2021"/>
<dongle name="3G" username="me@a.3" password="secret" nat="false" graph="Backup" comment="AAISP data SIM"/>
</usb>
</interface>


<interface name="WAN" port="WAN" ra-client="false"/>
<route name="6in4" profile="No_DSL" graph="6in4" ip="::/0" gateway="81.187.81.6" comment="IPv6 Default route when AAISP DSL is down" />


<profile name="DSL" ppp="AAISP" comment="Monitoring the PPP link named AAISP"/>
<ppp name="AAISP" port="WAN" username="me@a.1" password="secret" lcp-rate="1" lcp-timeout="5" graph="AAISP" log="default"/>

<usb>
<dongle name="AAISP-BACKUP" apn="m2m.aql.net" username="me@a.3" password="secret" nat="false" graph="AAISP-BACKUP" log="default"/>
</usb>


<profile name="No_DSL" timeout="PT5S" recover="PT1S" not="DSL"/ comment="Just the not of the previous profile">
<route ip="::/0" gateway="81.187.81.6" comment="IPv6 default route using IPv4 tunnel"/>
</syntaxhighlight>
</syntaxhighlight>