Author Topic: pppoe failover  (Read 2314 times)

Rafael Muylaert

  • Zen Apprentice
  • *
  • Posts: 49
  • Karma: +1/-0
    • View Profile
pppoe failover
« on: March 21, 2012, 02:15:27 pm »
Hello,

I searched a lot and could not find a solution to my problem.

Is there a way to configure the failover in a way that when my pppoe connection stops responding, it tries to disconnect and dial again until it is successeful?

Rafael Muylaert

  • Zen Apprentice
  • *
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: pppoe failover
« Reply #1 on: March 21, 2012, 05:08:58 pm »
Ok.. I think this might be the problem:

Right after I connect, I can see in network->gateways the ppoe connection gateway (ppp0/xxx.xxx.xx.xx). After a few minutes it vanishes (see image attached)

Also, here are some errors from zentyal.log from moments after I reconnect to pppoe (by changing somenthing and clicking save changes)

Code: [Select]
2012/03/21 12:00:55 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: firewall
2012/03/21 12:00:59 INFO> Base.pm:250 EBox::Module::Base::__ANON__ - Saving config for module: network
2012/03/21 12:01:01 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command set -e
/usr/share/zentyal-network/flush-fwmarks
/sbin/ip route flush table 102
/sbin/ip rule add fwmark 2/0xFF table 102
/sbin/ip rule add from 201.81.204.1 table 102
/sbin/ip rule add from 201.81.206.152 table 102
/sbin/ip route add default via 201.81.204.1 dev eth4 src 201.81.206.152 table 102
/sbin/ip route flush table 101
/sbin/ip rule add fwmark 1/0xFF table 101
/sbin/ip rule add from 189.78.154.47 table 101
/sbin/ip rule add from  table 101
/sbin/ip route add default dev ppp0 table 101
/sbin/ip rule add table main
/sbin/iptables -t mangle -A PREROUTING -m mark --mark 0/0xff -i ppp0 -j MARK --set-mark 1
/sbin/iptables -t mangle -A POSTROUTING -o ppp0 -j MARK --set-mark 1
/sbin/iptables -t mangle -A PREROUTING -m mark --mark 0/0xff -i eth4 -j MARK --set-mark 2
/sbin/iptables -t mangle -A POSTROUTING -o eth4 -j MARK --set-mark 2
/sbin/iptables -t mangle -A POSTROUTING -o ppp0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
/sbin/iptables -t mangle -A PREROUTING -p tcp  --destination-port 20  -i eth0 -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A PREROUTING -p tcp  --destination-port 21  -i eth0 -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -p tcp  --destination-port 20  -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -p tcp  --destination-port 21  -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A PREROUTING -p gre  -i eth0 -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A PREROUTING -p tcp  --destination-port 1723  -i eth0 -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -p gre  -m mark --mark 0/0xff -j MARK --set-mark 1
/sbin/iptables -t mangle -A OUTPUT -p tcp  --destination-port 1723  -m mark --mark 0/0xff -j MARK --set-mark 1 failed.
Error output: Error: an inet prefix is expected rather than "table".

Command output: .
Exit value: 1
2012/03/21 12:01:01 ERROR> ppp-set-iface.pl:40 main::__ANON__ - Call to setRealPPPIface for eth1 failed

I also get a lot of those:
Code: [Select]
2012/03/21 13:46:54 INFO> Service.pm:716 EBox::Module::Service::restartService - Restarting service for module: firewall
and millions of this:
Code: [Select]
2012/03/21 13:38:01 DEBUG> Base.pm:241 EBox::RemoteServices::Base::_queryServicesNameserver - Server backup.internal.cloud.zentyal.com not found via DNS server 10.200.0.4. Reason: query timed out
« Last Edit: March 21, 2012, 05:55:29 pm by Rafael Muylaert »

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: pppoe failover
« Reply #2 on: March 25, 2012, 08:04:46 pm »
Hi Rafael,

this looks like a but with pppoe and wan-failover, I suggest you to create a new ticket on trac.zentyal.org.

Regards,