I have a VPN setup using OpenVPN and an OpenWrt/LEDE router.
Everything works fine, except when I'm at home (it's my main office) where I have the same setup network wise.
Here's the setup shared by both LANs:
OpenVPN using Tunnelblick client on Mac OS X
Router: 10.0.0.1
Mask: 255.255.255.0
DNS: 10.0.0.1
Doing a tunnel makes that both networks now share the same subnet, which is a bad thing and nothing resolves. Sharing my cellular data works as it's out of the LAN.
Now, I've been looking around for a way to make all VPN IPs masked as 10.0.1.* instead of their real local IPs. Didn't find any quick solution to this.
This way it maps like so:
10.0.1.5 > goes through VPN > 10.0.0.5
10.0.0.5 > stays local > 10.0.0.5
Maybe there's a setting in the OpenVPN client config file I could use to mask all remote IPs to another subnet?