Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a PPTP server setup on my local home network (, pfSense). Now sometimes when I'm away and want to connect remotely my client (Windows 7) is also on the same network because e.g. the hotel has set it up the same way. Thus the connection works, but I can't reach any PC on my home network because everything is routed directly to the client local router which is in the same subnet.

Is there a way to work around this by messing with a configuration or adapting Windows routing table, i.e. without modifying either network?

share|improve this question
I am doing this by using shorewall's routeback option in shorewall-interfaces, it may point you in the correct direction. – Geoffrey Mar 28 '12 at 0:03

I'm afraid not. If you were able to route somewhere else traffic directed to (what appears to be) your local subnet, you wouldn't be able to reach your gateway which is sitting exactly in that subnet, so routing would just cease to work.

Your only option here is to change the subnet you're using on your home network to something a little more unusual, hoping you'll never find a network which uses the same one.

Luckily, network administrators really don't have a lot of imagination when it comes to defining subnets: there are some of them which are by far the most common ones and is a prime example of that (alongside with 192.168.1., 192.168.42. and various subnettings of 10.), but you can safely bet will not be used on 99% of the networks you encounter (unless someone else reads this answer, of course). For some reasons, also 172.16-based subnets seem to be quite unpopular.

share|improve this answer
I am using on my system. Or more accurately Vmware Workstation randomly picked that as one of the networks it would use for guests. – Zoredache Feb 16 '10 at 8:19
You probably already know this, but it can be changed, if needed. – Massimo Feb 16 '10 at 8:51

There is a way by defining a new route for a sub net to use explicitly the VPN / PPTP interface IP and give it a high priority.

On Windows I'm using

route add mask 192.168.1.XXX metric 1

for my VPN in case I'm on the same sub net as the venue. XXX is your VPN / PPTP IP.

The only drawback is that all traffic is routed via your VPN, so you don't have a dedicated line to the internet or local LAN, all traffic must be routed through your VPN and your VPN server side setup must take care of allowing access to the internet via VPN. (AFAIK this is the default setup for security on most VPNs anyway)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.