Re: Add OpenVPN support

2010-11-22 Thread Daniel Wagner
Hi Jeff, On Mon, Nov 22, 2010 at 03:55:52PM +0800, Zheng, Jeff wrote: On Thu, Nov 18, 2010 at 04:28:22PM +0100, Daniel Wagner wrote: Hi Jeff, On Thu, Nov 18, 2010 at 11:07:13PM +0800, Zheng, Jeff wrote: Do you mean openvpn plugin? If this way, I will check next week (I'll

RE: Add OpenVPN support

2010-11-22 Thread Zheng, Jeff
Can you please ran this log output throught the test/backtrace script? backtrace [0]: vpn_newlink() [vpn.c:147] [1]: connman_rtnl_add_newlink_watch() [rtnl.c:244] [2]: vpn_notify() [vpn.c:171] [3]: task_filter() [task.c:402] [4]: message_dispatch() [mainloop.c:80] [5]:

Re: Add OpenVPN support

2010-11-22 Thread Daniel Wagner
On Mon, Nov 22, 2010 at 04:15:19PM +0800, Zheng, Jeff wrote: Can you please ran this log output throught the test/backtrace script? backtrace [0]: vpn_newlink() [vpn.c:147] [1]: connman_rtnl_add_newlink_watch() [rtnl.c:244] [2]: vpn_notify() [vpn.c:171] [3]:

Re: Add OpenVPN support

2010-11-18 Thread Daniel Wagner
Hi Jeff, On Thu, Nov 18, 2010 at 03:15:34PM +0800, Zheng, Jeff wrote: Do you mean compile with patch [PATCH v0 1/2] openvpn: add suport for static key setup? compile passed. Yes, I don't have a static key setup (yet). So the patch should compile fine but it will almost certently not work.

RE: Add OpenVPN support

2010-11-18 Thread Zheng, Jeff
@connman.net Subject: Re: Add OpenVPN support Hi Jeff, On Thu, Nov 18, 2010 at 03:15:34PM +0800, Zheng, Jeff wrote: Do you mean compile with patch [PATCH v0 1/2] openvpn: add suport for static key setup? compile passed. Yes, I don't have a static key setup (yet). So the patch should compile

Re: Add OpenVPN support

2010-11-18 Thread Daniel Wagner
Hi Jeff, On Thu, Nov 18, 2010 at 04:44:04PM +0800, Zheng, Jeff wrote: Thanks for quick response. Connmand log attached. Thanks. I see that passing the values through the provider works. But I don't see anything about the openvpn plugin, e.g. I have following in my log file: connmand[5579]:

Re: Add OpenVPN support

2010-11-18 Thread Daniel Wagner
Hi Jeff, On Thu, Nov 18, 2010 at 11:07:13PM +0800, Zheng, Jeff wrote: Do you mean openvpn plugin? If this way, I will check next week (I'll annual leave Friday). I just used the rpm that Martin built for MeeGo. Ah, okay. Which version has been packeged? OpenVPN is in 0.63. I don't have a

Re: Add OpenVPN support

2010-11-18 Thread Daniel Wagner
On Thu, Nov 18, 2010 at 04:28:22PM +0100, Daniel Wagner wrote: Hi Jeff, On Thu, Nov 18, 2010 at 11:07:13PM +0800, Zheng, Jeff wrote: Do you mean openvpn plugin? If this way, I will check next week (I'll annual leave Friday). I just used the rpm that Martin built for MeeGo. Ah, okay.

Re: Add OpenVPN support

2010-11-17 Thread Daniel Wagner
Hi Jeff, On Wed, Nov 17, 2010 at 01:58:26PM +0800, Zheng, Jeff wrote: How can I use connect-vpn script? I can connect to a point to point server with: openvpn --config config The content of config is: remote xfzheng.sh.intel.com dev tun ifconfig 10.8.0.2 10.8.0.1 secret static.key

Re: Add OpenVPN support

2010-11-17 Thread Daniel Wagner
Can you give the patches I'll append to this mail a try? Only compiled, not really tested. I think the 'ifconfig' argument is not really working since it needs to arguments. ... it needs two arguments. ___ connman mailing list connman@connman.net

RE: Add OpenVPN support

2010-11-17 Thread Zheng, Jeff
, Jeff Cc: connman@connman.net Subject: Re: Add OpenVPN support Hi Jeff, On Wed, Nov 17, 2010 at 01:58:26PM +0800, Zheng, Jeff wrote: How can I use connect-vpn script? I can connect to a point to point server with: openvpn --config config The content of config is: remote

Re: Add OpenVPN support

2010-11-04 Thread Daniel Wagner
Hi Samuel, On Wed, Nov 03, 2010 at 03:12:42PM +0100, Samuel Ortiz wrote: All patches (except the openconnect one) applied now. I'd appreciate if you could give it a try against your OpenVPN setup. I have it running now for a day. Also did some disconnect and reconnect. Every thing works fine

Re: Add OpenVPN support

2010-11-03 Thread Samuel Ortiz
Hi Daniel, On Tue, Nov 02, 2010 at 06:19:29PM +0100, Daniel Wagner wrote: Hi, This version works for me stable. The problem was the OpenVPN does an inactivity check and if this is true then it does automatically a reconnection. This fails currently because the DNS server is behind the

[PATCH v7 3/4] Add OpenVPN support

2010-11-02 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- Makefile.plugins | 34 ++- bootstrap-configure |1 + configure.ac | 17 plugins/openvpn.c| 239 ++ scripts/openvpn-script.c | 123

[PATCH v7 4/4] Add OpenVPN support to connect-vpn script

2010-11-02 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- test/connect-vpn | 42 ++ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/test/connect-vpn b/test/connect-vpn index 22f1370..7e258b8 100755 --- a/test/connect-vpn +++ b/test/connect-vpn

[RFC v5 3/4] Add OpenVPN support

2010-10-29 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- Makefile.plugins | 32 +- bootstrap-configure |1 + configure.ac | 17 +++ plugins/openvpn.c| 294 ++ scripts/openvpn-script.c | 123 +++

[PATCH v6 3/4] Add OpenVPN support

2010-10-29 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- Makefile.plugins | 32 +++- bootstrap-configure |1 + configure.ac | 17 plugins/openvpn.c| 214 ++ scripts/openvpn-script.c | 123

Re: [PATCH v6 3/4] Add OpenVPN support

2010-10-29 Thread Daniel Wagner
+ if (g_str_has_prefix(key, foreign_option_)) { + gchar **options; + + options = g_strsplit(value, , 3); + if (options[0] != NULL + !strcmp(options[0], dhcp-option) +

Re: Add OpenVPN Support

2010-10-27 Thread Daniel Wagner
Good Morning Samuel, On Wed, Oct 27, 2010 at 02:05:49AM +0200, Samuel Ortiz wrote: Hi Daniel, On Tue, Oct 26, 2010 at 03:54:23PM +0200, Daniel Wagner wrote: Hi, yet another update on this patch. OpenVPN is now running, but I'm struggling with the settings. The OpenVPN server settings

Re: Add OpenVPN Support

2010-10-27 Thread Daniel Wagner
Hi Samuel, On Wed, Oct 27, 2010 at 02:05:49AM +0200, Samuel Ortiz wrote: Hi Daniel, On Tue, Oct 26, 2010 at 03:54:23PM +0200, Daniel Wagner wrote: Hi, yet another update on this patch. OpenVPN is now running, but I'm struggling with the settings. The OpenVPN server settings seems

[RFC v4 1/2] Add OpenVPN support

2010-10-26 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- Makefile.plugins | 32 +++- bootstrap-configure |1 + configure.ac | 17 plugins/openvpn.c| 223 ++ scripts/openvpn-script.c | 123

Re: Add OpenVPN Support

2010-10-26 Thread Samuel Ortiz
Hi Daniel, On Tue, Oct 26, 2010 at 03:54:23PM +0200, Daniel Wagner wrote: Hi, yet another update on this patch. OpenVPN is now running, but I'm struggling with the settings. The OpenVPN server settings seems broken. I can ping the server address (10.1.0.1) from my client (10.1.0.6). But

Add OpenVPN support

2010-10-22 Thread Daniel Wagner
Hi, it is still work in progress. Samual, can you test if this version works for OpenConnect plugin? That would be very kind of you. Marcel, I am unable to get the automake thing right for adding plugins/vpn.c. If it is listed at both plugins then the linker complains with doulbe declreations.

[RFC v3 3/4] Add OpenVPN support

2010-10-22 Thread Daniel Wagner
From: Daniel Wagner daniel.wag...@bmw-carit.de --- Makefile.plugins | 32 +++- bootstrap-configure |1 + configure.ac | 17 plugins/openvpn.c| 201 ++ plugins/vpn.c|2 +-

[RFC v3 4/4] Add OpenVPN support to connect-vpn script

2010-10-22 Thread Daniel Wagner
--- test/connect-vpn | 38 ++ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/test/connect-vpn b/test/connect-vpn index 22f1370..f4fa5b8 100755 --- a/test/connect-vpn +++ b/test/connect-vpn @@ -4,7 +4,7 @@ import sys import dbus if