Page 1 of 1

default gateway

Posted: Tue Apr 03, 2012 6:37 pm
by blaser
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?

Re: default gateway

Posted: Tue Apr 03, 2012 11:36 pm
by janjust
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
(i.e. any 10/8 and 172.16/12 address)

Re: default gateway

Posted: Wed Apr 04, 2012 12:43 am
by blaser
Any other ways to resolve it?

Re: default gateway

Posted: Wed Apr 04, 2012 8:06 am
by janjust
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.