PPTP plugin for network manager sets wrong routing table entries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager |
Fix Released
|
High
|
|||
network-manager-pptp (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: network-
Dear developers,
I noticed the following nasty bug with my Ubuntu 7.04 Feisty Fawn when I try to connect to the VPN-PPTP secured wireless network at the University of Potsdam campus via the PPTP plugin of the network manager: After creating the PPTP connection with VPN-server the internet connection doesn't work. The reason is that after the connection is established, the route to the VPN-Server is changed in a way that all packages to the VPN server are send to the networks gateway instead of to the VPN server. Therefore the connection does not work and after slightly more then a minute the PPTP-demon decides to break the connection because he do not get any echo responses. Additionally to this, the network manager applet does not show that the connection breaks.
You can reproduce this bug on our campus by doing the following:
1. Use the network manager and activate the “Universitaet Potsdam ZEIK” network.
2. Activate the VPN-Connection from the file “UP-ZEIK.pcf” (see attachment or below)
Execution of “route -n” results in:
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
172.16.3.253 172.16.3.254 255.255.255.255 UGH 0 0 0 eth0
172.16.2.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
The problem is that the VPN-Server 172.16.3.253 is routed via the Gateway 172.16.3.254.
MANUAL SOLUTION:
The manual solution to this problem is to simply change the routing table within 60 seconds after the VPN connection is established (after the applet stopped the animation sequence which indicates that the connection phase is ongoing). To properly change the routing table the following commands have to be entered from the user “root”:
route del 172.16.3.253
route add 172.16.3.253 dev eth0
This results in the following routing table:
172.16.3.253 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
172.16.2.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
Hint: eth0 is the WLAN interface on my laptop... this might differ from your laptop.
BUG SOLUTION PROPOSALS
a) Please correct the routing strategy of the PPTP applet.
b) Alternatively: Please provide at least a possibility to manually set the route in the parameters of the VPN-connection.
In case you need a tester at the location, please do not hesitate to contact me.
Best regards,
Dominik
Changed in network-manager: | |
status: | Unknown → New |
Changed in network-manager-pptp: | |
status: | New → Confirmed |
Changed in network-manager: | |
status: | New → Confirmed |
Changed in network-manager: | |
status: | Confirmed → Fix Released |
Changed in network-manager: | |
importance: | Unknown → High |
[main]
Description=UP-ZEIK
Connection- Type=pptp
PPTP-Server= vpn.wlan. rz.uni- potsdam. de
Use-Peer-DNS=yes
Encrypt-MPPE=yes
Encrypt- MPPE-128= yes
Compress-MPPC=no
Compress-Deflate=no
Compress-BSD=no
PPP-Lock=yes
Auth-Peer=no
Refuse-EAP=no
Refuse-CHAP=no
Refuse-MSCHAP=no
MTU=1500
MRU=1500
LCP-Echo-Failure=10
LCP-Echo- Interval= 10
PPP-Custom-Options=
Peer-DNS- Over-Tunnel= no
X-NM-Routes=
Use-Routes=no