Installing strongSwan on Windows 11
Download the Win64 MSI file for strongSwan from the official website: https://www.strongswan.org/.
Double-click the downloaded MSI file to begin the installation process.
Follow the on-screen instructions to complete the installation. Be sure to select the desired options when prompted.
Once the installation is complete, navigate to the installation directory (by default:
C:\Program Files\strongSwan\).Open the
ipsec.conffile in a text editor (such as Notepad).Edit the configuration to fit your needs. A basic configuration for connecting to a remote VPN server might look something like this:
conn myvpn
left=%defaultroute
leftsubnet=0.0.0.0/0
leftfirewall=yes
right=<remote-server-ip>
rightsubnet=<remote-subnet>
authby=secret
auto=start
Save the
ipsec.conffile.Open the
ipsec.secretsfile in a text editor.Add the shared secret for your VPN connection to the file. This is typically provided by your VPN provider.
<local-ip> <remote-ip> : PSK "<shared-secret>"
Save the
ipsec.secretsfile.Open the Command Prompt as an administrator.
Navigate to the installation directory (by default:
C:\Program Files\strongSwan\).To start the strongSwan service, enter the following command:
net start ikeext
- To connect to your VPN, enter the following command:
ipsec up myvpn
- To disconnect from your VPN, enter the following command:
ipsec down myvpn
Congratulations! You have successfully installed strongSwan and connected to your VPN on Windows 11.