Vedius
Members-
Content Count
2 -
Joined
... -
Last visited
...
About Vedius
-
Rank
Newbie
-
[SOLVED] Failed to connect through DD-WRT router
Vedius replied to gpieper's topic in General & Suggestions
Hi, I've modified OpenVPN configuration to connect to the same server(Vega) but this time using TCP protocol and Port 80. OpenVPN client keeps trying to reconnect to the server with no real success. The state bar shows "RECONNECTING". When using UDP on port 443 the state bar showed "AUTH". I've attached the log file and the screen shot with the new configuration for OpenVPN. I've also disabled firewall, so we can focus first on connection. Thanks vpnlogs_2.zip -
[SOLVED] Failed to connect through DD-WRT router
Vedius replied to gpieper's topic in General & Suggestions
Hello, I have the same issue, but with a differet router LINKSYS E4200 v1 with DD-WRT/OpenVPn installed on it. Version of DD-WRT firmware is DD-WRT v24-sp2 (07/20/12) mega (SVN revision 19519) I've followed the steps described here https://airvpn.org/ddwrt. Here is my OpenVPN log: Serverlog Clientlog 20120911 18:08:24 I SIGUSR1[soft tls-error] received process restarting 20120911 18:08:24 Restart pause 2 second(s) 20120911 18:08:26 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 20120911 18:08:26 I Re-using SSL/TLS context 20120911 18:08:26 I LZO compression initialized 20120911 18:08:26 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ] 20120911 18:08:26 Socket Buffers: R=[114688->131072] S=[114688->131072] 20120911 18:08:26 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ] 20120911 18:08:26 Local Options String: 'V4 dev-type tun link-mtu 1558 tun-mtu 1500 proto UDPv4 comp-lzo cipher AES-256-CBC auth SHA1 keysize 256 key-method 2 tls-client' 20120911 18:08:26 Expected Remote Options String: 'V4 dev-type tun link-mtu 1558 tun-mtu 1500 proto UDPv4 comp-lzo cipher AES-256-CBC auth SHA1 keysize 256 key-method 2 tls-server' 20120911 18:08:26 Local Options hash (VER=V4): '22188c5b' 20120911 18:08:26 Expected Remote Options hash (VER=V4): 'a8f55717' 20120911 18:08:26 I UDPv4 link local: [undef] 20120911 18:08:26 I UDPv4 link remote: 69.163.36.66:443 20120911 18:08:26 TLS: Initial packet from 69.163.36.66:443 sid=d674e07c f92ea13b 20120911 18:08:26 VERIFY OK: depth=1 /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org 20120911 18:08:26 VERIFY OK: nsCertType=SERVER 20120911 18:08:26 VERIFY OK: depth=0 /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org 20120911 18:09:26 N TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) 20120911 18:09:26 N TLS Error: TLS handshake failed 20120911 18:09:26 TCP/UDP: Closing socket 20120911 18:09:26 I SIGUSR1[soft tls-error] received process restarting 20120911 18:09:26 Restart pause 2 second(s) 20120911 18:09:28 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 20120911 18:09:28 I Re-using SSL/TLS context 20120911 18:09:28 I LZO compression initialized 20120911 18:09:28 Control Channel MTU parms [ L:1558 D:138 EF:38 EB:0 ET:0 EL:0 ] 20120911 18:09:28 Socket Buffers: R=[114688->131072] S=[114688->131072] 20120911 18:09:28 Data Channel MTU parms [ L:1558 D:1450 EF:58 EB:135 ET:0 EL:0 AF:3/1 ] 20120911 18:09:28 Local Options String: 'V4 dev-type tun link-mtu 1558 tun-mtu 1500 proto UDPv4 comp-lzo cipher AES-256-CBC auth SHA1 keysize 256 key-method 2 tls-client' 20120911 18:09:28 Expected Remote Options String: 'V4 dev-type tun link-mtu 1558 tun-mtu 1500 proto UDPv4 comp-lzo cipher AES-256-CBC auth SHA1 keysize 256 key-method 2 tls-server' 20120911 18:09:28 Local Options hash (VER=V4): '22188c5b' 20120911 18:09:28 Expected Remote Options hash (VER=V4): 'a8f55717' 20120911 18:09:28 I UDPv4 link local: [undef] 20120911 18:09:28 I UDPv4 link remote: 69.163.36.66:443 20120911 18:09:28 TLS: Initial packet from 69.163.36.66:443 sid=ef2fd8fe 0c833747 20120911 18:09:28 VERIFY OK: depth=1 /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=airvpn.org_CA/emailAddress=info@airvpn.org 20120911 18:09:28 VERIFY OK: nsCertType=SERVER 20120911 18:09:28 VERIFY OK: depth=0 /C=IT/ST=IT/L=Perugia/O=airvpn.org/CN=server/emailAddress=info@airvpn.org 20120911 18:10:17 MANAGEMENT: Client connected from 127.0.0.1:5001 20120911 18:10:17 D MANAGEMENT: CMD 'state' 20120911 18:10:17 MANAGEMENT: Client disconnected 20120911 18:10:17 MANAGEMENT: Client connected from 127.0.0.1:5001 20120911 18:10:17 D MANAGEMENT: CMD 'state' 20120911 18:10:17 MANAGEMENT: Client disconnected 20120911 18:10:17 MANAGEMENT: Client connected from 127.0.0.1:5001 20120911 18:10:17 D MANAGEMENT: CMD 'state' 20120911 18:10:17 MANAGEMENT: Client disconnected 20120911 18:10:17 MANAGEMENT: Client connected from 127.0.0.1:5001 20120911 18:10:17 D MANAGEMENT: CMD 'log 500' 19700101 00:00:00 I've connected with ssh to router and it seems that OpenVPN creates this client configuration file: ca /tmp/openvpncl/ca.crt cert /tmp/openvpncl/client.crt key /tmp/openvpncl/client.key management 127.0.0.1 5001 management-log-cache 50 verb 4 mute 5 log-append /var/log/openvpncl writepid /var/run/openvpncl.pid client resolv-retry infinite nobind persist-key persist-tun script-security 2 mtu-disc yes dev tun1 proto udp cipher aes-256-cbc auth sha1 remote 69.163.36.66 443 tls-client tun-mtu 1500 comp-lzo yes ns-cert-type server fast-io tls-cipher AES256-SHA where it's using "tun1" instead of "tun0" for interface. According to this I've modified the command sripts to startup /usr/sbin/openvpn --mktun --dev tun1 firewall iptables -I FORWARD -i br0 -o tun1 -j ACCEPT iptables -I FORWARD -i tun1 -o br0 -j ACCEPT iptables -I INPUT -i tun1 -j REJECT iptables -t nat -A POSTROUTING -o tun1 -j MASQUERADE NOTE: My home setup has two routers: one from my ISP provider(192.168.1.1) and LINKSYS E4200(192.168.15.1) sitting behind ISP router. WAN of LINKSYS router is connected to LAN of the ISP router. My laptop connected with cable to LINKSYS router can access the internet. I've been trying different startup scripts but nothing seems to work.I'm trying to connect to Vega server(DNS 10.4.0.1) using UDP on 443 port. Please help. Thanks vpnlogs.zip