[arch-general] Default route not restored (deleted?) after VPN - Juniper Network Connect

Qadri Muhammad.A.Qadri at gmail.com
Sat Feb 25 03:07:26 EST 2012


Hi all,

I've regularly used a VPN to access my school network. I use Juniper ncsvc
to connect. It is worked into a script such that I can just call it, and
then C-c to stop the VPN.

Previously, the default route would be restored after I killed the VPN
connection, so I could close the vpn connection and resume my internet use
without thought. Now, I need to restart networkmanager (or that's the
quickest/dumbest way I could mindlessly think of) to restore the connection
(see output below). What has changed this behavior, and what methods can I
take to getting the old behavior back?

Thanks,
MAQ.


#Output
#Note that echos indicate events that took place in another terminal

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
default         192.168.1.1     0.0.0.0         UG    0      0        0
wlan0
192.168.1.0     *               255.255.255.0   U     0      0        0
wlan0

$ echo "Start VPN"
Start VPN

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
default         123.45.67.89    0.0.0.0         UG    1      0        0 tun0
default         192.168.1.1     0.0.0.0         UG    10     0        0
wlan0
vpn.school.edu   192.168.1.1     255.255.255.255 UGH   1      0        0
wlan0
192.168.1.0     123.45.67.89    255.255.255.0   UG    1      0        0 tun0
192.168.1.0     *               255.255.255.0   U     10     0        0
wlan0
192.168.1.1     *               255.255.255.255 UH    1      0        0
wlan0

$ echo "Stop VPN"
Stop VPN

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0        0
wlan0

$ echo "Restart networkmanager"
Restart networkmanager

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     303    0        0
wlan0

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
default         192.168.1.1     0.0.0.0         UG    0      0        0
wlan0
192.168.1.0     *               255.255.255.0   U     0      0        0
wlan0

$


More information about the arch-general mailing list