PPTP connection: NM chooses wrong default route



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

PS: Please CC me as I am not subscribed to the list.


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