Quote from: nero355 on February 05, 2026, 03:13:15 PMSo just add to the Clients config file the following =>
file (client.ovpn):Code Selectroute-nopull
route 192.168.90.0 255.255.255.0
I assumed the subnet here, but you get the idea :)
I tried your suggestion of:
Code Select
route-nopull
route 192.168.90.0 255.255.255.0but it did nothing. So I then tried playing around with random settings in the VPN setup. I finally noticed a field called "DNS Server" so I thought I would give it a try. I put in the IP of the server VPN interface and it worked! The local client took that interface as its DNS server. I find it very strange that none of the tutorials I searched, including the one in OPNsense's own documentation here: https://docs.opnsense.org/manual/how-tos/sslvpn_instance_roadwarrior.html mentioned anything about this field being required to make this work. That cost me a lot of hours.I then reinserted your code above and it made the local client's Internet connection keep its own DNS settings while the VPN connection kept the remote server as its DNS. Mission accomplished.
Thanks so much for your help.
"