I have installed OpenVPN Access Server on Ubuntu 20.04 LTS server. On the client side I use Network Manager.
The VPN server is part of a private 10.42.24.0/24 network.
In the Admin GUI for the server I changed the default Dynamic Ip Address Network from 172.27.224.0/20 to 10.42.25.0/24 and then created a user.
I configured a new vpn client in Network Manager with the ovpn file. It works.
I am now wondering how to configure the routing on the client to only use the connection for the private network, not anything else. I know I need to tick "Use this connection only for resources on its network" and fill in Address, Netmask and Gateway in IPv4->Routes ... But I have no idea what values to add to include everything in the 10.42.24.0/24 network?
Also I would like to know if there is any other config values on the server that I should be aware of.
Output from client while connected to VPN:
ip -4 route default via 10.42.25.161 dev tun0 proto static metric 50 default via 192.168.1.1 dev eno1 proto dhcp metric 100 default via 192.168.1.1 dev wlp3s0b1 proto dhcp metric 600 10.42.25.160/28 dev tun0 proto kernel scope link src 10.42.25.162 metric 50 123.456.789.128 via 192.168.1.1 dev eno1 proto static metric 100 192.168.1.0/24 dev eno1 proto kernel scope link src 192.168.1.100 metric 100 192.168.1.0/24 dev wlp3s0b1 proto kernel scope link src 192.168.1.11 metric 600 192.168.1.1 dev eno1 proto static scope link metric 100 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown