mstraubac / wanfailoverscript Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/wanfailoverscript
Automatically exported from code.google.com/p/wanfailoverscript
I've tested your fine script and found two major issues with it
1. It will just "bounce" between gateways for me. As I see it, script will test
for availability with icmp but as it fails on primary gw targets are once again
reachable from secondary and the script once again switch to primary!? Are you
sure you can test without -I ping command option and get desired behavior?
2. Default value of MAX_LATENCY is total overkill, ping will just stall if
default gw isn't available on primary interface which is most probable cause of
failure.
Best regards,
Nikola
Original issue reported on code.google.com by [email protected]
on 29 Nov 2012 at 9:50
Wan Fail over script works fine for me when i make DSL connection as Primary
and 3g connection as Secondary. And default gateway in routing table updates
correctly based on the link failure of this connection. But after interchanging
modes (primary and secondary) , it doesn't work for me. The scenario is,
I made ppp0 connetion as primary and DSL connection as secondary . In this case
wfs script running fine upto failover occurs. Thats if i disconnect 3g dongle
for the failover to occur, all routing entries associated with ppp0 interface
disappear. And the wfs doesn't find the host gateway for the checking of
primary connection. So whats the solution for me ?
Thanks in Advance,
Sanju
Original issue reported on code.google.com by [email protected]
on 2 Apr 2014 at 5:54
What steps will reproduce the problem?
1. Disconnecting eth0 link so system fails over to eth1
2. route table doesn't change
3. /var/log/messages shows wfs inital start entry but nothing after eth0 goes
offline
What is the expected output? What do you see instead?
I did this this section
May 29 21:47:08 server WFS: INFO ------------------------------
May 29 21:47:08 server WFS: INFO WAN Failover Script 2.0
May 29 21:47:08 server WFS: INFO ------------------------------
May 29 21:47:08 server WFS: INFO Primary gateway: 10.0.0.1
May 29 21:47:08 server WFS: INFO Secondary gateway: 10.0.0.1
May 29 21:47:08 server WFS: INFO Threshold before failover: 3
May 29 21:47:08 server WFS: INFO Number of target hosts: 4
May 29 21:47:08 server WFS: INFO Tests per host: 2
May 29 21:47:08 server WFS: INFO ------------------------------
but I didn't see anything WFS afterwards.
What version of the product are you using? On what operating system?
2.03 on centos 6.5
Please provide any additional information below.
what is the highest debug level I can set to see more diag info?
Original issue reported on code.google.com by [email protected]
on 19 May 2015 at 8:23
Is there any chance to remove the dependency to bash?
I'm asking because I'd like to run the script on OpenWRT and on my router
(Edimax 6200n) isn't enough space availabe to install bash. There is only "ash"
and "sh" available.
Original issue reported on code.google.com by [email protected]
on 2 Feb 2014 at 9:43
Hello
I found small problem in info log which can be confusing.
line 154 in wfs - version 2.04 (and 2.03 too)
log INFO "Max latency in ms: $MAX_LATENCY"
but correct is
log INFO "Max latency in seconds: $MAX_LATENCY"
because paramter of ping -W is in seconds
Thanks for your work
Original issue reported on code.google.com by [email protected]
on 29 Sep 2013 at 8:48
I've tried several linux boxes and ping will return error "bad linger time"
when a MAX_LATENCY greater than 2147 is specified.
This will permanently mark the primary link as down without any error messages.
I suggest using 2147 instead of the specified value or returning an error on
boot.
If this value is diferent on other OSes on boot it could test if "ping -W
MAX_LATENCY 127.0.0.1" returns an error for the sanity test.
Original issue reported on code.google.com by [email protected]
on 15 May 2015 at 10:12
Out put of route -n
X.X.X.X 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.16.16.0 0.0.0.0 255.255.255.252 U 0 0 0 eth2
10.10.1.0 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
Original issue reported on code.google.com by [email protected]
on 5 Feb 2012 at 10:07
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.