I'm new to VPN and trying to set up openvpn connection to Edgerouter Lite. After following bunch of internet tutirials, i managed to generate certificates and start the server. But when I'm trying to connect it looks like something is happening but not exactly what is should be. It looks like this:
Wed Aug 09 13:19:48 2017 OpenVPN 2.4.3 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jul 14 2017
Wed Aug 09 13:19:48 2017 Windows version 6.1 (Windows 7) 64bit
Wed Aug 09 13:19:48 2017 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.10
Enter Management Password:
Wed Aug 09 13:19:48 2017 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Wed Aug 09 13:19:48 2017 Need hold release from management interface, waiting...
Wed Aug 09 13:19:48 2017 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Wed Aug 09 13:19:48 2017 MANAGEMENT: CMD 'state on'
Wed Aug 09 13:19:48 2017 MANAGEMENT: CMD 'log all on'
Wed Aug 09 13:19:48 2017 MANAGEMENT: CMD 'echo all on'
Wed Aug 09 13:19:48 2017 MANAGEMENT: CMD 'hold off'
Wed Aug 09 13:19:48 2017 MANAGEMENT: CMD 'hold release'
Wed Aug 09 13:19:48 2017 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Aug 09 13:19:48 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]10.35.0.103:443
Wed Aug 09 13:19:48 2017 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Aug 09 13:19:48 2017 UDP link local: (not bound)
Wed Aug 09 13:19:48 2017 UDP link remote: [AF_INET]10.35.0.103:443
Wed Aug 09 13:19:48 2017 MANAGEMENT: >STATE:1502277588,WAIT,,,,,,
Wed Aug 09 13:19:48 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:19:50 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:19:54 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:20:02 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:20:18 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:20:48 2017 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Aug 09 13:20:48 2017 TLS Error: TLS handshake failed
Wed Aug 09 13:20:48 2017 SIGUSR1[soft,tls-error] received, process restarting
Wed Aug 09 13:20:48 2017 MANAGEMENT: >STATE:1502277648,RECONNECTING,tls-error,,,,,
Wed Aug 09 13:20:48 2017 Restart pause, 5 second(s)
Wed Aug 09 13:20:53 2017 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Aug 09 13:20:53 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]10.35.0.103:443
Wed Aug 09 13:20:53 2017 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Aug 09 13:20:53 2017 UDP link local: (not bound)
Wed Aug 09 13:20:53 2017 UDP link remote: [AF_INET]10.35.0.103:443
Wed Aug 09 13:20:53 2017 MANAGEMENT: >STATE:1502277653,WAIT,,,,,,
Wed Aug 09 13:20:53 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:20:56 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:21:00 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:21:08 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:21:25 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:21:53 2017 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Aug 09 13:21:53 2017 TLS Error: TLS handshake failed
Wed Aug 09 13:21:53 2017 SIGUSR1[soft,tls-error] received, process restarting
Wed Aug 09 13:21:53 2017 MANAGEMENT: >STATE:1502277713,RECONNECTING,tls-error,,,,,
Wed Aug 09 13:21:53 2017 Restart pause, 5 second(s)
Wed Aug 09 13:21:58 2017 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Aug 09 13:21:58 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]10.35.0.103:443
Wed Aug 09 13:21:58 2017 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Aug 09 13:21:58 2017 UDP link local: (not bound)
Wed Aug 09 13:21:58 2017 UDP link remote: [AF_INET]10.35.0.103:443
Wed Aug 09 13:21:58 2017 MANAGEMENT: >STATE:1502277718,WAIT,,,,,,
Wed Aug 09 13:21:58 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:22:00 2017 read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)
Wed Aug 09 13:22:02 2017 SIGTERM[hard,] received, process exiting
Wed Aug 09 13:22:02 2017 MANAGEMENT: >STATE:1502277722,EXITING,SIGTERM,,,,,
And so on... Could someone plis tell me what should I do first to diagnose what's wrong? For training purpose, router is inside lan (10.35.X.X on wan port).
My OpenVPN config:
openvpn vtun0 {
description OpenVPN
local-port 443
mode server
openvpn-option "--comp-lzo no"
protocol tcp-passive
server {
push-route 192.168.103.0/24
subnet 192.168.200.0/24
topology subnet
}
tls {
ca-cert-file /config/auth/cacert.pem
cert-file /config/auth/SERVER.pem
dh-file /config/auth/DH.pem
key-file /config/auth/SERVER-NOPASS.key
}
}
Thank you.