Re: Connman VPN: Do not replace default route

2013-02-02 Thread Jukka Rissanen
Hi,

On 1 February 2013 22:28, Yevhen Kyriukha kirg...@gmail.com wrote:
 I've tried 'service-move-before' but hadn't got any changes in routing table.

If you want that default route is not routed via VPN, then connman
needs to know which routes you want to route via VPN connection. This
route information can come automatically from VPN server, or user can
define the routes manually. The user settable property is called
UserRoutes (see doc/vpn-connection-api.txt for details).
If the route information is not known, the service-move-before cannot
actually change the ordering as you have noticed.

Cheers,
Jukka
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman


Re: Connman VPN: Do not replace default route

2013-02-02 Thread Yevhen Kyriukha
2013/2/2 Jukka Rissanen jukka.rissa...@gmail.com:
 Hi,

 On 1 February 2013 22:28, Yevhen Kyriukha kirg...@gmail.com wrote:
 I've tried 'service-move-before' but hadn't got any changes in routing table.

 If you want that default route is not routed via VPN, then connman
 needs to know which routes you want to route via VPN connection. This
 route information can come automatically from VPN server, or user can
 define the routes manually. The user settable property is called
 UserRoutes (see doc/vpn-connection-api.txt for details).
 If the route information is not known, the service-move-before cannot
 actually change the ordering as you have noticed.

 Cheers,
 Jukka

I'm using OpenVPN, just in case.
I think that if VPN server doesn't send push redirect-gateway to
clients connman shouldn't replace default routes.
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).
___
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman