Nat – Internet VPN Tunnel with a server behind NAT

nat;vpnwindows 7

Let's say someone would like to route all their traffic traffic though some PC in another country (to unblock some sites). However, this PC is a usual Windows 7 PC behind a router with NAT, which somewhat complicates the configuration. To gain access to it via a stable host name, DDNS and DMZ are enabled on the router and an incoming connection was created to allow VPN clients connect.

Now a VPN connection can be established, but it only gives access to this particular PC. To get access back to the Internet one would need to route all the packets from VPN to the LAN interface. In Windows XP, I managed to do so by configuring NAT with netsh routing ip nat, which worked well. But in Windows 7 they have removed this feature. Is there some way I can enable it or some alternative solution? Can perhaps route command be of help?

Best Answer

  • Open Network Connections
  • Get Properties on the VPN connection
  • On the Networking tab, get Properties on IPv4
  • Advanced...
  • "Use default gateway on remote network"

That should make all traffic sent over the VPN.

Related Topic