drsound / fault_tolerant_router

A daemon, running in background on a Linux router or firewall, monitoring the state of multiple internet uplinks/providers and changing the routing accordingly. LAN/DMZ internet traffic is load balanced between the uplinks.
GNU General Public License v2.0
185 stars 20 forks source link

Handle PPP interfaces with no IP address #16

Closed drsound closed 8 years ago

drsound commented 9 years ago

Avoid using and testing a PPP interface if it has no IP address (for examle because it is in handshake phase or the DSL is down).

saikumar25 commented 9 years ago

Hi,

Sorry didnt check my mail , thanks for the upgrade to support ppp interfaces as well . Well , in my test scenario I kept WAN 1 as ethernet interface and WAN 2 as ppp

I generated /etc//fault_tolerant_router.conf and when I was trying to generate iptables for it by saying fault_tolerant_router generate_iptables

I am getting an error saying : /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplink.rb:48:in detect_ppp_ips!': undefined methodgetifaddrs' for Socket:Class (NoMethodError) from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplink.rb:36:in initialize' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:innew' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:in block in initialize' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:ineach' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:in each_with_index' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:ineach' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:in map' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/lib/fault_tolerant_router/uplinks.rb:4:ininitialize' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/bin/fault_tolerant_router:90:in new' from /var/lib/gems/1.9.1/gems/fault_tolerant_router-1.1.0/bin/fault_tolerant_router:90:in<top (required)>' from /usr/local/bin/fault_tolerant_router:23:in load' from /usr/local/bin/fault_tolerant_router:23:in

'

drsound commented 8 years ago

Please try the just released 1.2.0 version and let me know if your problem is solved.

saikumar25 commented 8 years ago

OK thanks. On 5 Jul 2016 17:55, "Alessandro Zarrilli" notifications@github.com wrote:

Please try the just released 1.2.0 version and let me know if your problem is solved.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drsound/fault_tolerant_router/issues/16#issuecomment-230463765, or mute the thread https://github.com/notifications/unsubscribe/AK_NfoSMrdQrDd6e49Eg6m2dJ6DIqReWks5qSk06gaJpZM4FNv0M .