Uncategorized

OpenVPN: Client and Server have the same Subnet (Conflict)

I’m having this problem on an Ubuntu machine, so the “workaround” would be to add a route that pushes that IP through the VPN tunnel instead of going to the local router first.

To do this add:

route add 192.168.1.244 dev tun0

Or the other way around, if you want to route to the local network instead of the VPN.

Windows 10

Some useful commands to tweak your local Windows 10 computer are:

route print

route ADD 192.168.0.0 MASK 255.255.255.0 192.168.5.1

To make the route persistent, meaning it will still be there when you restart your computer add -p to your code.

route -p ADD 192.168.0.0 MASK 255.255.255.0 192.168.5.1

netsh interface ip delete destinationcache

route delete IP

Leave a Reply

Your email address will not be published. Required fields are marked *