Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
userdoc:tt_wan_failover [2018/06/18 14:27] abelbeck [Example: 4G/LTE Modem Failover] |
userdoc:tt_wan_failover [2021/01/19 13:13] mkeuter [AVM FRITZ!Box 6820v3 LTE as LTE Router] |
||
---|---|---|---|
Line 48: | Line 48: | ||
The above network options define the " | The above network options define the " | ||
- | !!Tip ->!! Any changes to these External Failover Interface settings will require a system reboot to be applied. | + | !!Note ->!! Any changes to these External Failover Interface settings will require a system reboot to be applied. |
Line 97: | Line 97: | ||
exit 0 | exit 0 | ||
+ | \\ | ||
+ | ===== Exit Action Script (optional) ===== | ||
+ | |||
+ | !!Note: AstLinux 1.3.7 or later is required!! | ||
+ | |||
+ | Conditionally test when a Secondary -> Primary WAN link change is allowed to occur, by executing a script. | ||
+ | |||
+ | If this script has an exit value of '' | ||
+ | |||
+ | The script must be found at ''/ | ||
+ | |||
+ | chmod 755 / | ||
+ | |||
+ | Example: ''/ | ||
+ | |||
+ | #!/bin/sh | ||
+ | | ||
+ | ## | ||
+ | ## wan-failover-exit action script | ||
+ | ## | ||
+ | ## Automatically called before any Secondary -> Primary WAN link change | ||
+ | ## and the Primary WAN link is reachable. | ||
+ | ## | ||
+ | ## If this script has an exit value of 0 the link change occurs. | ||
+ | ## Else with any other exit value, the failover remains on the Secondary WAN. | ||
+ | ## | ||
+ | ## Note: Do not ' | ||
+ | ## | ||
+ | state=" | ||
+ | primary_if=" | ||
+ | primary_gw=" | ||
+ | secondary_if=" | ||
+ | secondary_gw=" | ||
+ | secondary_gw_ipv6=" | ||
+ | | ||
+ | ## Sanity check, ' | ||
+ | if [ " | ||
+ | exit 0 | ||
+ | fi | ||
+ | | ||
+ | . / | ||
+ | | ||
+ | ## | ||
+ | ## Allow Secondary -> Primary WAN link change ? | ||
+ | ## | ||
+ | | ||
+ | ## Custom user.conf variable, if " | ||
+ | if [ " | ||
+ | exit 1 | ||
+ | fi | ||
+ | | ||
+ | ## Check Asterisk active calls, remain on the Secondary WAN link until no active calls | ||
+ | active_calls=" | ||
+ | if [ -n " | ||
+ | exit 1 | ||
+ | fi | ||
+ | | ||
+ | exit 0 | ||
+ | |||
+ | \\ | ||
===== Testing Failover ===== | ===== Testing Failover ===== | ||
Line 113: | Line 173: | ||
===== PPPoE on Failover Interface ===== | ===== PPPoE on Failover Interface ===== | ||
- | AstLinux supports at most one instance of PPPoE internally, | + | AstLinux supports at most one instance of PPPoE internally, |
- | + | If you need PPPoE for the failover external interface, | |
- | In this example, | + | |
- | + | ||
- | PPPOEUSER=" | + | |
- | PPPOEPASS=" | + | |
- | PPPOEIF=" | + | |
- | EXT2IF=" | + | |
- | As an alternative, | + | This can be achieved |
+ | * | ||
+ | * | ||
+ | !!Note ->!! If you are using half bridge mode, unless you have a static IP Address from your ISP the modem will not update the IP when it is changed until the next dhcp renewal. Due to this, most half-bridge modems use extremely short dhcp lease times which is not optimal. It is better to avoid dynamic IP's altogether and set the Astlinux failover external interface statically to the Public IP, with the DHCP client disabled in the modem. | ||
===== Example: 4G/LTE Modem Failover ===== | ===== Example: 4G/LTE Modem Failover ===== | ||
Line 147: | Line 204: | ||
{{: | {{: | ||
+ | |||
+ | AstLinux " | ||
External Failover Interface: | External Failover Interface: | ||
Line 157: | Line 216: | ||
(empty) | (empty) | ||
- | No added route are needed for access to the web interface of the 4G/LTE Modem when in Router Mode. | + | When in Router Mode, no added route is needed for access to the web interface of the 4G/LTE Modem. |
But, there is another way ... | But, there is another way ... | ||
Line 281: | Line 340: | ||
... do stuff ... | ... do stuff ... | ||
fi | fi | ||
+ | | ||
+ | ===== AVM FRITZ!Box 6820v3 LTE as LTE Router ===== | ||
+ | |||
+ | The AVM FRITZ!Box series is very common in Germany and parts of Europe. The 6820 LTE should work across Europe. | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | * on the homepage click at the 3 dots in the upper right corner and enable " | ||
+ | * under "Home Network/ | ||
+ | * setup your AstLinux Failover interface with a static address from the same network (best below '' | ||
+ | * under " |