Temat: MR3420 client OpenVPN Running, Not Connected Uruchomiony, niepołączony
Mam problem z konfiguracją OpenVPN na tym staruszku. Chcę żeby działał jako klient i łączył się z serwerem, który jest postawiony na WRT54GL z tomato.
Serwer jest skonfigurowany i działa poprawnie, jestem w stanie połączyć się z serwerem poprzez windowsowego klienta OpenVPN, mam wygenerowane wszystkie certyfikaty i klucze.
Po odpaleniu klienta na mr3420 dostaję komunikat: Running, Not Connected (Uruchomiony, niepołączony).
Mimo, że na serwerze (wrt54gl) na liście klienckiej pojawia mi się wpis z mr3420 to nie mam dostępu do zasobów stojących za serwerem. Na gargulcu konfiguruję klienta przez gui i plugin:
dev tun
tls-client
remote xxx.xxx.pl 1194
proto udp
keepalive 10 120
nobind
verb 3
cipher AES-256-CBC
ca /etc/openvpn/grouter_client_rsjxrpyvssye_ca.crt
cert /etc/openvpn/grouter_client_rsjxrpyvssye.crt
key /etc/openvpn/grouter_client_rsjxrpyvssye.key Log z mr3420:
Jan 24 21:15:53 Gargoyle daemon.err openvpn(custom_config)[16711]: event_wait : Interrupted system call (code=4)
Jan 24 21:15:53 Gargoyle daemon.notice openvpn(custom_config)[16711]: TCP/UDP: Closing socket
Jan 24 21:15:53 Gargoyle daemon.notice openvpn(custom_config)[16711]: Closing TUN/TAP interface
Jan 24 21:15:53 Gargoyle daemon.notice openvpn(custom_config)[16711]: /etc/openvpn.down tun0 1500 1557 init
Jan 24 21:15:53 Gargoyle daemon.notice netifd: Interface 'vpn' is now down
Jan 24 21:15:53 Gargoyle user.notice root: openvpn down script called
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: OpenVPN 2.2.2 mips-openwrt-linux [SSL] [LZO2] [EPOLL] built on Mar 14 2013
Jan 24 21:15:59 Gargoyle daemon.warn openvpn(custom_config)[17311]: WARNING: No server certificate verification method has been enabled. See [url]http://openvpn.net/howto.html#mitm[/url] for more info.
Jan 24 21:15:59 Gargoyle daemon.warn openvpn(custom_config)[17311]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jan 24 21:15:59 Gargoyle daemon.warn openvpn(custom_config)[17311]: WARNING: file '/etc/openvpn/grouter_client_rsjxrpyvssye.key' is group or others accessible
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: Control Channel MTU parms [ L:1557 D:138 EF:38 EB:0 ET:0 EL:0 ]
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: Socket Buffers: R=[163840->131072] S=[163840->131072]
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: TUN/TAP device tun0 opened
Jan 24 21:15:59 Gargoyle daemon.notice netifd: Interface 'vpn' is now up
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: TUN/TAP TX queue length set to 100
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: /etc/openvpn.up tun0 1500 1557 init
Jan 24 21:15:59 Gargoyle user.notice root: openvpn up script called
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: Data Channel MTU parms [ L:1557 D:1450 EF:57 EB:4 ET:0 EL:0 ]
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: UDPv4 link local: [undef]
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: UDPv4 link remote: xx.xx.xx.xx:1194
Jan 24 21:15:59 Gargoyle daemon.notice openvpn(custom_config)[17311]: TLS: Initial packet from xx.xx.xx.xx:1194, sid=41000d3d 2c6adb37
Jan 24 21:16:00 Gargoyle user.notice firewall: Reloading firewall due to ifup of vpn (tun0)
Jan 24 21:16:02 Gargoyle daemon.notice openvpn(custom_config)[17311]: VERIFY OK: depth=1, /CN=XVPN
Jan 24 21:16:02 Gargoyle daemon.notice openvpn(custom_config)[17311]: VERIFY OK: depth=0, /CN=XVPN
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Jan 24 21:16:05 Gargoyle daemon.notice openvpn(custom_config)[17311]: [XVPN] Peer Connection Initiated with xx.xx.xx.xx:1194
Jan 24 21:16:06 Gargoyle daemon.notice openvpn(custom_config)[17311]: Initialization Sequence CompletedZezwoliłem na komunikację po porcie 1194 ręcznie chociaż nie wiem czy było to konieczne.
Próbowałem kilku kombinacji ale skończyły mi się pomysły ![]()
Co może być przyczyną braku połączenia?