[Bug 439511] Re: added IPv4 routes/settings are not saved
sweetsinse
sweetsinsemilla at gmail.com
Thu Oct 1 07:48:07 UTC 2009
as a workaround, i am using a script to do this for me. place/name the
script:
/etc/NetworkManager/dispatcher.d/99vpnfix
and chmod +x it. dont forget to edit the interfaces/network
addresses/host addresses/etc to reflect YOUR actual network!! these
values are what i need and don't apply to anyone else!! (i also use an
extensive /etc/hosts which is why i can use names like db1/db2/etc....)
>>>START SCRIPT
#!/bin/sh -e
# Fix VPN
IFACE="ppp0"
if [ "x$IFACE" = "x$1" ]; then
case "$2" in
vpn-up)
# reinstate the default gateway
/sbin/route del default ppp0
/sbin/route add default gw 192.168.42.1 eth0
# add the network routes
/sbin/route add -net 10.0.0.0 netmask 255.0.0.0 dev ppp0
/sbin/route add -net 192.168.0.0 netmask 255.255.255.0 dev ppp0
/sbin/route add -net 192.168.7.0 netmask 255.255.255.0 dev ppp0
# add the host routes
/sbin/route add -net db1 netmask 255.255.255.255 dev ppp0
/sbin/route add -net db2 netmask 255.255.255.255 dev ppp0
/sbin/route add -net serv1 netmask 255.255.255.255 dev ppp0
;;
esac
fi
<<<END SCRIPT
--
added IPv4 routes/settings are not saved
https://bugs.launchpad.net/bugs/439511
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list