I have an Ubuntu machine connected to a VPN, with the IP address 172.16.1.250
. I want to tunnel all the requests for 172.16.1.*
through the VPN, but nothing else. If I try to use sudo route -net add 172.16.1.0/24 dev ppp0
, I get the error message:
netmask 00000fff doesn't make sense with host route
However, simply adding a route for one address on that subnet works. What is the correct way of doing this?