OpenVPN set up on Windows 7

If you’re using an Ubiquiti EdgeRouter, you may want to configure a VPN connection if you have a Windows client that you want to be able to connect to the corporate network.  Setting it up on Windows 7 is not as straight forward as it could be.

To get started, right click on your network adapter on your task bar and select “Open Network and Sharing Center.”

Then click “Set up a new connection or network.”

 

Connect to a workplace

 

Use my Internet connection

 

The Internet Address is going to be the public internet address of your Ubiquiti EdgeRouter.  The address in the example below is an internet address.  Don’t let this confuse you.  You can name the destination whatever you want.

 

The username will be the username and password that you configured on the line in your ER that says:

set vpn l2tp remote-access authentication local-users username user1 password <password>

 

It gives you no choice to click Connect, so click it, but then click Skip.  It’s not going to work if you’re using a preshared key.  This would be the case if you have the following lines:

set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret <secret>

 

Click Close.

 

Click Change adapter settings.

 

Right click and select Properties of your new VPN adapter.

 

Click the Security Tab and then Advanced settings.

 

Click the radio button for “Use preshared key for authentication” and paste in the key from the line:
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret <secret>

Click OK, and then you can connect.

Leave a Reply

head-shoulders-extramile
Mike Davis
mdd-headshot