Well, that tells me, that the openvpn client is not uptodate. Just like the openwrt-version - by now, openssl is released in version 1.0.2c/1.0.1o
The openwrt-version is compiled against its buildroot - so the given version is absolutely correct (based on openvpn version 2.3.6 source). Within this version there are two ways to use openVPN - the way, that is presented in wiki.openwrt.org with custom syntax and commands (using the autostart-options via predefined scripts). Otherwise you can use it the "true openVPN"(as you call it)-way by using syntax
openvpn "/path/to/your/config/file".ovpn
I never would have found out if there hadn't been (for a reason I will perhaps never know) a bug in my enviroment, that prevents openvpn from loading the openwrt-custom config-file. That way I had to digg way deeper into howtos...
But you are right - I will have to build my own packages as the given version is not what I want. Unfortunately my skills in linux/building packages are novice-like, so I have to walk some roads to reach my goals...
TUN-mode works just as well as TAP-mode:
Server-config:
tls-server
port 443
proto udp
dev tun
ca /etc/ssl/openvpn/ca.crt
cert /etc/ssl/openvpn/my-Hostname.crt
key /etc/ssl/openvpn/my-Hostname.key
dh /etc/ssl/openvpn/dh2048.pem
tls-auth /etc/ssl/openvpn/ta.key 0
cipher AES-256-CBC
comp-lzo adaptive
ifconfig-pool-persist /etc/openvpn/ipp-TUN.txt
status /etc/openvpn/TUN-status.log
log /etc/openvpn/TUN.log
verb 4
mute 20
keepalive 10 120
persist-key
persist-tun
server 11.0.1.0 255.255.255.0
push redirect-gateway
client-to-client
Client-config:
client
dev tun
proto udp
remote my-Hostname 443
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert MD1.crt
key MD1.key
tls-auth ta.key 1
remote-cert-tls server
cipher AES-256-CBC
verb 4
mute 20
keepalive 10 120
comp-lzo
Server-log:
Wed Jun 24 01:04:16 2015 us=236405 OpenVPN 2.3.6 mips-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on May 7 2015
Wed Jun 24 01:04:16 2015 us=236760 library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.08
Wed Jun 24 01:04:16 2015 us=649816 Diffie-Hellman initialized with 2048 bit key
Wed Jun 24 01:04:16 2015 us=654035 Control Channel Authentication: using '/etc/ssl/openvpn/ta.key' as a OpenVPN static key file
Wed Jun 24 01:04:16 2015 us=654316 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:04:16 2015 us=654536 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:04:16 2015 us=654796 TLS-Auth MTU parms [ L:1558 D:166 EF:66 EB:0 ET:0 EL:0 ]
Wed Jun 24 01:04:16 2015 us=655060 Socket Buffers: R=[163840->131072] S=[163840->131072]
Wed Jun 24 01:04:16 2015 us=658745 TUN/TAP device tun0 opened
Wed Jun 24 01:04:16 2015 us=659023 TUN/TAP TX queue length set to 100
Wed Jun 24 01:04:16 2015 us=659230 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Jun 24 01:04:16 2015 us=659553 /sbin/ifconfig tun0 11.0.1.1 pointopoint 11.0.1.2 mtu 1500
Wed Jun 24 01:04:16 2015 us=675941 /sbin/route add -net 11.0.1.0 netmask 255.255.255.0 gw 11.0.1.2
Wed Jun 24 01:04:16 2015 us=692073 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Jun 24 01:04:16 2015 us=692348 UDPv4 link local (bound): [undef]
Wed Jun 24 01:04:16 2015 us=692527 UDPv4 link remote: [undef]
Wed Jun 24 01:04:16 2015 us=692702 MULTI: multi_init called, r=256 v=256
Wed Jun 24 01:04:16 2015 us=693022 IFCONFIG POOL: base=11.0.1.4 size=62, ipv6=0
Wed Jun 24 01:04:16 2015 us=693254 ifconfig_pool_read(), in='MD1,11.0.1.4', TODO: IPv6
Wed Jun 24 01:04:16 2015 us=693434 succeeded -> ifconfig_pool_set()
Wed Jun 24 01:04:16 2015 us=693612 IFCONFIG POOL LIST
Wed Jun 24 01:04:16 2015 us=693788 MD1,11.0.1.4
Wed Jun 24 01:04:16 2015 us=694179 Initialization Sequence Completed
Wed Jun 24 01:06:36 2015 us=503641 MULTI: multi_create_instance called
Wed Jun 24 01:06:36 2015 us=504153 my-mobile-IP Re-using SSL/TLS context
Wed Jun 24 01:06:36 2015 us=504465 my-mobile-IP LZO compression initialized
Wed Jun 24 01:06:36 2015 us=505564 my-mobile-IP Control Channel MTU parms [ L:1558 D:166 EF:66 EB:0 ET:0 EL:0 ]
Wed Jun 24 01:06:36 2015 us=505846 my-mobile-IP Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Jun 24 01:06:36 2015 us=506252 my-mobile-IP TLS: Initial packet from [AF_INET]my-mobile-IP, sid=1870213b b9f2f7c0
Wed Jun 24 01:06:38 2015 us=379715 my-mobile-IP VERIFY OK: depth=1, CN=my-Hostname
Wed Jun 24 01:06:38 2015 us=383771 my-mobile-IP VERIFY OK: depth=0, CN=MD1
Wed Jun 24 01:06:39 2015 us=54193 my-mobile-IP Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 24 01:06:39 2015 us=54483 my-mobile-IP Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:39 2015 us=54698 my-mobile-IP Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 24 01:06:39 2015 us=54915 my-mobile-IP Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:39 2015 us=150856 my-mobile-IP Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Wed Jun 24 01:06:39 2015 us=151239 my-mobile-IP [MD1] Peer Connection Initiated with [AF_INET]my-mobile-IP
Wed Jun 24 01:06:39 2015 us=151611 MD1/my-mobile-IP MULTI_sva: pool returned IPv4=11.0.1.6, IPv6=(Not enabled)
Wed Jun 24 01:06:39 2015 us=152246 MD1/my-mobile-IP MULTI: Learn: 11.0.1.6 -> MD1/my-mobile-IP
Wed Jun 24 01:06:39 2015 us=152506 MD1/my-mobile-IP MULTI: primary virtual IP for MD1/my-mobile-IP: 11.0.1.6
Wed Jun 24 01:06:41 2015 us=462207 MD1/my-mobile-IP PUSH: Received control message: 'PUSH_REQUEST'
Wed Jun 24 01:06:41 2015 us=462470 MD1/my-mobile-IP send_push_reply(): safe_cap=940
Wed Jun 24 01:06:41 2015 us=463038 MD1/my-mobile-IP SENT CONTROL [MD1]: 'PUSH_REPLY,redirect-gateway,route 11.0.1.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 11.0.1.6 11.0.1.5' (status=1)
Client-log:
Wed Jun 24 01:06:37 2015 us=494288 Current Parameter Settings:
Wed Jun 24 01:06:37 2015 us=495288 config = 'Arbeit MD1 - TUN - rg.ovpn'
Wed Jun 24 01:06:37 2015 us=495288 mode = 0
Wed Jun 24 01:06:37 2015 us=495288 show_ciphers = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 show_digests = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 show_engines = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 genkey = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 key_pass_file = '[UNDEF]'
Wed Jun 24 01:06:37 2015 us=495288 show_tls_ciphers = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 Connection profiles [default]:
Wed Jun 24 01:06:37 2015 us=495288 proto = udp
Wed Jun 24 01:06:37 2015 us=495288 local = '[UNDEF]'
Wed Jun 24 01:06:37 2015 us=495288 local_port = 0
Wed Jun 24 01:06:37 2015 us=495288 remote = 'my-Hostname'
Wed Jun 24 01:06:37 2015 us=495288 remote_port = 443
Wed Jun 24 01:06:37 2015 us=495288 remote_float = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 bind_defined = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 bind_local = DISABLED
Wed Jun 24 01:06:37 2015 us=495288 connect_retry_seconds = 5
Wed Jun 24 01:06:37 2015 us=495288 connect_timeout = 10
Wed Jun 24 01:06:37 2015 us=495288 NOTE: --mute triggered...
Wed Jun 24 01:06:37 2015 us=495288 265 variation(s) on previous 20 message(s) suppressed by --mute
Wed Jun 24 01:06:37 2015 us=495288 OpenVPN 2.3.7 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jun 8 2015
Wed Jun 24 01:06:37 2015 us=495288 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08
Enter Management Password:
Wed Jun 24 01:06:37 2015 us=495288 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25342
Wed Jun 24 01:06:37 2015 us=495288 Need hold release from management interface, waiting...
Wed Jun 24 01:06:37 2015 us=981316 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25342
Wed Jun 24 01:06:38 2015 us=81321 MANAGEMENT: CMD 'state on'
Wed Jun 24 01:06:38 2015 us=81321 MANAGEMENT: CMD 'log all on'
Wed Jun 24 01:06:38 2015 us=95322 MANAGEMENT: CMD 'hold off'
Wed Jun 24 01:06:38 2015 us=96322 MANAGEMENT: CMD 'hold release'
Wed Jun 24 01:06:38 2015 us=194328 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Wed Jun 24 01:06:38 2015 us=194328 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:38 2015 us=194328 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:38 2015 us=194328 LZO compression initialized
Wed Jun 24 01:06:38 2015 us=194328 Control Channel MTU parms [ L:1558 D:166 EF:66 EB:0 ET:0 EL:3 ]
Wed Jun 24 01:06:38 2015 us=194328 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Jun 24 01:06:38 2015 us=194328 MANAGEMENT: >STATE:1435100798,RESOLVE,,,
Wed Jun 24 01:06:38 2015 us=307334 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:143 ET:0 EL:3 AF:3/1 ]
Wed Jun 24 01:06:38 2015 us=307334 Local Options String: 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
Wed Jun 24 01:06:38 2015 us=307334 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
Wed Jun 24 01:06:38 2015 us=307334 Local Options hash (VER=V4): '9e7066d2'
Wed Jun 24 01:06:38 2015 us=307334 Expected Remote Options hash (VER=V4): '162b04de'
Wed Jun 24 01:06:38 2015 us=307334 UDPv4 link local: [undef]
Wed Jun 24 01:06:38 2015 us=307334 UDPv4 link remote: [AF_INET]my-Server-IP:443
Wed Jun 24 01:06:38 2015 us=307334 MANAGEMENT: >STATE:1435100798,WAIT,,,
Wed Jun 24 01:06:38 2015 us=406340 MANAGEMENT: >STATE:1435100798,AUTH,,,
Wed Jun 24 01:06:38 2015 us=406340 TLS: Initial packet from [AF_INET]my-Server-IP:443, sid=3b70a19b 12de11c8
Wed Jun 24 01:06:39 2015 us=588407 VERIFY OK: depth=1, CN=my-Hostname
Wed Jun 24 01:06:39 2015 us=588407 Validating certificate key usage
Wed Jun 24 01:06:39 2015 us=588407 ++ Certificate has key usage 00a0, expects 00a0
Wed Jun 24 01:06:39 2015 us=588407 VERIFY KU OK
Wed Jun 24 01:06:39 2015 us=588407 Validating certificate extended key usage
Wed Jun 24 01:06:39 2015 us=588407 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Wed Jun 24 01:06:39 2015 us=588407 VERIFY EKU OK
Wed Jun 24 01:06:39 2015 us=588407 VERIFY OK: depth=0, CN=my-Hostname
Wed Jun 24 01:06:40 2015 us=956486 NOTE: Options consistency check may be skewed by version differences
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'version' is used inconsistently, local='version V4', remote='version V0 UNDEF'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'dev-type' is present in local config but missing in remote config, local='dev-type tun'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'link-mtu' is present in local config but missing in remote config, local='link-mtu 1558'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'tun-mtu' is present in local config but missing in remote config, local='tun-mtu 1500'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'keydir' is present in local config but missing in remote config, local='keydir 0'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'cipher' is present in local config but missing in remote config, local='cipher AES-256-CBC'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'auth' is present in local config but missing in remote config, local='auth SHA1'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'keysize' is present in local config but missing in remote config, local='keysize 256'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'tls-auth' is present in local config but missing in remote config, local='tls-auth'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'key-method' is present in local config but missing in remote config, local='key-method 2'
Wed Jun 24 01:06:40 2015 us=956486 WARNING: 'tls-server' is present in local config but missing in remote config, local='tls-server'
Wed Jun 24 01:06:40 2015 us=956486 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 24 01:06:40 2015 us=956486 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:40 2015 us=956486 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Wed Jun 24 01:06:40 2015 us=956486 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 24 01:06:40 2015 us=956486 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Wed Jun 24 01:06:40 2015 us=957486 [my-Hostname] Peer Connection Initiated with [AF_INET]my-Server-IP:443
Wed Jun 24 01:06:42 2015 us=102551 MANAGEMENT: >STATE:1435100802,GET_CONFIG,,,
Wed Jun 24 01:06:43 2015 us=247617 SENT CONTROL [my-Hostname]: 'PUSH_REQUEST' (status=1)
Wed Jun 24 01:06:43 2015 us=366624 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,route 11.0.1.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 11.0.1.6 11.0.1.5'
Wed Jun 24 01:06:43 2015 us=366624 OPTIONS IMPORT: timers and/or timeouts modified
Wed Jun 24 01:06:43 2015 us=366624 OPTIONS IMPORT: --ifconfig/up options modified
Wed Jun 24 01:06:43 2015 us=366624 OPTIONS IMPORT: route options modified
Wed Jun 24 01:06:43 2015 us=378624 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed Jun 24 01:06:43 2015 us=378624 MANAGEMENT: >STATE:1435100803,ASSIGN_IP,,11.0.1.6,
Wed Jun 24 01:06:43 2015 us=378624 open_tun, tt->ipv6=0
Wed Jun 24 01:06:43 2015 us=379624 TAP-WIN32 device [LAN-Verbindung 2] opened: \\.\Global\{6DDAB7C2-A589-43D6-96DA-63CC0B7432EA}.tap
Wed Jun 24 01:06:43 2015 us=379624 TAP-Windows Driver Version 9.21
Wed Jun 24 01:06:43 2015 us=379624 TAP-Windows MTU=1500
Wed Jun 24 01:06:43 2015 us=380624 Notified TAP-Windows driver to set a DHCP IP/netmask of 11.0.1.6/255.255.255.252 on interface {6DDAB7C2-A589-43D6-96DA-63CC0B7432EA} [DHCP-serv: 11.0.1.5, lease-time: 31536000]
Wed Jun 24 01:06:43 2015 us=381624 Successful ARP Flush on interface [27] {6DDAB7C2-A589-43D6-96DA-63CC0B7432EA}
Wed Jun 24 01:06:48 2015 us=575921 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Wed Jun 24 01:06:48 2015 us=575921 C:\Windows\system32\route.exe ADD my-Server-IP MASK 255.255.255.255 192.168.43.1
Wed Jun 24 01:06:48 2015 us=577922 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=25 and dwForwardType=4
Wed Jun 24 01:06:48 2015 us=577922 Route addition via IPAPI succeeded [adaptive]
Wed Jun 24 01:06:48 2015 us=577922 C:\Windows\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 192.168.43.1
Wed Jun 24 01:06:48 2015 us=579922 Route deletion via IPAPI succeeded [adaptive]
Wed Jun 24 01:06:48 2015 us=579922 C:\Windows\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 11.0.1.5
Wed Jun 24 01:06:48 2015 us=580922 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed Jun 24 01:06:48 2015 us=580922 Route addition via IPAPI succeeded [adaptive]
Wed Jun 24 01:06:48 2015 us=580922 MANAGEMENT: >STATE:1435100808,ADD_ROUTES,,,
Wed Jun 24 01:06:48 2015 us=580922 C:\Windows\system32\route.exe ADD 11.0.1.0 MASK 255.255.255.0 11.0.1.5
Wed Jun 24 01:06:48 2015 us=582922 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Wed Jun 24 01:06:48 2015 us=582922 Route addition via IPAPI succeeded [adaptive]
Wed Jun 24 01:06:48 2015 us=582922 Initialization Sequence Completed
Wed Jun 24 01:06:48 2015 us=582922 MANAGEMENT: >STATE:1435100808,CONNECTED,SUCCESS,11.0.1.6,my-Server-IP
Wed Jun 24 01:07:00 2015 us=104581 TCP/UDP: Closing socket
Wed Jun 24 01:07:00 2015 us=105581 C:\Windows\system32\route.exe DELETE 11.0.1.0 MASK 255.255.255.0 11.0.1.5
Wed Jun 24 01:07:00 2015 us=106581 Route deletion via IPAPI succeeded [adaptive]
Wed Jun 24 01:07:00 2015 us=106581 C:\Windows\system32\route.exe DELETE my-Server-IP MASK 255.255.255.255 192.168.43.1
Wed Jun 24 01:07:00 2015 us=108581 Route deletion via IPAPI succeeded [adaptive]
Wed Jun 24 01:07:00 2015 us=108581 C:\Windows\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 11.0.1.5
Wed Jun 24 01:07:00 2015 us=110581 Route deletion via IPAPI succeeded [adaptive]
Wed Jun 24 01:07:00 2015 us=110581 C:\Windows\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 192.168.43.1
Wed Jun 24 01:07:00 2015 us=111581 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=25 and dwForwardType=4
Wed Jun 24 01:07:00 2015 us=111581 Route addition via IPAPI succeeded [adaptive]
Wed Jun 24 01:07:00 2015 us=111581 Closing TUN/TAP interface
Wed Jun 24 01:07:00 2015 us=111581 SIGTERM[hard,] received, process exiting
Wed Jun 24 01:07:00 2015 us=111581 MANAGEMENT: >STATE:1435100820,EXITING,SIGTERM,,