[Openvpn-devel] Rekey and Defer sample plugin

2014-06-10 Thread Lev Stipakov
Hello, I'm facing a problem with "defer" sample plugin and rekeying. I use plugin from https://github.com/OpenVPN/openvpn/tree/master/sample/sample-plugins/defer. Relevant part of openvpn config: > auth-user-pass-optional > setenv test_deferred_auth 2 > plugin /etc/openvpn/simple.so > reneg-sec

[Openvpn-devel] OpenVPN port to AIX

2014-06-10 Thread Gert Doering
Hi, the following four patches port OpenVPN git/master to AIX. It might not be the most asked-for platform in the world, but since it finally grew a tap driver, it can be useful, so here it is :-) Drawbacks today: - AIX has no tun driver, so only --dev tap is supported - IPv4 ICMP packets ar

[Openvpn-devel] [PATCH 2/4] Add tap driver initialization and ifconfig for AIX.

2014-06-10 Thread Gert Doering
From: Gert Doering AIX is special... ifconfig only works if it can add the data to the ODM right away, so setup a local enviromnment set that has "ODMDIR=/etc/objrepos" in it (hard-coded, nobody changes that). Only --dev tap or --dev tapNN are supported right now. AIX has no tun driver (so tun

[Openvpn-devel] [PATCH 1/4] Recognize AIX, define TARGET_AIX

2014-06-10 Thread Gert Doering
From: Gert Doering force "have_tap_header=yes", as configure won't like AIX headers otherwise (no tun related headers, just ). force ROUTE to be "/usr/sbin/route" - not executable by non-root users, so configure testing for executables will not find it force "ac_cv_header_net_if_h=no", because

[Openvpn-devel] [PATCH 3/4] implement adding/deleting routes on AIX, for IPv4 and IPv6

2014-06-10 Thread Gert Doering
From: Gert Doering AIX only has TAP interfaces, so always use gateway address as next hop, not interface name. AIX route works much more reliable if passed netbits than netmask - do so (introducing a new helper function netmask_to_netbits2()) --- src/openvpn/route.c | 60 +

[Openvpn-devel] [PATCH 4/4] Make t_client.sh work on AIX.

2014-06-10 Thread Gert Doering
From: Gert Doering Teach it how to run ifconfig/route on AIX to have meaningful results. Signed-off-by: Gert Doering --- tests/t_client.sh.in |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tests/t_client.sh.in b/tests/t_client.sh.in index 52c5ed1..d4f7c4a 100755