I have a small issue I wondering if someone has faced the same and maybe some help on how to approach this. I am running openvpn 2.4.11 (shipped with RHEL/CentOS 8).
I have my server configuration as follows:
port 1194
proto udp
dev tun
server 10.8.0.0 255.255.255.0
tls-server
topology subnet
ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/cert.crt
key /etc/openvpn/certs/cert.key
dh /etc/openvpn/server/dh.pem
tls-crypt /etc/openvpn/myvpn.tlsauth
push "redirect-gateway def1"
push "dhcp-option DNS 10.8.0.1"
push "register-dns"
cipher AES-256-GCM
tls-version-min 1.2
auth SHA512
auth-nocache
keepalive 20 60
persist-key
persist-tun
compress lz4
daemon
user nobody
group nobody
max-clients 6
log-append /var/log/openvpn.log
status /var/log/openvpn-status.log
verb 3
username-as-common-name
verify-client-cert none
client-cert-not-required
auth-user-pass-verify "/etc/openvpn/auth.py" via-file
script-security 2
My client configuration as follows:
client
dev tun
proto udp
remote xxx.xxx.xxx.xxx 1194
persist-key
persist-tun
verb 3
remote-cert-tls server
cipher AES-256-GCM
auth SHA512
auth-nocache
tls-version-min 1.2
compress lz4
auth-user-pass
<ca>...</ca>
<tls-crypt>...</tls-crypt>
I have no errors no openvpn log except for a warning about link-mtu size being different....
The NAT rules are as follows (I have a more complex one but using this for troubleshooting):
Code: Select all
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -i eth0 -p udp -m state --state NEW -m udp --dport 1194 -j ACCEPT
-A INPUT -i tun0 -j ACCEPT
-A FORWARD -i tun0 -j ACCEPT
-A FORWARD -i tun0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
Code: Select all
nslookup
> server 10.8.0.1
Default server: 10.8.0.1
Address: 10.8.0.1#53
> youtube.com
Server: 10.8.0.1
Address: 10.8.0.1#53
Non-authoritative answer:
Name: youtube.com
Address: 142.250.201.174
> www.youtube.com
;; connection timed out; no servers could be reached
>
Code: Select all
nslookup
> server 10.8.0.1
Default server: 10.8.0.1
Address: 10.8.0.1#53
> youtube.com
Server: 10.8.0.1
Address: 10.8.0.1#53
Non-authoritative answer:
Name: youtube.com
Address: 142.250.201.174
Name: youtube.com
Address: 2a00:1450:4007:81a::200e
> www.youtube.com
Server: 10.8.0.1
Address: 10.8.0.1#53
Non-authoritative answer:
www.youtube.com canonical name = youtube-ui.l.google.com.
Name: youtube-ui.l.google.com
Address: 216.58.204.110
Name: youtube-ui.l.google.com
Address: 216.58.209.238
Name: youtube-ui.l.google.com
Address: 216.58.204.142
Name: youtube-ui.l.google.com
Address: 142.250.201.174
Name: youtube-ui.l.google.com
Address: 142.250.179.110
Name: youtube-ui.l.google.com
Address: 142.250.75.238
Name: youtube-ui.l.google.com
Address: 216.58.214.78
Name: youtube-ui.l.google.com
Address: 216.58.201.238
Name: youtube-ui.l.google.com
Address: 142.250.178.142
Name: youtube-ui.l.google.com
Address: 172.217.19.238
Name: youtube-ui.l.google.com
Address: 172.217.18.206
Name: youtube-ui.l.google.com
Address: 142.250.74.238
Name: youtube-ui.l.google.com
Address: 216.58.213.142
Name: youtube-ui.l.google.com
Address: 172.217.22.142
Name: youtube-ui.l.google.com
Address: 216.58.213.174
Name: youtube-ui.l.google.com
Address: 216.58.214.174
Name: youtube-ui.l.google.com
Address: 2a00:1450:4007:80f::200e
Name: youtube-ui.l.google.com
Address: 2a00:1450:4007:80a::200e
Name: youtube-ui.l.google.com
Address: 2a00:1450:4007:818::200e
Name: youtube-ui.l.google.com
Address: 2a00:1450:4007:819::200e
>
The only messages I get on OpenVPN are:
Code: Select all
xxx.xxx.xxx.xxx:49995 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1552', remote='link-mtu 1524'
Any advice (ICMP ping does work for any place, just DNS fails)?