All flow should pass through VPN but IP conflict!
-
Hello
Another strange behaviour with my pfsense + OpenVPN
I am outside my home (not in my private network which is as 192.168.0.0/24)I am connected my laptop to a Wifi box that give me an IP as 192.168.0.0/24
I can connect to my pfsense with the laptop.
I have configure the VPN to force all trafic through the VPN
(And check it, all download pass through the VPN)But when trying to reach (ping or ssh or weg) host from my local network that are in the range 192.168.0.0/24 it does not works.
If I try to reach host from my local network taht are in the range 192.168.30.0/24 it worksIt is like the DNS request are not forced through the VPN ?
Is it possible to correct this behaviour?
Thanks -
@ewok2 Yes, that is expected.
You should never use "default" ranges at your networks and then expecting NOT to have conflicts when roaming to arbitrary networks.
Renumber your lan away from 192.168.0 or 1 or 2 to something more "extreme" and it should be fine.
-
@netblues
Thanks for reply
Indeed changing my IP in my local network will works but I will not do it over OpenVPN ;-) to many risk to loose the connection :-)Another way I found which "can be a temporary solution"
Set an option in openVPN
push "route 192.168.0.96 255.255.255.240"It will be more priority than the local network wich is on /24
but not all IP will be accessible ;-) -
@ewok2 It looks like you're trying to use the same subnet on both ends of the VPN. That will not work, as your computer will think the remote devices are on the local end of the VPN. You have to use different subnets at each end.
-
@JKnott
Yes your are right
I am on vacation and it is not possible to change the local network.
Changing my local network I will do it (but when I will be back at home)So I was trying to find a temporary bypass :-)