Add workaround for PPP default gateway set to 0.0.0.0
Migrated from: https://tracker.clearos.com/view.php?id=2298
Reported by: Peter Baldwin
On some PPP connections, the default gateway is set to 0.0.0.0, e.g. the routing table looks like:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
123.123.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 203.55.228.88 255.255.255.0 UG 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
This causes grief for the IPsec configuration. Investigate.
Developer Comment:
If this is for detecting the left/rightnexthop parameter, then it would be better to remove the left/rightnexthop from the ipsec configuration as ipsec does a very good job of auto-detecting them.
Edited by Nick