RupertP
Hello,
I have configured my first OpenVPN server but it doesn't work for me. I need help!
The version used is 2.4.9 in Windows Server 2019 and Windows 10 as clients.
Port 1194 is redirected to the server. There is only router and server, there is no firewall in between. Windows Server 2019 firewall is disabled.
Obviously the server and the client computer are in different sites.
The configuration files and logs are as follows:
port 1194
proto udp
dev tap
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"
server 192.168.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
tls-auth ta.key 0
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1
client
dev tap
proto udp
remote IP_PUBLIC_ROUTER_SERVER_OFFICE 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\prueba1.crt"
key "C:\\Program Files\\OpenVPN\\config\\prueba1.key"
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
verb 3
Thu Apr 30 15:23:58 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Thu Apr 30 15:23:58 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Apr 30 15:23:58 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Thu Apr 30 15:23:58 2020 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Apr 30 15:23:58 2020 Need hold release from management interface, waiting...
Thu Apr 30 15:23:58 2020 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'state on'
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'log all on'
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'echo all on'
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'bytecount 5'
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'hold off'
Thu Apr 30 15:23:58 2020 MANAGEMENT: CMD 'hold release'
Thu Apr 30 15:23:58 2020 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Thu Apr 30 15:23:58 2020 Diffie-Hellman initialized with 2048 bit key
Thu Apr 30 15:23:58 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 30 15:23:58 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 30 15:23:58 2020 interactive service msg_channel=0
Thu Apr 30 15:23:58 2020 open_tun
Thu Apr 30 15:23:58 2020 TAP-WIN32 device [Conexión de área local] opened: \\.\Global\{8628CCDF-8D7F-43B9-A3A0-7FCB5695F314}.tap
Thu Apr 30 15:23:58 2020 TAP-Windows Driver Version 9.24
Thu Apr 30 15:23:58 2020 Notified TAP-Windows driver to set a DHCP IP/netmask of 192.168.10.1/255.255.255.0 on interface {8628CCDF-8D7F-43B9-A3A0-7FCB5695F314} [DHCP-serv: 192.168.10.0, lease-time: 31536000]
Thu Apr 30 15:23:58 2020 Sleeping for 10 seconds...
Thu Apr 30 15:24:08 2020 NOTE: FlushIpNetTable failed on interface [12] {8628CCDF-8D7F-43B9-A3A0-7FCB5695F314} (status=1168) : No se ha encontrado el elemento.
Thu Apr 30 15:24:08 2020 MANAGEMENT: >STATE:1588253048,ASSIGN_IP,,192.168.10.1,,,,
Thu Apr 30 15:24:08 2020 Could not determine IPv4/IPv6 protocol. Using AF_INET6
Thu Apr 30 15:24:08 2020 Socket Buffers: R=[131072->131072] S=[131072->131072]
Thu Apr 30 15:24:08 2020 setsockopt(IPV6_V6ONLY=0)
Thu Apr 30 15:24:08 2020 UDPv6 link local (bound): [AF_INET6][undef]:1194
Thu Apr 30 15:24:08 2020 UDPv6 link remote: [AF_UNSPEC]
Thu Apr 30 15:24:08 2020 MULTI: multi_init called, r=256 v=256
Thu Apr 30 15:24:08 2020 IFCONFIG POOL: base=192.168.10.2 size=253, ipv6=0
Thu Apr 30 15:24:08 2020 IFCONFIG POOL LIST
Thu Apr 30 15:24:08 2020 Initialization Sequence Completed
Thu Apr 30 15:24:08 2020 MANAGEMENT: >STATE:1588253048,CONNECTED,SUCCESS,192.168.10.1,,,,
Thu Apr 30 15:46:05 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Thu Apr 30 15:46:05 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Apr 30 15:46:05 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Thu Apr 30 15:46:05 2020 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Thu Apr 30 15:46:05 2020 Need hold release from management interface, waiting...
Thu Apr 30 15:46:06 2020 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'state on'
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'log all on'
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'echo all on'
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'bytecount 5'
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'hold off'
Thu Apr 30 15:46:06 2020 MANAGEMENT: CMD 'hold release'
Thu Apr 30 15:46:06 2020 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 30 15:46:06 2020 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Apr 30 15:46:06 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]IP_PUBLIC_ROUTER_SERVER_OFFICE:1194
Thu Apr 30 15:46:06 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Apr 30 15:46:06 2020 UDP link local: (not bound)
Thu Apr 30 15:46:06 2020 UDP link remote: [AF_INET]IP_PUBLIC_ROUTER_SERVER_OFFICE:1194
Thu Apr 30 15:46:06 2020 MANAGEMENT: >STATE:1588254366,WAIT,,,,,,
Thu Apr 30 15:47:06 2020 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Apr 30 15:47:06 2020 TLS Error: TLS handshake failed
Thu Apr 30 15:47:06 2020 SIGUSR1[soft,tls-error] received, process restarting
Thu Apr 30 15:47:06 2020 MANAGEMENT: >STATE:1588254426,RECONNECTING,tls-error,,,,,
Thu Apr 30 15:47:06 2020 Restart pause, 5 second(s)
Thu Apr 30 15:47:11 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]IP_PUBLIC_ROUTER_SERVER_OFFICE:1194
Thu Apr 30 15:47:11 2020 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Apr 30 15:47:11 2020 UDP link local: (not bound)
Thu Apr 30 15:47:11 2020 UDP link remote: [AF_INET]IP_PUBLIC_ROUTER_SERVER_OFFICE:1194
Thu Apr 30 15:47:11 2020 MANAGEMENT: >STATE:1588254431,WAIT,,,,,,
Thank you very much!