Community discussions

MikroTik App
 
rfok
just joined
Topic Author
Posts: 2
Joined: Fri May 19, 2023 5:14 pm

OpenVPN Client Supported Options

Sat May 20, 2023 6:11 pm

Hi

This is what's inside the .ovpn file that my VPN provider gave me
client
dev tun
proto udp
remote somevpnsite.net 8041
verify-x509-name somevpnsite.net name
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
reneg-sec 0
remote-cert-tls server
comp-noadapt
auth-user-pass
auth sha256
cipher AES-128-CBC
verb 3
<cert>....

I could import it easily via import .ovpn button in PPP.
But I think RouterOS 7.9 doesn't supprt all of these options. For example resolv-retry infinite.
Therefore my connection is not stable and the OpenVPN Client cannot recover itself automatically

Am I right?
 
User avatar
MickeyT
Member Candidate
Member Candidate
Posts: 125
Joined: Tue Feb 18, 2020 7:06 am
Location: Australia

Re: OpenVPN Client Supported Options

Mon May 22, 2023 10:52 am

But I think RouterOS 7.9 doesn't supprt all of these options. For example resolv-retry infinite.

You are correct that the RouterOS OpenVPN client does not retry to connect when the connection fails or drops and the resolv-retry infinite has no effect.

Currently the only option I am aware of to automatically reconnect would be to write a script that checks the connection and initiates a reconnection attempt if it is down. You would then schedule the script to run on a periodic basis (e.g.: every 5 or 10 minutes).

Who is online

Users browsing this forum: Bing [Bot], Husky, rplant and 63 guests