**IMPORTANT:** This guide is for **Advanced Users** ONLY. Other users please use <ahref="clients.md"target="_blank">IPsec/L2TP</a> or <ahref="clients-xauth.md"target="_blank">IPsec/XAuth</a>.
Windows 7 and newer releases support the IKEv2 standard through Microsoft's Agile VPN functionality. Internet Key Exchange (IKE or IKEv2) is the protocol used to set up a Security Association (SA) in the IPsec protocol suite. Compared to IKE version 1, IKEv2 has <ahref="https://en.wikipedia.org/wiki/Internet_Key_Exchange#Improvements_with_IKEv2"target="_blank">multiple improvements</a> such as Standard Mobility support through MOBIKE, and improved reliability.
Libreswan can authenticate IKEv2 clients on the basis of X.509 Machine Certificates using RSA signatures. This method does not require an IPsec PSK, username or password. It can be used with:
- Windows 7, 8.x and 10
- Windows Phone 8.1 and above
- strongSwan Android VPN client
-<ahref="https://github.com/gaomd/docker-ikev2-vpn-server">iOS (iPhone/iPad) and OS X (macOS)</a><--Seelink
The following example shows how to configure IKEv2 with Libreswan.
First, make sure you have successfully <ahref="https://github.com/hwdsl2/setup-ipsec-vpn"target="_blank">set up your VPN server</a>. Commands below must be run as `root`.
Import the `.p12` file to the Computer certificate store. The CA cert once imported must be placed into the "Certificates" sub-folder under "Trusted Root Certification Authorities".
First import the `.p12` file, then follow <ahref="https://technet.microsoft.com/en-us/windows/dn673608.aspx"target="_blank">these instructions</a> to configure a certificate-based IKEv2 VPN.
#### Android 4.x and newer
Please refer to: https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVpnClient
Once successfully connected, you can verify that your traffic is being routed properly by <ahref="https://encrypted.google.com/search?q=my+ip"target="_blank">looking up your IP address on Google</a>. It should say "Your public IP address is `Your VPN Server IP`".
The built-in VPN client in Windows 7 and newer does not support IKEv2 fragmentation. On some networks, this can cause the connection to fail with "Error 809", or you may be unable to open any website after connecting. If this happens, first try <ahref="clients.md#troubleshooting"target="_blank">this workaround</a>. If it doesn't work, please connect using <ahref="clients.md"target="_blank">IPsec/L2TP</a> or <ahref="clients-xauth.md"target="_blank">IPsec/XAuth</a> mode instead.