I have an openvpn server on my home router running dd-wrt, everything works fine.
My subnet at home is 192.168.1.x and I'm pushing vpn ip address to the client of 192.168.1.100.
The problem starts when I travel to Europe and I want to connect to the home vpn from the hotels.
Many hotels in Europe are using 192.168.1.x or similar, some of them are using mask of 255.255.0.0.
When I connect through the vpn I have a problem of local network IP vs. home IP.
Any idea how to resolve it?
default gateway
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: default gateway
change your home network to be anything but 192.168.1.x ; there are plenty of addresses to choose from, e.g.
- 10.200.200.x
- 172.17.100.x
-
- OpenVpn Newbie
- Posts: 16
- Joined: Fri Mar 23, 2012 8:04 pm
Re: default gateway
Any other ways to resolve it?
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: default gateway
you *might* be able to work around it using some iptables double NATting magic, but I'd recommend to NOT try this. This is not an OpenVPN issue but a generic IPv4 routing issue.