VPN Connection – How to Connect Two Home Networks via VPN

networkingvmwarevpnwindows

I've got two home networks (LANs in 2 locations) which i want to connect together so that PCs from both networks can be accessed from any other PC on any of those two networks.

I far as i know it's possible to setup using VPN. I have Windows 2000 Advanced Server which can be setup as a VPN host. I was going to run in as a virtual machine.

Can anyone suggest the best approach to it and how to setup the VPN (i.e. the network) and make it always connected.

Best Answer

Hamachi has its advantages and disadvantages, so consider this alternate VPN design. This is basically a DIY VPN router as Scott's answer discusses, using 3rd-party firmware that may work with the routers/gateways you already have.

Use DD-WRT with OpenVPN on the router/gateway of both the home networks. You'll need an OpenVPN-enabled firmware, or room to install it as an add-on package. (The latest DD-WRTs claim to make this very easy. I haven't tried it yet. Read through Enabling OpenVPN for the full process.)

  • Pros:
    • cheap-to-free
    • on if the router's on
    • broadcast traffic (if using as a bridge)
    • very flexible & powerful (GUI and SSH interfaces)
  • Cons:
    • "very easy" probably doesn't mean what you think it means; Hamachi is likely simpler to manage
    • doesn't run VMware or Win2000 Advanced Server
    • ...and it won't make coffee

You'll end up with a site-to-site VPN between the networks, and can configure it in a routed (two separate networks) or bridged (one network in two places) configuration. Which one you should use depends on your requirements. It's worth taking the time to draw up a network design and spell out what you need out of this setup.

  • Routed: (source)

    Why should I use a routed configuration and not a bridged configuration?

    Interesting question. Well, a bridged configuration will 'join' both networks together as one, same subnet, same IP range... Looks easier, but the problem here would be that all kinds of packets, including the infamous broadcasts will be traveling from one side of the network to the other, resulting in less-than-optimized usage of your precious bandwidth. On the other hand, a routed network will only send directed packets from one side of the network to the other.

  • Bridged: (source)

    By bridging a physical ethernet NIC with an OpenVPN-driven TAP interface at two separate locations, it is possible to logically merge both ethernet networks, as if they were a single ethernet subnet.

Examples:

  • The mDNS/Bonjour/Zeroconf service to supply addresses like hostname.local across both home networks might require a Bridged mode to work. On the other hand, you may prefer to setup your own internal DNS and access the networks with addresses like hostname.foo and otherhost.bar.

  • Windows Filesharing name resolution used to work via broadcast messages, so a bridged connection allows Windows computer browsers to find each other. A routed solution required a WINS server to allow Windows network browsing to work. (You can probably do that with W2k Advanced Server, or you could look for a Samba WINS server package for DD-WRT.) (Also, I say "used to" based on experiences with Samba; recent Win-7 improvements may have fixed this.

  • Some games really want broadcast capability for network games, so again bridged mode may be preferable. If they have different network modes for LAN games vs Internet games, that could be the difference.

Related Question