Re: Problem with nm-pptp



On Wed, 2009-10-28 at 09:13 -0700, Dan Williams wrote:
> On Tue, 2009-10-27 at 19:23 +0100, Lenezir wrote:
> > Hello everyone.
> > I need your knownledge !
> > With a friend we are trying to adapt the module "nm-pptp" of
> > NetworkManager to the distribution Frugalware.
> > At first glance, the VPN connection is made, but nothing can happen.
> > When I go on a website, the browser tries endlessly to join it.
> > Apparently, the problem comes from the DNS.
> > In the settings of the wired and VPN, I put the OpenDNS IP and
> > /etc/resolv.conf contains the correct IP addresses.
> 
> Good catch; it looks like the pptp plugin just won't handle the VPN
> gateway being a hostname, it should try to resolve the hostname to get
> the IP address.  NM needs the IP address of your gateway to ensure that
> the routing table is set up correctly, and in this case the NM-pptp
> plugin is getting it wrong.
> 
> What's the output of 'route -n' when this problem occurs?
> 
> In any case, an NM-pptp fix is in order here.

I've tried to fix this in these commits:

d3bc17b87f7f4f9bc0f612b2e527e1548e7fe2d7 (master)
7f32f584f6b9bf0f6aa7ce8fae25c55e0a73cb08 (0.7.x)

Let me know if they work for you, thanks!

Dan

> Dan
> 
> 
> > Here is the log of NetworkManager when connecting to the VPN :
> > 
> > NetworkManager: <info>  Starting VPN service
> > 'org.freedesktop.NetworkManager.pptp'...
> > NetworkManager: <info>  VPN service
> > 'org.freedesktop.NetworkManager.pptp' started
> > (org.freedesktop.NetworkManager.pptp), PID 12367
> > NetworkManager: <info>  VPN service
> > 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
> > NetworkManager: <info>  VPN plugin state changed: 1
> > NetworkManager: <info>  VPN plugin state changed: 3
> > ** Message: <info>  pppd started with pid 12375
> > 
> > NetworkManager: <info>  VPN connection 'Ipredator' (Connect) reply received.
> > Plugin /usr/lib/pppd/2.4.4/nm-pptp-pppd-plugin.so loaded.
> > Using interface ppp0
> > Connect: ppp0 <--> /dev/pts/5
> > sh: /bin/ip: No such file or directory
> > sh: /bin/ip: No such file or directory
> > CHAP authentication succeeded
> > MPPE 128-bit stateless compression enabled
> > local  IP address 93.182.180.95
> > remote IP address 93.182.180.2
> > primary   DNS address 93.182.182.85
> > secondary DNS address 93.182.182.85
> > ** Message: <info>  PPTP service (IP Config Get) reply received.
> > 
> > 
> > ** (process:12367): WARNING **: <WARN>  get_pptp_gw_address_as_gvalue():
> > couldn't convert PPTP VPN gateway IP address 'vpn.ipredator.se' (0)
> > 
> > NetworkManager: <info>  VPN connection 'Ipredator' (IP Config Get) reply
> > received.
> > NetworkManager: nm_ip4_config_add_nameserver: assertion `nameserver !=
> > s' failed
> > NetworkManager: <info>  VPN Gateway: 0.0.0.0
> > NetworkManager: <info>  Tunnel Device: ppp0
> > NetworkManager: <info>  Internal IP4 Address: 93.182.180.95
> > NetworkManager: <info>  Internal IP4 Prefix: 32
> > NetworkManager: <info>  Internal IP4 Point-to-Point Address: 93.182.180.2
> > NetworkManager: <info>  Maximum Segment Size (MSS): 0
> > NetworkManager: <info>  Internal IP4 DNS: 93.182.182.85
> > NetworkManager: <info>  DNS Domain: '(none)'
> > NetworkManager: <info>  Login Banner:
> > NetworkManager: <info>  -----------------------------------------
> > NetworkManager: <info>  (null)
> > NetworkManager: <info>  -----------------------------------------
> > NetworkManager: <info>  VPN connection 'Ipredator' (IP Config Get) complete.
> > NetworkManager: <info>  Policy set 'Ipredator' (ppp0) as default for
> > routing and DNS.
> > NetworkManager: <info>  VPN plugin state changed: 4
> > NetworkManager: <info>  Trying to start the supplicant...
> > 
> > 
> > I hope you can help me.
> > Thanks.
> > 
> > _______________________________________________
> > NetworkManager-list mailing list
> > NetworkManager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]