Hi all. Been at it for 4 days now and I'm fresh out of ideas.
Basically, I have 2 sites that need a VPN connection. It used to work but suddenly it stopped working. I can create a VPN tunnel within the internal LAN but for some reason I can't hit my public IP address.
Configs as follows:
Server: CentOS 7 (OpenVPN 2.4.9, EasyRSA 3.0.7)
port 1194
proto udp
dev tun
ca ...
cert ...
key ...
dh ...
tls-crypt ...
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.20.0 255.255.255.0"
keepalive 10 120
cipher AES-256-CBC
auth SHA512
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 6
explicit-exit-notify 1
client
dev tun
proto udp
ca ...
crt ...
key ...
tls-crypt ...
remote (public IP Address redacted) 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
tls-client
tls-cipher TLS-ECDHE-RSA-WITH-AES-GCM-SHA256:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256:TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256
remote-cert-tls server
cipher AES-256-CBC
auth SHA512
auth-nocache
comp-lzo
verb 6
public (active)
target: DROP
icmp-block-inversion: yes
interfaces: enp2s0
sources:
services: openvpn
ports:
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Client Log Snippet:
Jul 23 14:31:23 localhost ovpn-client[8833]: Re-using SSL/TLS context
Jul 23 14:31:23 localhost ovpn-client[8833]: Control Channel MTU parms [ L:1621 D:1140 EF:110 EB:0 ET:0 EL:3 ]
Jul 23 14:31:23 localhost ovpn-client[8833]: Data Channel MTU parms [ L:1621 D:1450 EF:121 EB:406 ET:0 EL:3 ]
Jul 23 14:31:23 localhost ovpn-client[8833]: Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1601,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-client'
Jul 23 14:31:23 localhost ovpn-client[8833]: Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1601,tun-mtu 1500,proto UDPv4,cipher AES-256-CBC,auth SHA512,keysize 256,tls-auth,key-method 2,tls-server'
Jul 23 14:31:23 localhost ovpn-client[8833]: TCP/UDP: Preserving recently used remote address: [AF_INET](public IP address):1194
Jul 23 14:31:23 localhost ovpn-client[8833]: Socket Buffers: R=[212992->212992] S=[212992->212992]
Jul 23 14:31:23 localhost ovpn-client[8833]: UDP link local: (not bound)
Jul 23 14:31:23 localhost ovpn-client[8833]: UDP link remote: [AF_INET](public IP Address):1194
Jul 23 14:31:23 localhost ovpn-client[8833]: UDP WRITE [86] to [AF_INET](public IP Address):1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #1 ] [ ] pid=0 DATA len=0
Jul 23 14:31:25 localhost ovpn-client[8833]: UDP WRITE [86] to [AF_INET](public IP Address):1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #2 ] [ ] pid=0 DATA len=0
Jul 23 14:31:29 localhost ovpn-client[8833]: UDP WRITE [86] to [AF_INET](public IP Address):1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #3 ] [ ] pid=0 DATA len=0
Jul 23 14:31:37 localhost ovpn-client[8833]: UDP WRITE [86] to [AF_INET](public IP Address):1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #4 ] [ ] pid=0 DATA len=0
Jul 23 14:31:53 localhost ovpn-client[8833]: UDP WRITE [86] to [AF_INET](public IP Address):1194: P_CONTROL_HARD_RESET_CLIENT_V2 kid=0 pid=[ #5 ] [ ] pid=0 DATA len=0
Jul 23 14:32:23 localhost ovpn-client[8833]: TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Jul 23 14:32:23 localhost ovpn-client[8833]: TLS Error: TLS handshake failed
Jul 23 14:32:23 localhost ovpn-client[8833]: TCP/UDP: Closing socket
Jul 23 14:32:23 localhost ovpn-client[8833]: SIGUSR1[soft,tls-error] received, process restarting
Jul 23 14:32:23 localhost ovpn-client[8833]: Restart pause, 300 second(s)
I've checked with my ISP. They're not filtering OpenVPN traffic. Any help would be greatly appreciated. Thanks in advance.