Re: Fwd: PPTP connection: NM chooses wrong default route



On Thu, 2009-07-23 at 02:51 +0400, Юрий Аполлов wrote:
> 
> 
> ---------- Forwarded message ----------
> From: Юрий Аполлов <apollovy gmail com>
> Date: 2009/7/23
> Subject: Re: PPTP connection: NM chooses wrong default route
> To: Andreas Winkelbauer <andreas winkelbauer gmx at>
> 
> 
> 
> 
> 2009/7/22 Andreas Winkelbauer <andreas winkelbauer gmx at>
> 
> 
>         Hi,
>         
>         I am currently using NM 0.7.1 on Fedora 11. I have the
>         following NM packages installed:
>         
>         $ rpm -qa | grep -i networkmanager
>         NetworkManager-openconnect-0.7.0.99-5.fc11.x86_64
>         NetworkManager-openvpn-0.7.0.99-1.fc11.x86_64
>         NetworkManager-pptp-0.7.0.99-1.fc11.x86_64
>         NetworkManager-vpnc-0.7.0.99-1.fc11.x86_64
>         NetworkManager-glib-0.7.1-4.git20090414.fc11.x86_64
>         NetworkManager-devel-0.7.1-4.git20090414.fc11.x86_64
>         NetworkManager-glib-devel-0.7.1-4.git20090414.fc11.x86_64
>         NetworkManager-0.7.1-4.git20090414.fc11.x86_64
>         NetworkManager-gnome-0.7.1-4.git20090414.fc11.x86_64
>         
>         I setup a PPTP connection using NM to be able to access the
>         internet via a LAN connection at my University. The PPTP
>         connection itself works, but I can't access the internet,
>         because NM still uses eth0 for the default route instead of
>         switching over to ppp0.
>         
>         All addresses are automatically assigned via DHCP and I did
>         not setup any static, manually configured, routes.
>         
>         After executing su -c 'ip route replace default dev ppp0'
>         everything works fine, except connection drops due to
>         suboptimum MTU settings (so I usually also run su -c 'ifconfig
>         ppp0 mtu 1416' or something similar).
>         
>         Of course I can run these two commands after connecting to
>         PPTP using NM, but this is rather cumbersome. Is there
>         anything I can do to tell (or force) NM to use the PPTP
>         connection, ppp0, as default route?
>         
>         In general I think it would be very useful for any kind of
>         connection in NM to have some means of choosing it as default
>         route. Furthermore configurable MTU settings would be helpful
>         too. The things should probably go into a advanced settings
>         dialog.
>         
>         BTW: If I create the connection in a terminal (e.g. by running
>         "pptpsetup --create uni --server $SERVER --username $USERNAME
>         --password $PASSWORD --start && ip route replace default dev
>         ppp0") everything works nicely.
>         
>         Any help is highly appreciated!
>         
>         Bye,
>         Andi
>         _______________________________________________
>         NetworkManager-list mailing list
>         NetworkManager-list gnome org
>         http://mail.gnome.org/mailman/listinfo/networkmanager-list
> Guess you have to check "Use only for resourses of this network" in
> your eth0 connection. if I'm not mistaken, it'll send all your traffic
> not to internal netwok via ppp0

Actuall the other way around, he probably needs to *un*check that box.
The default behavior is to route everything over the VPN.

Dan





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