Code Monkey home page Code Monkey logo

wanfailoverscript's People

Contributors

ghenry22 avatar louwrentius avatar

wanfailoverscript's Issues

not working, not failing over

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

MAX_LATENCY greater than 2147

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

any support for PPPoE ????? when gateway information is dynamic

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

Bad info: Max latency in ms - its in seconds

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

Problem with failover between primany ppp0 connection and seconday ethernet DSL connetion.

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

Remove bash dependency

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

doesn't work as expected

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.