Community discussions

MikroTik App
 
janyx
just joined
Topic Author
Posts: 1
Joined: Tue Feb 14, 2023 9:15 pm

OpenVPN IP address OK, dns name no OK

Tue Jan 23, 2024 2:14 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
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?

Who is online

Users browsing this forum: Ahrefs [Bot] and 15 guests