Try turning on NVRAM Checks in the configuration and restarting WAN Failover.Im running 2.1.0 on a AX86u, Im lucky to get 24hrs without the script going "unresponsive". Nothing shows up in the logs
A lot of users use Skynet (including myself), there could be something else in your configuration / environment causing this issue. Collect debug logs and I'll take a look.Dual Wan Failover has been working great for me (RT-AX86U_Pro). Whether I unplug the ethernet cable or unplug the cable modem coax, the failover to WAN1 happens quickly. Failback takes ~30-60 seconds.
I did notice that once I installed Skynet, the wanfailover script has problems (Secondary Wan keeps changes from disconnected to cold-standby). Once Skynet is uninstalled, the problem resolves.
Log snippet attached (ip address redacted or altered)A lot of users use Skynet (including myself), there could be something else in your configuration / environment causing this issue. Collect debug logs and I'll take a look.
***v2.1.0 Release***
Enhancements:
- Added WAN0 and WAN1 Web GUI configuration options to create routes for the device portals for each WAN interface.
- Added Reset Default Configuration to Configuration Menu, additionally the command argument resetconfig can be used.
- Enhanced uninstallation prompt for verifying to uninstall.
Fixes:
- Fixed an issue where update would hang if WAN Failover wasn't running.
- Fixed an issue that would allow Load Balance FWMarks and Masks to be non-hexidecimal values in console.
- Added function to verify reverse path filtering is disabled after restarting WAN interfaces and when performing initial WAN Status checks. This is already disabled by the firmware by default but automatically re-enables when an interface is restarted and can cause issues with the target IP rules.
They just add routes into the main route table so you can go in there and find them and delete them or a reboot will clear them out. May need more info on your configuration as this function is working in my prod and lab environment.1. If you add a WAN0 or WAN1 Web GUI IP address, and it doesn't allow you to get to the devices portal, are there any troubleshooting steps to try?
2. If you add a WAN0 or WAN1 Web GUI IP address, and then you want those to be "Disabled" again, how do you revert those back, as the logic only seems to allow an IP address?
They just add routes into the main route table so you can go in there and find them and delete them or a reboot will clear them out. May need more info on your configuration as this function is working in my prod and lab environment.
Yes it works with OpenVPN and and the only condition to stay on Secondary is if the Primary has failed network detection via ping with a 100% loss or you disable the Primary WAN.Hello every body !
First thanks to @Ranger802004 for this huge script.
I try to make it works, but i have a question: does this script is supposed to work with openvpn connections ?
i mean, in case of failure, are VPN routes set to use the secondary WAN ?
An other question: is it possible, in failover mode to keep connection with de secondary WAN ?
in fact in my set up, Primary connexion is the fastest one, but behind a GCNAT (so no possibility to connect from internet to my local network), but the seconday WAN is the slowest connection (but ADSL box with public ip address).
regards
There are configuration settings for this, I would recommend to read the readme.Thanks for the answer.
In load balacing mode (for example 90% - 10%), which is the output WAN used by an openvpn client ? Does the script influence the output WAN port used ?
regards
0: from all lookup local
100: from all to 8.8.8.8 iif lo oif eth4 lookup wan0
100: from all to 8.8.4.4 iif lo lookup wan1
100: from all to 82.67.33.113 lookup wan0
100: from all to 84.17.52.18 lookup wan0
150: from all fwmark 0x80000000/0xf0000000 lookup wan0
150: from all fwmark 0x90000000/0xf0000000 lookup wan1
200: from 192.168.3.2 lookup wan0
200: from 192.168.2.2 lookup wan1
200: from 9.9.9.11 lookup wan0
200: from 149.112.112.11 lookup wan0
200: from 9.9.9.11 lookup wan1
200: from 149.112.112.11 lookup wan1
200: from all to 82.67.33.113 lookup wan1
200: from all to 89.149.22.47 lookup wan1
400: from all to 192.168.3.1 lookup wan0
400: from all to 192.168.2.1 lookup wan1
400: from all to 9.9.9.11 lookup wan0
400: from all to 149.112.112.11 lookup wan0
400: from all to 9.9.9.11 lookup wan1
400: from all to 149.112.112.11 lookup wan1
10210: from all to 192.168.1.0/24 lookup ovpnc1
32766: from all lookup main
32767: from all lookup default
if [[ -z "$(sed -n '/\bEMAILTIMEOUT=\b/p' "$CONFIGFILE")" ]] &>/dev/null;then
logger -p 6 -t "$ALIAS" "Debug - Setting OVPNWAN1PRIORITY Default: Priority 200"
echo -e "EMAILTIMEOUT=30" >> $CONFIGFILE
fi
You can try changing the priority of the Load Balance Rules from the default (150) in the configuration menu (Option 30) to something below your VPN rules. Reboot for this change to take effect.Hello,
i'am facing an issue, i think it is related to ip tables ?!
If router is set to failover, i have access to ip 192.168.1.x through my VPN.
If i switch to Load Balancing, i have no access to 192.168.1.x from a device on the local network, but i can ping a device on 192.168.1.x from the router itself.
Here the ip table:
Maybe it is fwmark that are prior to "10210: from all to 192.168.1.0/24 lookup ovpnc1" ?
Just a little thing in the script, i found a little mistake in a logger message:
i will remove the script to check if this issue is due to the script
NB: i have remove it, and still have a problem ...
maybe something is not set correctly on the router or script config file to get local balancing + vpn client or in the config file ? (i have default config with only option OVPNSPLITTUNNEL=0 )
View attachment 54714
View attachment 54715
i have attached route and ip rule dump .
regards
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!