Re[2]: NetworkManager VPN and routing in bridged mode

2008-03-13 Thread Valentine Sinitsyn
Hello, The attached is updated version of the patch I've sent yesterday. The main changes are as follows: * Ported to NM 0.6.6 (SVN rev 3381) * Handle user-specified routes correctly too There are some "architectural" issues with the code - I've implemented them the way to be as much back

Re: NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Valentine Sinitsyn
Hello, The attached file is the patch against NETWORKMANAGER_0_6_5_RELEASE (rev 2558) which implements the logic for tap-based VPN networks. The code is in "works for me" state. I understand that NM 0.6.5 isn't best codebase but it's the version I use (which helps to test the patch) and given its

Re[2]: NetworkManager VPN and routing in bridged mode,

2008-03-12 Thread Valentine Sinitsyn
Hello, Here we go. The following is routing table built by NetworkManager: Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 10.0.109.161192.168.1.1 255.255.255.255 UGH 0 00 eth1 192.168.1.0 0.0.0.0 255.255.2

Re[2]: NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Valentine Sinitsyn
Hi, DW> Adding another key to the VPN ip4config dict like Casey suggested DW> doesn't sound too hard. First though, could somebody bring up their DW> OpenVPN in this configuration, and send me the output of /sbin/route -n DW> so I can understand the setup a bit more? Sure - I'll do it in a few ho

Re: NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Dan Williams
On Wed, 2008-03-12 at 08:42 +, Jon Escombe wrote: > Valentine Sinitsyn wrote: > > > > > I've came across an interesting misbehavior while trying to connect my > > NM 0.6.5 on Arch Linux box to OpenVPN (2.0.9) server and thought it > > may be useful to raise this question in the mailing list.

Re[2]: NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Valentine Sinitsyn
Hi, JE> There was some discussion around this last December, if you look back in JE> this archive thread there were some ideas for resolution, but nothing JE> has progressed (as far as I know). JE> http://mail.gnome.org/archives/networkmanager-list/2007-December/msg00163.html Oops, I've missed

Re: NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Jon Escombe
Valentine Sinitsyn wrote: > > I've came across an interesting misbehavior while trying to connect my > NM 0.6.5 on Arch Linux box to OpenVPN (2.0.9) server and thought it > may be useful to raise this question in the mailing list. > Hi, There was some discussion around this last December, if y

NetworkManager VPN and routing in bridged mode

2008-03-12 Thread Valentine Sinitsyn
Hello, I've came across an interesting misbehavior while trying to connect my NM 0.6.5 on Arch Linux box to OpenVPN (2.0.9) server and thought it may be useful to raise this question in the mailing list. Looks like NetworkManagerSystem.c nm_system_vpn_device_set_from_ip4_config() function (both