OpenVPN Connect ignores route command from config.ovpn file

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
marekrost
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 08, 2023 9:17 am

OpenVPN Connect ignores route command from config.ovpn file

Post by marekrost » Tue Aug 08, 2023 9:25 am

Hello all,

I love the OpenVPN client application and the simple management it provides for profiles. I have one issue however, it seems to completely ignore the route configuration option from OpenVPN config file.

My OpenVPN server is hosted by Mikrotik RouterOS and it's configuration does not allow to push new routes from server. (relevant discussion https://forum.mikrotik.com/viewtopic.php?t=116774 )

This should not be a problem as I can setup the route on the client. According to: https://openvpn.net/community-resources ... p-routing/

I have added a new configuration file line that states:
route 192.168.88.0 255.255.255.0 192.168.110.1

(I want to make subnet 192.168.88.0/24 available through gateway at 192.168.110.1)

However when I load this profile with OpenVPN Connect client application on MacOS and connect with the network - this route does not get pushed into routing table.

Does the OpenVPN Connect client application support this option in the configuration file?

Best regards
Marek

victormarcel
OpenVpn Newbie
Posts: 1
Joined: Wed Aug 16, 2023 9:15 am

Re: OpenVPN Connect ignores route command from config.ovpn file

Post by victormarcel » Wed Aug 16, 2023 9:17 am

When adding a route manually, it's important to consider the metric value. If there are multiple routes to the same destination, the route with the lowest metric value is used. Make sure that the route you're adding doesn't conflict with other routes or that its metric is appropriate.

Post Reply