Mam większy problem oto config który używam do łączenia z serwerem.
client
dev tap
proto tcp
remote 172.30.5.250 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
ca /etc/openvpn/ca.crt
#cert /etc/openvpn/c2.crt
#key /etc/openvpn/c2.key
script-security 2
verb 5
auth-user-pass
auth-nocache
Na maszynie z innym linuxem nie openwrt dostaję taki komunikat i działa
Tue Dec 18 15:03:09 2012 us=670970 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Dec 18 15:03:09 2012 us=684893 Control Channel MTU parms [ L:1575 D:140 EF:40 EB:0 ET:0 EL:0 ]
Tue Dec 18 15:03:09 2012 us=686996 Data Channel MTU parms [ L:1575 D:1450 EF:43 EB:4 ET:32 EL:0 ]
Tue Dec 18 15:03:09 2012 us=687899 Local Options String: 'V4,dev-type tap,link-mtu 1575,tun-mtu 1532,proto TCPv4_CLIENT,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Tue Dec 18 15:03:09 2012 us=688329 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1575,tun-mtu 1532,proto TCPv4_SERVER,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Tue Dec 18 15:03:09 2012 us=689117 Local Options hash (VER=V4): '10f35004'
Tue Dec 18 15:03:09 2012 us=689832 Expected Remote Options hash (VER=V4): 'a917298a'
Tue Dec 18 15:03:09 2012 us=691105 Attempting to establish TCP connection with 172.30.5.250:1194 [nonblock]
Tue Dec 18 15:03:10 2012 us=694439 TCP connection established with 172.30.5.250:1194
Tue Dec 18 15:03:10 2012 us=694986 Socket Buffers: R=[87380->131072] S=[16384->131072]
Tue Dec 18 15:03:10 2012 us=695531 TCPv4_CLIENT link local: [undef]
Tue Dec 18 15:03:10 2012 us=696036 TCPv4_CLIENT link remote: 172.30.5.250:1194
WRTue Dec 18 15:03:10 2012 us=700827 TLS: Initial packet from 172.30.5.250:1194, sid=d8e47f97 c9d1eb6d
WRWRRWRTue Dec 18 15:03:10 2012 us=821080 VERIFY OK: depth=1, /C=GB/ST=World/L=World/O=VPN_World/CN=VPN_World_CA/emailAddress=cert@wpn_world
Tue Dec 18 15:03:10 2012 us=837949 VERIFY OK: nsCertType=SERVER
Tue Dec 18 15:03:10 2012 us=838528 VERIFY OK: depth=0, /C=GB/ST=World/L=World/O=VPN_World/CN=server/name=server/emailAddress=cert@wpn_world
WRWWWWRRRRRWWWWRRRRRTue Dec 18 15:03:13 2012 us=924959 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Dec 18 15:03:13 2012 us=925595 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Dec 18 15:03:13 2012 us=927378 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Tue Dec 18 15:03:13 2012 us=927997 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
WTue Dec 18 15:03:13 2012 us=929250 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Tue Dec 18 15:03:13 2012 us=930607 [server] Peer Connection Initiated with 172.30.5.250:1194
Tue Dec 18 15:03:15 2012 us=74967 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
WRTue Dec 18 15:03:15 2012 us=79941 PUSH: Received control message: 'PUSH_REPLY,ping 20,ping-restart 60,route-gateway 10.144.144.6,ifconfig 10.144.144.7 255.255.255.0'
Tue Dec 18 15:03:15 2012 us=81269 OPTIONS IMPORT: timers and/or timeouts modified
Tue Dec 18 15:03:15 2012 us=81711 OPTIONS IMPORT: --ifconfig/up options modified
Tue Dec 18 15:03:15 2012 us=82102 OPTIONS IMPORT: route-related options modified
Tue Dec 18 15:03:15 2012 us=87938 TUN/TAP device tap0 opened
Tue Dec 18 15:03:15 2012 us=88854 TUN/TAP TX queue length set to 100
Tue Dec 18 15:03:15 2012 us=90073 /sbin/ifconfig tap0 10.144.144.7 netmask 255.255.255.0 mtu 1500 broadcast 10.144.144.255
Tue Dec 18 15:03:15 2012 us=114693 Initialization Sequence Completed
Na openWrt dostaje taki komunikat
Mon Dec 10 11:53:45 2012 us=189650 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Dec 10 11:53:45 2012 us=199635 Control Channel MTU parms [ L:1575 D:140 EF:40 EB:0 ET:0 EL:0 ]
Mon Dec 10 11:53:45 2012 us=200823 Socket Buffers: R=[87380->131072] S=[16384->131072]
Mon Dec 10 11:53:45 2012 us=201929 Data Channel MTU parms [ L:1575 D:1450 EF:43 EB:4 ET:32 EL:0 ]
Mon Dec 10 11:53:45 2012 us=202901 Attempting to establish TCP connection with 172.30.5.250:1194 [nonblock]
Mon Dec 10 11:53:46 2012 us=204452 TCP connection established with 172.30.5.250:1194
Mon Dec 10 11:53:46 2012 us=204888 TCPv4_CLIENT link local: [undef]
Mon Dec 10 11:53:46 2012 us=205182 TCPv4_CLIENT link remote: 172.30.5.250:1194
WRMon Dec 10 11:53:46 2012 us=207414 TLS: Initial packet from 172.30.5.250:1194, sid=7eceedb9 0d710fef
WRWWRRRWRMon Dec 10 11:53:46 2012 us=301665 VERIFY OK: depth=1, /C=GB/ST=World/L=World/O=VPN_World/CN=VPN_World_CA/emailAddress=cert@wpn_world
Mon Dec 10 11:53:46 2012 us=310546 VERIFY OK: nsCertType=SERVER
Mon Dec 10 11:53:46 2012 us=311542 VERIFY OK: depth=0, /C=GB/ST=World/L=World/O=VPN_World/CN=server/name=server/emailAddress=cert@wpn_world
WRWWWWRRRRRWWWRRMon Dec 10 11:53:47 2012 us=946444 Connection reset, restarting [0]
Mon Dec 10 11:53:47 2012 us=948666 TCP/UDP: Closing socket
Mon Dec 10 11:53:47 2012 us=949921 SIGUSR1[soft,connection-reset] received, process restarting
Mon Dec 10 11:53:47 2012 us=950940 Restart pause, 5 second(s)
Mon Dec 10 11:53:52 2012 us=951929 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mon Dec 10 11:53:52 2012 us=952868 Re-using SSL/TLS context
Mon Dec 10 11:53:52 2012 us=954239 Control Channel MTU parms [ L:1575 D:140 EF:40 EB:0 ET:0 EL:0 ]
Mon Dec 10 11:53:52 2012 us=955012 Socket Buffers: R=[87380->131072] S=[16384->131072]
Mon Dec 10 11:53:52 2012 us=955396 Data Channel MTU parms [ L:1575 D:1450 EF:43 EB:4 ET:32 EL:0 ]
Mon Dec 10 11:53:52 2012 us=955676 Attempting to establish TCP connection with 172.30.5.250:1194 [nonblock]
Mon Dec 10 11:53:53 2012 us=956364 TCP connection established with 172.30.5.250:1194
Mon Dec 10 11:53:53 2012 us=956682 TCPv4_CLIENT link local: [undef]
Mon Dec 10 11:53:53 2012 us=956877 TCPv4_CLIENT link remote: 172.30.5.250:1194
WRMon Dec 10 11:53:53 2012 us=958085 TLS: Initial packet from 172.30.5.250:1194, sid=54494582 d562769c
Na intrenecie znalazłem poszlakę że to może być problem z domyślnymi kodekami wiec dodałem ale nic to nie zmieniło.
cipher AES-128-CBC
auth sha1
Gdzie mogę szukać błędu ????
Na czym się koncentrować ?