Ranger802004
Very Senior Member
It should remove down WAN links from the load balancing and then bring them back whenever a connection is restored.Wow... Fast ... Anyways what should it do?
It should remove down WAN links from the load balancing and then bring them back whenever a connection is restored.Wow... Fast ... Anyways what should it do?
/jffs/scripts/wan-failover.sh manual
wan-failover.sh - Manual Mode
RTNETLINK answers: Network is unreachable
WAN0TARGET=1.1.1.1
WAN1TARGET=1.1.1.1
PINGCOUNT=7
PINGTIMEOUT=3
WANDISABLEDSLEEPTIMER=10
WAN0_QOS_IBW=
WAN1_QOS_IBW=
WAN0_QOS_OBW=
WAN1_QOS_OBW=
WAN0_QOS_OVERHEAD=
WAN1_QOS_OVERHEAD=
WAN0_QOS_ATM=
WAN1_QOS_ATM=
Hi,
In my case it stopped working.
I changed the connection from static + USB dongle to PPPoE + USB dongle.
Now I have:
Bash:/jffs/scripts/wan-failover.sh manual wan-failover.sh - Manual Mode RTNETLINK answers: Network is unreachable
I tried with v1.4.3, v1.4.6.
My wan-failover.conf:
Bash:WAN0TARGET=1.1.1.1 WAN1TARGET=1.1.1.1 PINGCOUNT=7 PINGTIMEOUT=3 WANDISABLEDSLEEPTIMER=10 WAN0_QOS_IBW= WAN1_QOS_IBW= WAN0_QOS_OBW= WAN1_QOS_OBW= WAN0_QOS_OVERHEAD= WAN1_QOS_OVERHEAD= WAN0_QOS_ATM= WAN1_QOS_ATM=
Could you please help?
Thank you in advance,
ampla
Smokey already gave you the correct advice. Targets need to be different and the readme also points this out.Hi,
In my case it stopped working.
I changed the connection from static + USB dongle to PPPoE + USB dongle.
Now I have:
Bash:/jffs/scripts/wan-failover.sh manual wan-failover.sh - Manual Mode RTNETLINK answers: Network is unreachable
I tried with v1.4.3, v1.4.6.
My wan-failover.conf:
Bash:WAN0TARGET=1.1.1.1 WAN1TARGET=1.1.1.1 PINGCOUNT=7 PINGTIMEOUT=3 WANDISABLEDSLEEPTIMER=10 WAN0_QOS_IBW= WAN1_QOS_IBW= WAN0_QOS_OBW= WAN1_QOS_OBW= WAN0_QOS_OVERHEAD= WAN1_QOS_OVERHEAD= WAN0_QOS_ATM= WAN1_QOS_ATM=
Could you please help?
Thank you in advance,
amplatfus
Thank you. I did like you suggested me.Smokey already gave you the correct advice. Targets need to be different and the readme also points this out.
It’s an error coming from the routing table, after you set the targets different make sure you run the kill command to kill all existing instances and let it kick back off from the cron job.Thank you. I did like you suggested me.
It seem that it was still working with my config too, but the message while executing the script in manual mode (even after killing it) is OK?
I am still seeing it with suggested config. Please, is OK?
RTNETLINK answers: Network is unreachable
BR,
amplatfus
Lol maybe one dayYou know that eventually you are going to need a catchy name for your script like all the other ones out there.
Diversion
Skynet
Flex-QoS
WAN-Ranger
DWR ( Dual WAN Ranger)
If you install 1.4.8-beta, just switch your router to load balancing and let the script run, no configuration change necessary for the script. It should run on both.If I want to switch over to a load balancing setup, will the new beta script run okay on my ax86u or is it for the ac86u?
/usr/sbin/curl -s "https://raw.githubusercontent.com/Ranger802004/asusmerlin/main/wan-failover_v1.4.8-beta.sh" && chmod 755 /jffs/scripts/wan-failover.sh && sh /jffs/scripts/wan-failover.sh install
Executing this command, show the whole script in terminal, before the install prompt shows up:
Code:/usr/sbin/curl -s "https://raw.githubusercontent.com/Ranger802004/asusmerlin/main/wan-failover_v1.4.8-beta.sh" && chmod 755 /jffs/scripts/wan-failover.sh && sh /jffs/scripts/wan-failover.sh install
Hi,
Please, in low balance how it suppose to work?
10x,
amplatfus
WAN0TARGET=1.1.1.1
WAN1TARGET=1.0.0.1
PINGCOUNT=3
PINGTIMEOUT=1
WANDISABLEDSLEEPTIMER=10
Hi,
When I discovered this script I had Static IP + USB dongle.
Now I swicthed to PPPoE + USB dongle.
After fresh instal (v1.4.6) with config sugested by you it works only if Primary WAN is down.
After Primary WAN is back UP, the connection remains on Secondary.Code:WAN0TARGET=1.1.1.1 WAN1TARGET=1.0.0.1 PINGCOUNT=3 PINGTIMEOUT=1 WANDISABLEDSLEEPTIMER=10
It switch to Primary only if I check the Allow failback bock on Asus Dual WAN tab.
I am wondering what it could be the fix. Please share if you have any idea why.
Thanks in advance,
amplatfus
I didn’t observe that behavior so, it worked as expected where sessions stuck with the same route. I had mine with a 9:1 ratio, most of my connections were going out my Primary WAN and some were going out my Secondary WAN.The problem that seems to be with load balancing is that the sessions don't stick to a client.
Grab the logs from monitor mode and let me take a look.
/tmp/home/root#:/jffs/scripts/wan-failover.sh monitor
wan-failover.sh - Monitor Mode
tail: /tmp/syslog.log has been replaced; following end of new file
tail: /tmp/syslog.log has been replaced; following end of new file
Jun 19 19:25:42 src@B88X wan-failover.sh: WAN Status - wan1 enabled
Jun 19 19:25:42 src@B88X wan-failover.sh: WAN Status - Route already exists for 1.0.0.1 via 192.168.7.1 dev eth8
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan1 has 0% packet loss
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN1 Active - Verifying WAN1
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN0 Failback Monitor - Monitoring WAN0 via 1.1.1.1 for Failback
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan0 enabled
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan0 is disconnected. IP Address: 0.0.0.0 Gateway: 0.0.0.0
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - wan1 enabled
Jun 19 19:25:44 src@B88X wan-failover.sh: WAN Status - Route already exists for 1.0.0.1 via 192.168.7.1 dev eth8
Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - wan1 has 0% packet loss
Jun 19 19:25:46 src@B88X wan-failover.sh: WAN1 Active - Verifying WAN1
Jun 19 19:25:46 src@B88X wan-failover.sh: WAN0 Failback Monitor - Monitoring WAN0 via 1.1.1.1 for Failback
Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - wan0 enabled
Jun 19 19:25:46 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0
Jun 19 19:26:00 src@B88X wan-failover.sh: WAN Status - wan0 enabled
Jun 19 19:26:01 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0
Jun 19 19:27:00 src@B88X wan-failover.sh: WAN Status - wan0 enabled
Jun 19 19:27:00 src@B88X wan-failover.sh: WAN Status - Creating route 1.1.1.1 via 10.0.0.1 dev eth0
wan_ifnames=eth0 usb
wan1_ifname=eth8
wan0_ifname=eth0
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!