OpenVPN IP address OK, dns name no OK

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
gusto
OpenVpn Newbie
Posts: 6
Joined: Wed Jan 27, 2021 8:56 am

OpenVPN IP address OK, dns name no OK

Post by gusto » Tue Jan 23, 2024 7:21 pm

As an OpenVPN client 2.4.7 x86_64-pc-linux-gnu, I connect to the mikrotik (ver. 6.x) OpenVPN server. My configuration file contains

Code: Select all

client
dev tun
proto tcp
remote example.dyndns.com 1195
ca /etc/openvpn/name/ca.crt
cert /etc/openvpn/name/client.crt
key /etc/openvpn/name/client.key
resolv-retry infinite
nobind
persist-key
persist-tun
data-ciphers-fallback AES-256-CBC
data-ciphers AES-256-GCM:AES-256-CBC:AES-128-GCM:AES-128-CBC
auth sha1
tls-client
remote-cert-tls server
keepalive 10 60
log-append /var/log/openvpn-name.log
verb 1
auth-user-pass /etc/openvpn/name/login.txt
askpass /etc/openvpn/name/password.txt
Everything works great. Now I will install a new debian where OpenVPN ver. 2.6.x (I did a test recently).
If I use the same config as above, I cannot connect to the OpenVPN (mikrotik) server. If I change the remote values from example.dyndns.com to the IP address 11.22.33.44, I can connect without problems.
Does anyone have a similar experience? How could this problem be solved?

Post Reply