
https://bugzilla.novell.com/show_bug.cgi?id=259698#c6 --- Comment #6 from Reinhard Max <max@novell.com> 2007-11-27 05:50:54 MST --- BTW, OpenVPN uses a clever trick override the default route while the tunnel is up without actually deleting and replacing it. That way it doesn't need to remember the original default gateway and put it back when being shut down. It adds it's gateway as two routes to 0.0.0.0/1 and 128.0.0.0/1, which means that the default route is still there, but will never be used as long as these two routes are in place. See the def1 flag to the --redirect-gateway option in openvpn(8) for details. I think our scripts should do the same for tunnels that are configured to redirect the default route through itself, but need to restore it when shut down. That way the scripts don't have to keep track of the original default gateway, which means that the old default route will come back automatically, even when the tunnel interface is shut down manually with ifconfig or ip. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.