DigitalJoel

2010/10/12

Windows 7 and the Mac Mini Server VPN

Filed under: troubleshooting — Tags: , — digitaljoel @ 12:54 pm

I spent a few hours in the last week and a half attempting to connect my Windows 7 computer to a VPN provided by a new Mac Mini Server.  The win 7 computer is at my house, and the mac mini is at my friend’s house.  The wrinkle here is that we both have routers that provide NAT services.  Little did I know, that would be the only real problem.

In order to configure the connection, you want to set it as an L2TP connection, enable the CHAP and MS-CHAPS authentication scheme, and in the advanced properties for the L2TP connection make sure you put in the plain text shared secret that the VPN server admin should provide to you.

Finally, in order to connect through the NAT devices, you will want to have a look at this link.

http://support.microsoft.com/kb/926179

It doesn’t list Windows 7 in the “Applies to” section, but it worked for me on Windows 7.  The gist is, you want to create this new registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent\AssumeUDPEncapsulationContextOnSendRule.

The path up to PolicyAgent should already exist, so you only have to create the AssumeUDPEncapsulationContextOnSendRule DWORD(32) key.  If your computer AND the VPN server are both behind a NAT device (like a router) then you will want to set the value to 2.  This is likely what you will need.  If only the server is behind a NAT device, then set the value to 1.  If you feel like you need to set the value to 0, then this blog post isn’t for you in the first place.

After changing the registry, you’ll likely have to reboot.

Hopefully this’ll save someone the several hours myself (and my buddy!) had to spend figuring this out.

About these ads

6 Comments »

  1. Luckily we had a Mac at the same location as the Windows 7 machine and it was working flawlessly. That helped us eliminate a whole bunch of variables. Viva la Mac!

    Comment by wolfsokta — 2010/10/12 @ 2:03 pm

  2. viva la mac indeed.

    Comment by digitaljoel — 2010/10/12 @ 6:40 pm

    • I’ve just bought a Mac Mini with Snow Leopard to network with my HP-G62 Win7 64bit laptop and an Iomega Terabyte.

      Have two wireless Internet sticks – one with the hotspot unit – and am trying to work out how to set them up. Any bright ideas?

      Comment by KazM — 2011/03/02 @ 2:16 pm

      • This post is more about how to get the windows 7 to play nice with the mac mini when it’s behind a NAT device. I’m not sure exactly what you mean by “hotspot unit” but in any case, you will need a wireless router of some sort to connect to your internet connection, or if one of your wireless sticks is able to connect to the internet another way (4g or something) and can publish a wi-fi SID then you could connect to that from the second machine.

        Comment by digitaljoel — 2011/03/03 @ 8:54 am

  3. Definitely saved me some grief. Thanks for this!

    Comment by Ted — 2011/12/21 @ 2:32 pm

  4. I’ve been having this problem for over a year, unable to connect to my company’s VPN. Thank you so much!

    Comment by Wesley Hirsch (@shishire) — 2013/02/19 @ 7:17 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 226 other followers