ADEO Imaging OÜ
The cloud spirit...
Setup and configure L2TP/IPSec-PSK VPN on Windows 7


Attention! In order to get L2TP/IPSec working correctly with Windows, it is necessary to make changes to the registry (add a parameter). This problem is listed on the official Microsoft website https://support.microsoft.com/en-us/kb/926179. This procedure will be described below in (1) of this manual. If you are not ready to make changes to the Windows registry, then you can set up VPN with PPTP protocol (see PPTP settings), which not required the modification of the registry.

1. Making changes to the Windows registry (Administrative rights):
1) Run regedit with administrative privileges and locate the section HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
2) Create DWORD (32 bit) parameter AssumeUDPEncapsulationContextOnSendRule and set value 2 for it.
Configure VPN L2TP/IPSec in Windows 7. Step 1.
3). Restart Windows!!!

2. After registry has been modified and computer was restarted, we can start to configure L2TP/IPSec connection. Click "Start" button and select "Control Panel":

Configure VPN L2TP/IPSec in Windows 7. Step 2.


3. Click "Network and Internet":
Configure VPN L2TP/IPSec in Windows 7. Step 3.


4. Click "Network and Sharing Center":
Configure VPN L2TP/IPSec in Windows 7. Step 4.


5. Select "Set up a new connection or network":
Configure VPN L2TP/IPSec in Windows 7. Step 5.


6. Select "Connect to a workplace" then click the button "Next":
Configure VPN L2TP/IPSec in Windows 7. Step 6.


7. Select "Use my Internet connection(VPN)":
Configure VPN L2TP/IPSec in Windows 7. Step 7.


8. In the "Internet address" field enter given IP address of your VPN server. Check "Don't connect now; just set it up so I can connect later" checkbox then click the button "Next":
Configure VPN L2TP/IPSec in Windows 7. Step 8.


9. Enter given VPN user name and password. Check "Remember this password" checkbox and click the button "Create":
Configure VPN L2TP/IPSec in Windows 7. Step 9.


10. At this stage, the connection is ready, but network adapter is not yet configured. Do not connect now, just click the button "Close":
Configure VPN L2TP/IPSec in Windows 7. Step 10.


11. In the left panel of "Network and Sharing Center"click "Change adapter settings":
Configure VPN L2TP/IPSec in Windows 7. Step 11.


12. In context menu of newly created connection click "Properties":
Configure VPN L2TP/IPSec in Windows 7. Step 12.


13. Check again the given ip-address of your VPN Server on the "General" tab:
Configure VPN L2TP/IPSec in Windows 7. Step 13.


14. Go to "Options" tab and uncheck "Include Windows logon domain":
Configure VPN L2TP/IPSec in Windows 7. Step 14.


15. Go to "Security" tab:
1) Set "Type of VPN" as "Layer 2 Tunneling Protocol with IPSec (L2TP/IPSec)".
2) Click the button "Advanced settings".
3) In the new window "Advanced Properties" enter given IPSec pre-shared key to the field "Key".
4) Close "Advanced Properties" window by clicking "OK".
5) Set "Data encryption" as "Require encryption (disconnect if server declines)".
6) Set "Microsoft CHAP Version 2 (MS-CHAP v2)" protocol.
7) Click the button "ОК".
Configure VPN L2TP/IPSec in Windows 7. Step 15.


16. In the context menu of a newly created connection click "Create Shortcut":
Configure VPN L2TP/IPSec in Windows 7. Step 16.


17. If message "Windows can't create a shortcut here..." is displayed then click "Yes":
Configure VPN L2TP/IPSec in Windows 7. Step 17.


18. The new shortcut will be created on your desktop. Double-click on it.
Configure VPN L2TP/IPSec in Windows 7. Step 18.


19. In the opened window click "Connect" to get connected:
Configure VPN L2TP/IPSec in Windows 7. Step 19.