Hey fellas. I really could use an advice from the more experienced network sharks around here. I have been struggling for days to set up an OpenVPN server on my Asus RT-87U with a fresh AsusWRT (Merlin Firmware version 378.54_2 + following hardware reset.
I also initially donated 10 USD for this fantastic Router software from Merlin...
So all should be good about the router the setup and I pretty much used the standard config for the VPN Server.
It seems like my DH Key is too small. The server initializes with length 512 and I have read 2048 is default.
The Question is just if that is really the root cause, and how can I change it ?
When I am trying to connect to the OpenVPN server, I see following error in the TunnelBlick (VPN client for mac) log:
---------- VPN CLIENT LOG ------
2015-06-17 00:42:12 *Tunnelblick: Established communication with OpenVPN
2015-06-17 00:42:12 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2015-06-17 00:42:12 UDPv4 link local: [undef]
2015-06-17 00:42:12 UDPv4 link remote: [AF_INET]78.68.180.155:1194
2015-06-17 00:42:15 TLS_ERROR: BIO read tls_read_plaintext error: error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small
2015-06-17 00:42:15 TLS Error: TLS object -> incoming plaintext read error
2015-06-17 00:42:15 TLS Error: TLS handshake failed
2015-06-17 00:42:15 SIGUSR1[soft,tls-error] received, process restarting
2015-06-17 00:42:15 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
---------------------
The OpenVPN server log (AsusWRT) says:
------------
un 17 00:40:49 rc_service: httpd 1195:notify_rc restart_chpass;restart_vpnserver1
Jun 17 00:40:50 openvpn[1518]: event_wait : Interrupted system call (code=4)
Jun 17 00:40:50 openvpn[1518]: Closing TUN/TAP interface
Jun 17 00:40:50 openvpn[1518]: /usr/sbin/ip addr del dev tun21 10.8.0.1/24
Jun 17 00:40:50 openvpn[1518]: SIGTERM[hard,] received, process exiting
Jun 17 00:40:50 kernel: tun: Universal TUN/TAP device driver, 1.6
Jun 17 00:40:50 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jun 17 00:40:51 kernel: ADDRCONF(NETDEV_UP): tun21: link is not ready
Jun 17 00:40:51 kernel: device tun21 entered promiscuous mode
Jun 17 00:40:51 openvpn[1593]: OpenVPN 2.3.6 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jun 10 2015
Jun 17 00:40:51 openvpn[1593]: library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.08
Jun 17 00:40:51 openvpn[1593]: Diffie-Hellman initialized with 512 bit key
Jun 17 00:40:51 openvpn[1593]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Jun 17 00:40:51 openvpn[1593]: TUN/TAP device tun21 opened
Jun 17 00:40:51 openvpn[1593]: TUN/TAP TX queue length set to 100
Jun 17 00:40:51 openvpn[1593]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jun 17 00:40:51 openvpn[1593]: /usr/sbin/ip link set dev tun21 up mtu 1500
Jun 17 00:40:51 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Jun 17 00:40:51 openvpn[1593]: /usr/sbin/ip addr add dev tun21 10.8.0.1/24 broadcast 10.8.0.255
Jun 17 00:40:51 openvpn[1596]: UDPv4 link local (bound): [undef]
Jun 17 00:40:51 openvpn[1596]: UDPv4 link remote: [undef]
Jun 17 00:40:51 openvpn[1596]: MULTI: multi_init called, r=256 v=256
Jun 17 00:40:51 openvpn[1596]: IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Jun 17 00:40:51 openvpn[1596]: Initialization Sequence Completed
Jun 17 00:42:12 openvpn[1596]: 94.191.186.197:50165 TLS: Initial packet from [AF_INET]94.191.186.197:50165, sid=39227b1b 506c3dfe
Jun 17 00:42:14 openvpn[1596]: 94.191.186.197:25933 TLS: Initial packet from [AF_INET]94.191.186.197:25933, sid=ac4ba775 50f59721
Jun 17 00:42:17 openvpn[1596]: 94.191.186.197:50188 TLS: Initial packet from [AF_INET]94.191.186.197:50188, sid=346ac944 f97c0bb5
Jun 17 00:42:19 openvpn[1596]: 94.191.186.197:25956 TLS: Initial packet from [AF_INET]94.191.186.197:25956, sid=04628d8c 2abe8ca5
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 TLS Error: TLS handshake failed
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 TLS Error: TLS handshake failed
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 TLS Error: TLS handshake failed
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 TLS Error: TLS handshake failed
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:32 dnsmasq-dhcp[1177]: DHCPREQUEST(br0) 192.168.1.15 04:0c:ce:e1:32:e4
-------------
Just hoping any angel comes by and help, as I feel pretty stuck from here
Best regards, Daniel from Denmark
I also initially donated 10 USD for this fantastic Router software from Merlin...
So all should be good about the router the setup and I pretty much used the standard config for the VPN Server.
It seems like my DH Key is too small. The server initializes with length 512 and I have read 2048 is default.
The Question is just if that is really the root cause, and how can I change it ?
When I am trying to connect to the OpenVPN server, I see following error in the TunnelBlick (VPN client for mac) log:
---------- VPN CLIENT LOG ------
2015-06-17 00:42:12 *Tunnelblick: Established communication with OpenVPN
2015-06-17 00:42:12 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2015-06-17 00:42:12 UDPv4 link local: [undef]
2015-06-17 00:42:12 UDPv4 link remote: [AF_INET]78.68.180.155:1194
2015-06-17 00:42:15 TLS_ERROR: BIO read tls_read_plaintext error: error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key too small
2015-06-17 00:42:15 TLS Error: TLS object -> incoming plaintext read error
2015-06-17 00:42:15 TLS Error: TLS handshake failed
2015-06-17 00:42:15 SIGUSR1[soft,tls-error] received, process restarting
2015-06-17 00:42:15 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
---------------------
The OpenVPN server log (AsusWRT) says:
------------
un 17 00:40:49 rc_service: httpd 1195:notify_rc restart_chpass;restart_vpnserver1
Jun 17 00:40:50 openvpn[1518]: event_wait : Interrupted system call (code=4)
Jun 17 00:40:50 openvpn[1518]: Closing TUN/TAP interface
Jun 17 00:40:50 openvpn[1518]: /usr/sbin/ip addr del dev tun21 10.8.0.1/24
Jun 17 00:40:50 openvpn[1518]: SIGTERM[hard,] received, process exiting
Jun 17 00:40:50 kernel: tun: Universal TUN/TAP device driver, 1.6
Jun 17 00:40:50 kernel: tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Jun 17 00:40:51 kernel: ADDRCONF(NETDEV_UP): tun21: link is not ready
Jun 17 00:40:51 kernel: device tun21 entered promiscuous mode
Jun 17 00:40:51 openvpn[1593]: OpenVPN 2.3.6 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jun 10 2015
Jun 17 00:40:51 openvpn[1593]: library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.08
Jun 17 00:40:51 openvpn[1593]: Diffie-Hellman initialized with 512 bit key
Jun 17 00:40:51 openvpn[1593]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Jun 17 00:40:51 openvpn[1593]: TUN/TAP device tun21 opened
Jun 17 00:40:51 openvpn[1593]: TUN/TAP TX queue length set to 100
Jun 17 00:40:51 openvpn[1593]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jun 17 00:40:51 openvpn[1593]: /usr/sbin/ip link set dev tun21 up mtu 1500
Jun 17 00:40:51 kernel: ADDRCONF(NETDEV_CHANGE): tun21: link becomes ready
Jun 17 00:40:51 openvpn[1593]: /usr/sbin/ip addr add dev tun21 10.8.0.1/24 broadcast 10.8.0.255
Jun 17 00:40:51 openvpn[1596]: UDPv4 link local (bound): [undef]
Jun 17 00:40:51 openvpn[1596]: UDPv4 link remote: [undef]
Jun 17 00:40:51 openvpn[1596]: MULTI: multi_init called, r=256 v=256
Jun 17 00:40:51 openvpn[1596]: IFCONFIG POOL: base=10.8.0.2 size=252, ipv6=0
Jun 17 00:40:51 openvpn[1596]: Initialization Sequence Completed
Jun 17 00:42:12 openvpn[1596]: 94.191.186.197:50165 TLS: Initial packet from [AF_INET]94.191.186.197:50165, sid=39227b1b 506c3dfe
Jun 17 00:42:14 openvpn[1596]: 94.191.186.197:25933 TLS: Initial packet from [AF_INET]94.191.186.197:25933, sid=ac4ba775 50f59721
Jun 17 00:42:17 openvpn[1596]: 94.191.186.197:50188 TLS: Initial packet from [AF_INET]94.191.186.197:50188, sid=346ac944 f97c0bb5
Jun 17 00:42:19 openvpn[1596]: 94.191.186.197:25956 TLS: Initial packet from [AF_INET]94.191.186.197:25956, sid=04628d8c 2abe8ca5
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 TLS Error: TLS handshake failed
Jun 17 00:43:12 openvpn[1596]: 94.191.186.197:50165 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 TLS Error: TLS handshake failed
Jun 17 00:43:14 openvpn[1596]: 94.191.186.197:25933 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 TLS Error: TLS handshake failed
Jun 17 00:43:17 openvpn[1596]: 94.191.186.197:50188 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 TLS Error: TLS handshake failed
Jun 17 00:43:19 openvpn[1596]: 94.191.186.197:25956 SIGUSR1[soft,tls-error] received, client-instance restarting
Jun 17 00:43:32 dnsmasq-dhcp[1177]: DHCPREQUEST(br0) 192.168.1.15 04:0c:ce:e1:32:e4
-------------
Just hoping any angel comes by and help, as I feel pretty stuck from here
Best regards, Daniel from Denmark