Re: [PATCH] ipconfig: Do not overwrite gateway address

2013-02-05 Thread Patrik Flykt
On Fri, 2013-02-01 at 12:21 +0200, Jukka Rissanen wrote:
 If we have already received gateway address via newroute rtnl
 message, then do not overwrite it when receiving newaddr message.
 
 Fixes BMC#25931

Applied, thanks!

Patrik
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: [PATCH] test: Fix simple-agent so it can run even if service files are missing

2013-02-05 Thread Patrik Flykt
On Mon, 2013-02-04 at 10:48 +0200, Tomasz Bursztyka wrote:
 Fixes BMC#25964

Applied, thanks!

Patrik
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: [PATCH v3 0/4] Fix invalid IP addresses

2013-02-05 Thread Patrik Flykt
On Mon, 2013-02-04 at 16:37 +0200, patrik.fl...@linux.intel.com wrote:
 From: Patrik Flykt patrik.fl...@linux.intel.com
 
   Hi,
 
 This patch set fixes the code to first validate the IP addresses given
 via D-Bus before attempting to use them.
 
 v3 refactors the code and updates patch 03 so that the new ipconfig is
 properly enabled. v3 adds also a new patch 04 that includes an IPv4 info
 fix where the ip address was not appended properly.

Applied.

Patrik
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: Connman VPN: Do not replace default route

2013-02-05 Thread Yevhen Kyriukha
2013/2/4 Jukka Rissanen jukka.rissa...@linux.intel.com:
 Hi,


 On 03.02.2013 19:11, Yevhen Kyriukha wrote:

 2013/2/3 Jukka Rissanen jukka.rissa...@gmail.com:

 Hi,

 On 2 February 2013 15:02, Yevhen Kyriukha kirg...@gmail.com wrote:

 My VPN server already push information about routes like:
 server 10.10.10.0 255.255.255.0
 and
 push route 10.10.10.0 255.255.255.0 vpn_gateway

 If I use openvpn without connman the behavior is correct (routes are
 replaced only if I push redirect-gateway from the server).


 This sounds like a bug.
 Can you do following:

 - start vpnd with connman-vpnd -n -d and direct the output to a file
 - start test/monitor-vpn and direct the output to a file
 - connect to your vpn (you should see server pushed routes in debug
 output and also in monitor output)
 - after successful connection run test/vpn-get to see if we are really
 missing the ServerRoutes


 Cheers,
 Jukka


 Ok, I did these steps and here's what I got:

 When I run connman-vpnd -n -d program closes immediately (you can
 find output in connman-vpn.log file that is attached). Is it
 correct? Seems that system activates connman-vpnd by dbus.


 The log says

 No VPN configurations found, quitting.

 Meaning that you do not have any VPN configurations around. Did you remove
 all your VPN configurations from disk or are you running with read only
 filesystem for /var/lib/connman?



 In output of 'monitor-vpn' I see the following line:
 ServerRoutes = [[{ ProtocolFamily=4 Netmask=255.255.255.0
 Network=10.10.10.0 Gateway=10.10.10.81 }][{ ProtocolFamily=4
 Netmask=255.255.255.0 Network=10.10.10.0 Gateway=10.10.10.81 }]]

 And output of 'vpn-get' contains following:
 ServerRoutes = [[{ ProtocolFamily=4 Netmask=255.255.255.0
 Network=10.10.10.0 Gateway=10.10.10.81 }][{ ProtocolFamily=4
 Netmask=255.255.255.0 Network=10.10.10.0 Gateway=10.10.10.81 }]]


 This looks correct.



 But 'route -n' gives me the same picture that I was talking before
 (vpn is a default route iface).


 This is expected as you have not moved the services yet.

 If the /var/lib/connman is non-existent, then you will have weird problems
 anyway.


 Cheers,
 Jukka


Hi!

 The log says

 No VPN configurations found, quitting.

 Meaning that you do not have any VPN configurations around. Did you remove
 all your VPN configurations from disk or are you running with read only
 filesystem for /var/lib/connman?

I was writing about that problem on connman mailing list.
I have /var/lib/connman folder and it doesn't disappear after reboot.
I checked 'mount' and there was no /var or /var/lib directory mounted
as read only file system partition.

This problem appears when I restart connman-vpn and connman services
with previously *connected* (active) VPN connection. I'm not rebooting
PC! So all settings exist.

So this is the second problem.

The first one was overriding default route.
You said that if server push some info about routes connman-vpn won't
replace default route.
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman