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.conf
file 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.conf
file.
Open the ipsec.secrets
file 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.secrets
file.
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
ipsec up myvpn
ipsec down myvpn
Congratulations! You have successfully installed strongSwan and connected to your VPN on Windows 11.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!