Re: Trouble setting VPN for specific IP via NetworkManager
- From: Michael Butash <michael butash net>
- To: networkmanager-list gnome org
- Subject: Re: Trouble setting VPN for specific IP via NetworkManager
- Date: Mon, 24 Oct 2011 18:41:12 -0700
I've noticed similar behavior using vpnc-based vpn's that doesn't setup
routes quite right. It adds the prefixes negotiated for routes by the
server, but it still insists on repointing a default route at the tun
interface as well, breaking split-tunneling. I keep forgetting to spam
the list asking about this, thanks for the reminder. :)
Can NM not explicitly repoint the default route to a tunnel please? You
only want this when the vpn server sends an explicit default, but for
split tunneling, it needs to be versatile and only add the prefixes
wanted, leaving the default at the original gateway.
You can remove and add routes manually every time, it's more or less
what I do to override nm's bad behavior, but vpnc doesn't use ppp
interfaces. Not sure why that is complicating for you other than the
fact the ppp interface
Try "route add default dev ppp0" without a gw addy? PPP doesn't use
gateways per se.
-mb
On 10/23/2011 02:33 PM, Mohan Sfo wrote:
Hello all,
I apologize for asking such an elementary question on this list. Thanks
for your help. Two question below:
1) I am playing with setting up VPN via NetworkManager. I am able to
successfully setup VPN. Unfortunately, it is setting up *all* the routes
to go via the VPN. I want traffic for only a few address to go via VPN
and everything else to use the existing routes on wlan0. How do I do it?
2) Where are the log files for VPN or pppd stuff in NetworkManager? How
do I setup so that there is logging so that I can debug why I am having
connectivity problems.
After setting up VPN connection:
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.116.78.13 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
226.22.44.56 192.168.2.1 255.255.255.255 UGH 0 0 0 wlan0
226.22.44.56 192.168.2.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.2.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
#
I deleted the default route below, and then added wlan0 as the new
default route. Regular stuff like google.com <http://google.com> are
working fine over wlan0. However, I run into trouble when I tell that
specific IP lists should go over ppp0.
#route del default
#route add default gw 192.168.2.1 dev wlan0
Now, I run into trouble when I tell that specific IP 10.10.115.123
should go over ppp0.
#route add host 10.10.115.123 gw 0.0.0.0 dev ppp0
SIOCADDRT: Invalid argument
Please suggest me how I can do it over command line via route or via
NetworkManager.
Thanks,
Mohan
_______________________________________________
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]