[Desktop-packages] [Bug 991666] Re: VPN Connects Successfully & Then Shortly Thereafter Fails
My current disgusting workaround: --- network-manager-0.9.4.0.orig/src/nm-policy.c +++ network-manager-0.9.4.0/src/nm-policy.c @@ -19,6 +19,9 @@ * Copyright (C) 2007 - 2008 Novell, Inc. */ +#include +#include + #include #include #include @@ -447,6 +450,10 @@ update_ip4_routing_and_dns (NMPolicy *po NMSettingConnection *s_con = NULL; const char *connection_id; int ip_ifindex = 0; + struct stat sb; + +if (stat("/run/nm-policy-block-ip4-updates", &sb) == 0) + return; best = get_best_ip4_device (policy->manager, &best_req); if (!best) which allows me to touch or rm /run/nm-policy-block-ip4-updates upon VPN establish/teardown. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to network-manager in Ubuntu. https://bugs.launchpad.net/bugs/991666 Title: VPN Connects Successfully & Then Shortly Thereafter Fails Status in NetworkManager-PPTP: New Status in “network-manager” package in Ubuntu: Confirmed Bug description: I am able to successfully establish a PPTP VPN connection in Ubuntu 12.04 (kernel 3.2.0-24-generic) but after approximately 30 seconds to 1.5 minutes it will fail. During the connection time I am only able to load about 1-2 webpages and then they freeze and I cannot access resources on the VPN network. I do not believe this is related to my VPN server as I am able to establish VPN connections with my Windows machines and Smartphones all day long with no problems. Is there a solution to this problem? Description: Ubuntu 12.04 LTS Release: 12.04 network-manager: 0.9.4.0-0ubuntu3 Here is the syslog: Apr 30 00:17:50 satellite-p755 NetworkManager[994]: Starting VPN service 'pptp'... Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 15069 Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN service 'pptp' appeared; activating connections Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN plugin state changed: starting (3) Apr 30 00:17:51 satellite-p755 NetworkManager[994]: VPN connection 'Schaefer Law Group' (Connect) reply received. Apr 30 00:17:51 satellite-p755 pppd[15073]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded. Apr 30 00:17:51 satellite-p755 pppd[15073]: pppd 2.4.5 started by root, uid 0 Apr 30 00:17:51 satellite-p755 pppd[15073]: Using interface ppp0 Apr 30 00:17:51 satellite-p755 pppd[15073]: Connect: ppp0 <--> /dev/pts/2 Apr 30 00:17:51 satellite-p755 NetworkManager[994]:SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Apr 30 00:17:51 satellite-p755 NetworkManager[994]:SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Apr 30 00:17:51 satellite-p755 pptp[15076]: nm-pptp-service-15069 log[main:pptp.c:314]: The synchronous pptp option is NOT activated Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 0). Apr 30 00:17:55 satellite-p755 pppd[15073]: CHAP authentication succeeded Apr 30 00:17:55 satellite-p755 pppd[15073]: MPPE 128-bit stateless compression enabled Apr 30 00:17:55 satellite-p755 pppd[15073]: local IP address 192.168.1.20 Apr 30 00:17:55 satellite-p755 pppd[15073]: remote IP address 192.168.1.1 Apr 30 00:17:55 satellite-p755 pppd[15073]: primary DNS address 8.8.8.8 Apr 30 00:17:55 satellite-p755 pppd[15073]: secondary DNS address 8.8.4.4 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: VPN connection 'Schaefer Law Group' (IP Config Get) reply received. Apr 30 00:17:55 satellite-p755 NetworkManager[994]: VPN Gateway: 75.75.79.330 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Tunnel Device: ppp0 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Address: 192.168.1.20 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Prefix: 32 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Point-to-Point Address: 192.168.1.1 Apr 30 00:17:55 satellite-p755 NetworkManager[
[Desktop-packages] [Bug 991666] Re: VPN Connects Successfully & Then Shortly Thereafter Fails
For me the issue occurs with Juniper SSL VPN. Apparently network manager adds the original default route, I'd guess upon DHCP renew, which overrides the default route that should go to my VPN tunnel (from /var/log/syslog): NetworkManager[xxx]: Policy set 'xxx' (wlan0) as default for IPv4 routing and DNS. The network-manager-vpnc package seems to integrate with network-manager in a way that prevents network manager from doing this as with VPNC to a cisco concentrator, the issue does not occur: NetworkManager[yyy]: Policy set 'yyy' (tun0) as default for IPv4 routing and DNS. What would be required to achieve the same with Juniper SSL VPN? Is there a way to prevent NM from doing these policy updates? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to network-manager in Ubuntu. https://bugs.launchpad.net/bugs/991666 Title: VPN Connects Successfully & Then Shortly Thereafter Fails Status in NetworkManager-PPTP: New Status in “network-manager” package in Ubuntu: Confirmed Bug description: I am able to successfully establish a PPTP VPN connection in Ubuntu 12.04 (kernel 3.2.0-24-generic) but after approximately 30 seconds to 1.5 minutes it will fail. During the connection time I am only able to load about 1-2 webpages and then they freeze and I cannot access resources on the VPN network. I do not believe this is related to my VPN server as I am able to establish VPN connections with my Windows machines and Smartphones all day long with no problems. Is there a solution to this problem? Description: Ubuntu 12.04 LTS Release: 12.04 network-manager: 0.9.4.0-0ubuntu3 Here is the syslog: Apr 30 00:17:50 satellite-p755 NetworkManager[994]: Starting VPN service 'pptp'... Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 15069 Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN service 'pptp' appeared; activating connections Apr 30 00:17:50 satellite-p755 NetworkManager[994]: VPN plugin state changed: starting (3) Apr 30 00:17:51 satellite-p755 NetworkManager[994]: VPN connection 'Schaefer Law Group' (Connect) reply received. Apr 30 00:17:51 satellite-p755 pppd[15073]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded. Apr 30 00:17:51 satellite-p755 pppd[15073]: pppd 2.4.5 started by root, uid 0 Apr 30 00:17:51 satellite-p755 pppd[15073]: Using interface ppp0 Apr 30 00:17:51 satellite-p755 pppd[15073]: Connect: ppp0 <--> /dev/pts/2 Apr 30 00:17:51 satellite-p755 NetworkManager[994]:SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Apr 30 00:17:51 satellite-p755 NetworkManager[994]:SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Apr 30 00:17:51 satellite-p755 pptp[15076]: nm-pptp-service-15069 log[main:pptp.c:314]: The synchronous pptp option is NOT activated Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Apr 30 00:17:51 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Apr 30 00:17:52 satellite-p755 pptp[15084]: nm-pptp-service-15069 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 0). Apr 30 00:17:55 satellite-p755 pppd[15073]: CHAP authentication succeeded Apr 30 00:17:55 satellite-p755 pppd[15073]: MPPE 128-bit stateless compression enabled Apr 30 00:17:55 satellite-p755 pppd[15073]: local IP address 192.168.1.20 Apr 30 00:17:55 satellite-p755 pppd[15073]: remote IP address 192.168.1.1 Apr 30 00:17:55 satellite-p755 pppd[15073]: primary DNS address 8.8.8.8 Apr 30 00:17:55 satellite-p755 pppd[15073]: secondary DNS address 8.8.4.4 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: VPN connection 'Schaefer Law Group' (IP Config Get) reply received. Apr 30 00:17:55 satellite-p755 NetworkManager[994]: VPN Gateway: 75.75.79.330 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Tunnel Device: ppp0 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Address: 192.168.1.20 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Prefix: 32 Apr 30 00:17:55 satellite-p755 NetworkManager[994]: Internal IP4 Point-to-Point Address: 192.168.1.1 Apr 30 00:17:55 satellite-p755 NetworkManage