Hi all, looking for some help.
I have 2 remote OpenVPN servers with the same public IP, but different port numbers:
- Primary OpenVPN server
- Secondary OpenVPN server
I want one ovpn-client interface on my MikroTik to be able to use the primary server and fail over to the secondary server, for resilience purposes.
I have configured the .ovpn client configuration file on my server, which is a Debian 12 host. Which is then transferred, uploaded, and imported (certificates and keys embedded).
Within the client .ovpn file, I include these lines:
#Primary server is top and Secondary server is bottom
remote port <no. >
remote port <no. >
Note: I received a log message saying that the ‘remote random’ feature is not supported.
My ovpn-client interface uses the bottom server, of the pair. I want it to initially connect to the primary, on top.
The connection to the secondary server is running fine. However, I would ideally want to add a distance (priority) to the routes. As the route is dynamic, I am unable to edit its distance. By default, the distance of both the routes is =0, so I cannot specify the route’s priority.
As the ovpn-client interface choose to read the bottom remote server, it creates the route to this. However the route for the primary server is not added to the routing table. Which makes me think MikroTik does not support this feature. Even if I have two separate ovpn-client interfaces, both their routes will be dynamic and have the same distance of =0 .
This there a way around this?
Does MikroTik support the use of multiple ‘remote port <no.>’ e.g. ‘remote 81.215.67.222 port 1456’ lines?