Bug #2982
closedDefault gateway gone when WAN is unplugged then plugged
0%
Description
When I disconnect the WAN cable to the internet, the default route disappears (that is OK - the WAN is down!).
When I connect the WAN cable again, all the stuff that uses WAN explicitly (OpenVPN...) starts fine (does not need a default route), but the default route never appears in the routing table.
I have had a few reports of this. Had one yesterday on 2.1-BETA1 (i386) built on Fri Apr 5 00:57:50 EDT 2013, Alix nanoBSD with single WAN (static public IP) and local subnets on LAN and OPT1. Tried it on my test system just now - 2.1-BETA1 (i386) built on Sun May 5 07:29:11 EDT 2013 with WAN (static private IP behind other stuff) and OPT1 as 2 internet connections, LAN and WiFi as local subnets, and had the same problem.
I can reproduce it easily. The system log does not have anything that looks like an error adding a route to the routing table. Maybe the place in the code where it should be putting back the default route is simply not getting executed?
To get the default route back, I edit and save the WANGW.
Is this really such an easy problem to reproduce? I am surprised that others are not also reporting it.
Files