GNOME Bugzilla – Bug 517468
failure to connect if tunnel got interface != ppp0
Last modified: 2008-08-08 03:30:28 UTC
Please describe the problem: If there is a previous ppp0 connection, the tunnel is correctly created as ppp1 but network-manager-pptp incorrectly closes the connection. So, the user cannot connect if there is a previous ppp0 connection. This means, many ADSL users can't connect to a vpn. If the tunnel is created as ppp0, the VPN connection works fine. Steps to reproduce: 1. Make sure to create a ppp0 connection (example: an ADSL connection "pon dsl-provider") 2. Activate the pptp VPN connection through network-manager applet Actual results: The ADSL connection (ppp0) works fine. Then, when trying to activate the pptp VPN, the connection is successfuly created (as said by logs), but then it's disconnected and the following message appears: VPN Connect Failure Could not start the VPN connection 'test' because the VPN server did not return an adequate network configuration. VPN Connection failed Expected results: The VPN connection should work. Does this happen every time? Yes Other information: Maybe the other Network Manager VPN plugins have the same bug. A Patch is attached below.
Created attachment 105582 [details] [review] Fix if connection is not ppp0 Here is the patch that fixes this issue.
This is the message that appears if the connection is made as ppp1 for example: Feb 19 12:45:44 localhost pppd[25103]: Plugin nm-pppd-plugin.so loaded. Feb 19 12:45:44 localhost pppd[25103]: nm-pppd-plugin: plugin initialized. Feb 19 12:45:44 localhost pppd[25105]: pppd 2.4.4 started by root, uid 0 Feb 19 12:45:44 localhost pppd[25105]: Using interface ppp1 Feb 19 12:45:44 localhost pppd[25105]: Connect: ppp1 <--> /dev/pts/12 Feb 19 12:45:45 localhost pppd[25105]: nm-pppd-plugin: CHAP check hook. Feb 19 12:45:47 localhost pppd[25105]: nm-pppd-plugin: CHAP credentials requested. Feb 19 12:45:47 localhost pppd[25105]: CHAP authentication succeeded: Access granted Feb 19 12:45:47 localhost pppd[25105]: CHAP authentication succeeded Feb 19 12:45:47 localhost pppd[25105]: local IP address 192.168.1.1 Feb 19 12:45:47 localhost pppd[25105]: remote IP address 192.168.0.1 Feb 19 12:45:47 localhost pppd[25105]: nm-pppd-plugin: didn't receive an Internal IP4 Address from ppp. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 19 12:45:47 localhost pppd[25105]: Terminating on signal 15 Feb 19 12:45:47 localhost pppd[25105]: Child process /usr/sbin/pptp 192.168.9.50 --nolaunchpppd (pid 25106) terminated with signal 15 Feb 19 12:45:47 localhost pppd[25105]: Connect time 0.0 minutes. Feb 19 12:45:47 localhost pppd[25105]: Sent 0 bytes, received 0 bytes. Feb 19 12:45:47 localhost pppd[25105]: Modem hangup Feb 19 12:45:47 localhost pppd[25105]: Connection terminated. Feb 19 12:45:47 localhost pppd[25105]: Exit.
Thanks! fixed in svn trunk r3910 and stable branch r3911