default gateway

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
blaser
OpenVpn Newbie
Posts: 16
Joined: Fri Mar 23, 2012 8:04 pm

default gateway

Post by blaser » Tue Apr 03, 2012 6:37 pm

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: default gateway

Post by janjust » Tue Apr 03, 2012 11:36 pm

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)

blaser
OpenVpn Newbie
Posts: 16
Joined: Fri Mar 23, 2012 8:04 pm

Re: default gateway

Post by blaser » Wed Apr 04, 2012 12:43 am

Any other ways to resolve it?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: default gateway

Post by janjust » Wed Apr 04, 2012 8:06 am

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.

Post Reply