I am experiencing the exact same problem using Ubuntu 11.04 (wired connection). I have setup a PPTP VPN connection via the network manager, following my VPN provider's instructions to the letter:
1. input the IP address of the target computer.
2. input your user name. Leave all else blank.
3. hit Advanced button.
4. check: MSCHAPv2
5. check: Use Point-to-point encryption (MPPE)
6. select: 128-bit
7. check: Allow stateful encryption
8. check: Allow PPP echo packets
9. Leave all else blank. Hit OK, OK to save and get out.
I am disconnected at seemingly random periods of time after connecting. Sometimes the connection might stay open for 2 hours, but most of the time I am disconnected within 5 minutes. Once disconnected, the network manager shows that I am still connected. I have to select VPN CONNECTIONS > DISCONNECT VPN, and then connect again.
I have written to the systems administrator who replied with:
"According to our debug log the disconnections are caused by malformed GRE packets. We have a lot of bad checksums on your connection."
I can stay connected for indefinitely when using Mac OS (Lion) or Windows 7, so I very much doubt it's my hardware or my ISP.
I'm guessing that there aren't that many Ubuntu Desktop users out there who use a PPTP VPN connections, hence this problem is either not confirmed and very low on the priority list. Unfortunately for me, the problem is so annoying that I can't use Ubuntu (a reliable VPN connection is essential for me).
Update: this is what is reported in my /var/log/syslog after the disconnection occurs:
Code:
Oct 10 05:44:27 iMac-Ubuntu pptp[11871]: nm-pptp-service-11745 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 10 05:44:27 iMac-Ubuntu pptp[11871]: nm-pptp-service-11745 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
Oct 10 05:44:27 iMac-Ubuntu pptp[11871]: nm-pptp-service-11745 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Oct 10 05:44:27 iMac-Ubuntu pptp[11871]: nm-pptp-service-11745 log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
Oct 10 05:44:27 iMac-Ubuntu pptp[11871]: nm-pptp-service-11745 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Modem hangup
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Connect time 22.6 minutes.
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Sent 36219320 bytes, received 1371467319 bytes.
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: MPPE disabled
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Connection terminated.
Oct 10 05:44:27 iMac-Ubuntu NetworkManager[806]: <info> VPN plugin state changed: 5
Oct 10 05:44:27 iMac-Ubuntu NetworkManager[806]: <info> VPN plugin state changed: 6
Oct 10 05:44:27 iMac-Ubuntu NetworkManager[806]: <info> VPN plugin state change reason: 0
Oct 10 05:44:27 iMac-Ubuntu NetworkManager[806]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Terminating on signal 15
Oct 10 05:44:27 iMac-Ubuntu pppd[11861]: Exit.
Oct 10 05:44:28 iMac-Ubuntu NetworkManager[806]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
Oct 10 05:44:28 iMac-Ubuntu NetworkManager[806]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Oct 10 05:44:33 iMac-Ubuntu NetworkManager[806]: <info> VPN service 'pptp' disappeared
Bookmarks