Temat: OpenVPN zawiecha przy Initialization Sequence Completed
Witam,
Zainstalowałem OpenVPN i próbuje jako klient połączyć się z serwerem OpenVPN.
Mój plik konfiguracyjny my-vpn.conf
dev tun
proto tcp-client
remote przykladowy.host 443
resolv-retry infinite
nobind
#mute-replay-warnings
verb 3
#float
ca ca.crt
cert certyfikat.crt
key klucz.key
tls-client
comp-lzo
script-security 2
#remote-cert-tls clientroot@Gargoyle:/etc/openvpn$ openvpn my-vpn.conf
Sat Jan 7 12:49:34 2012 OpenVPN 2.2.1 mips-openwrt-linux [SSL] [LZO2] [EPOLL] built on Dec 10 2011
Sat Jan 7 12:49:34 2012 WARNING: No server certificate verification method has been enabled. See [url]http://openvpn.net/howto.html#mitm[/url] for more info.
Sat Jan 7 12:49:34 2012 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Enter Private Key Password:
Sat Jan 7 12:49:39 2012 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jan 7 12:49:39 2012 WARNING: file 'klucz.key' is group or others accessible
Sat Jan 7 12:49:39 2012 LZO compression initialized
Sat Jan 7 12:49:39 2012 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Jan 7 12:49:39 2012 Socket Buffers: R=[87380->131072] S=[16384->131072]
Sat Jan 7 12:49:39 2012 TUN/TAP device tun0 opened
Sat Jan 7 12:49:39 2012 TUN/TAP TX queue length set to 100
Sat Jan 7 12:49:39 2012 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Jan 7 12:49:39 2012 Attempting to establish TCP connection with ip.ip.ip.ip:443 [nonblock]
Sat Jan 7 12:49:40 2012 TCP connection established with ip.ip.ip.ip:443
Sat Jan 7 12:49:40 2012 TCPv4_CLIENT link local: [undef]
Sat Jan 7 12:49:40 2012 TCPv4_CLIENT link remote: ip.ip.ip.ip:443
Sat Jan 7 12:49:40 2012 TLS: Initial packet from ip.ip.ip.ip:443, sid=8c5ebaf5 5ab43b89
Sat Jan 7 12:49:45 2012 VERIFY OK: depth=1, /C=PL/O=name/CN=CA/emailAddress=ca@host.pl
Sat Jan 7 12:49:45 2012 VERIFY OK: depth=0, /C=PL/O=name/CN=vpn
Sat Jan 7 12:50:06 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jan 7 12:50:06 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 7 12:50:06 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Jan 7 12:50:06 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Jan 7 12:50:06 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Jan 7 12:50:06 2012 [dzierzoniow] Peer Connection Initiated with ip.ip.ip.ip:443
Sat Jan 7 12:50:07 2012 Initialization Sequence CompletedI to jest koniec...
Po jakimś czasie jest RESET i od nowa leci.
W firewall jedynie dodałem coś takiego na wzór z:
http://eko.one.pl/?p=openwrt-openvpn
Jednak tam jest mowa o TAP nie TUN, stąd nie wiem czy czegoś nie powinienem zrobić jeszcze.
/etc/firewall.user
iptables -I OUTPUT -o tun+ -j ACCEPT
iptables -I INPUT -i tun+ -j ACCEPT
iptables -I FORWARD -o tun+ -j ACCEPT
iptables -I FORWARD -i tun+ -j ACCEPTPozdrawiam
USB Play Online (Huawei E173) + ExtRoot + Squid + Iptables