Fixed OpenSwan Route in pppd setups.
authorMarcus Scholz <commander1024@ipfire.org>
Sat, 5 Sep 2009 20:01:06 +0000 (22:01 +0200)
committerMarcus Scholz <commander1024@ipfire.org>
Sat, 5 Sep 2009 20:01:06 +0000 (22:01 +0200)
Specifying the explicit ppp0 device prevents wrong route setup after reconnect.

src/ppp/ip-up

index 02f60a6ba97e7491af741efd482c678d52b96754..e62ae3fab8d748c28417915ce19c65ff9c25ad4c 100644 (file)
@@ -80,4 +80,4 @@ mv /tmp/hosts /etc/hosts
 
 [ -e "/var/ipfire/ppp/nobeeps" ] || /etc/rc.d/init.d/beep up
 
-/sbin/ip route replace default via ${IPREMOTE}
+/sbin/ip route replace default via ${IPREMOTE} dev ppp0