StrongSwan: Difference between revisions

m →Making the VPN profile: Added statement on supported Windows versions
Changed to webp image
 
(5 intermediate revisions by the same user not shown)
Line 18: Line 18:
We will be using the modern strongSwan VICI back-end, not the old stroke back-end. strongSwan is starting to phase the stroke back-end out.
We will be using the modern strongSwan VICI back-end, not the old stroke back-end. strongSwan is starting to phase the stroke back-end out.


Commands under Windows with the [[File:Administrator_Shield.png]] icon may need administrator credentials to complete them.
Commands under Windows with the [[File:Administrator_Shield.webp]] icon may need administrator credentials to complete them.


= Packages needed =
= Packages needed =
Line 245: Line 245:
* Double-click on the .p12 certificate file.
* Double-click on the .p12 certificate file.
* On the first "Welcome to the Certificate Import Wizard" page, change the "Store Location" from Current User to Local Machine.
* On the first "Welcome to the Certificate Import Wizard" page, change the "Store Location" from Current User to Local Machine.
* [[File:Administrator_Shield.png]] Click Next.
* [[File:Administrator_Shield.webp]] Click Next.
* The file name provided should be OK. Click Next.
* The file name provided should be OK. Click Next.
* In the password box, type the password you provided to generate the file earlier. Make sure the "Include all extended properties." check box is ticked.
* In the password box, type the password you provided to generate the file earlier. Make sure the "Include all extended properties." check box is ticked.
Line 267: Line 267:
* In the Internet address box, type your DNS name to your VPN server (thinkserver.freddythechick.net).
* In the Internet address box, type your DNS name to your VPN server (thinkserver.freddythechick.net).
* In the Destination name box, give your profile a name of your choosing (Thinkserver).
* In the Destination name box, give your profile a name of your choosing (Thinkserver).
* [[File:Administrator_Shield.png]] Make sure the "Allow other people to use this connection" tick box is checked.
* [[File:Administrator_Shield.webp]] Make sure the "Allow other people to use this connection" tick box is checked.
* Click Create. Your new profile will then be created.
* Click Create. Your new profile will then be created.


Line 277: Line 277:


* In the previous Network and Sharing Centre window, click "Change adapter settings" down the left hand side.
* In the previous Network and Sharing Centre window, click "Change adapter settings" down the left hand side.
* There will be a new connection created here with the name you gave it earlier (Thinkserver). [[File:Administrator_Shield.png]] Right click on the connection and click 'Properties'.
* There will be a new connection created here with the name you gave it earlier (Thinkserver). [[File:Administrator_Shield.webp]] Right click on the connection and click 'Properties'.
* Click on the "Security" tab.
* Click on the "Security" tab.
* Under the "Type of VPN" drop-down menu, change the type to IKEv2. The options under "Authentication" should change. Click and select the Use machine certificates radio button. Then click OK.
* Under the "Type of VPN" drop-down menu, change the type to IKEv2. The options under "Authentication" should change. Click and select the Use machine certificates radio button. Then click OK.
Line 285: Line 285:
== Configuring strong encryption/ECDSA for the VPN connection ==
== Configuring strong encryption/ECDSA for the VPN connection ==


Windows PowerShell is used to change the encryption settings for the VPN connection.
Windows PowerShell is used to change the encryption settings for the VPN connection. This only works on Windows 10 machines as these support the newer ciphers whereas Windows <10 does not support them so well.


* In the Start menu, type "powershell". [[File:Administrator_Shield.png]] Click "Windows PowerShell" when it appears. It may take a few moments for the prompt to be appear and become ready to use.
* In the Start menu, type "powershell". [[File:Administrator_Shield.webp]] Click "Windows PowerShell" when it appears. It may take a few moments for the prompt to be appear and become ready to use.
* The following code snippet needs to be typed in to change the encryption settings for the VPN settings
* The following code snippet needs to be typed in to change the encryption settings for the VPN settings
  Set-VpnConnectionIPsecConfiguration -ConnectionName "VPN Connection" -AuthenticationTransformConstants GCMAES256 -CipherTransformConstants GCMAES256 -EncryptionMethod GCMAES256 -IntegrityCheckMethod SHA384 -DHGroup ECP384
  Set-VpnConnectionIPsecConfiguration -ConnectionName "VPN Connection" -AuthenticationTransformConstants GCMAES256 -CipherTransformConstants GCMAES256 -EncryptionMethod GCMAES256 -IntegrityCheckMethod SHA384 -DHGroup ECP384
Line 316: Line 316:
'''NOTE: This doesn't seem to have any effect on Windows 10 if your are manually configuring the connection with PowerShell.'''
'''NOTE: This doesn't seem to have any effect on Windows 10 if your are manually configuring the connection with PowerShell.'''


There is a Windows registry key that may need to be enabled to allow the use of stronger encryption settings. It is not clear at this stage if these settings are required, but the instructions are left here in case they are needed.
There is a Windows registry key that may need to be enabled to allow the use of stronger encryption settings. It is not clear at this stage if these settings are required, but the instructions are left here in case they are needed. These settings are, however, needed for Windows 7 clients which falls back to weak encryption if this is not configured and is probably needed since StrongSwan doesn't support the weak ciphers proposed by Windows 7 any more.


* Press {{key press|Win}}+{{key press|R}} to open the Run box.
* Press {{key press|Win|R}} to open the Run box.
* [[File:Administrator_Shield.png]] Type <code>regedit</code> and click OK.
* [[File:Administrator_Shield.webp]] Type <code>regedit</code> and click OK.
* Navigate to the following registry path:
* Navigate to the following registry path:
  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters\
  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters\