network:vpn_-_strongswan
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
network:vpn_-_strongswan [2016/07/04 09:27] – [Install Strongswan] peter | network:vpn_-_strongswan [2020/07/23 01:11] (current) – old revision restored (2016/07/04 10:36) 158.69.243.99 | ||
---|---|---|---|
Line 114: | Line 114: | ||
</ | </ | ||
- | The domain name or IP address of your VPN server, which is later entered in the clients connection properties, MUST be contained either in the subject Distinguished Name (CN) and/or in a subject Alternative Name (--san). | + | The domain name or IP address of your VPN server, which is later entered in the clients connection properties, MUST be contained either in the subject Distinguished Name (CN) and/or in a subject Alternative Name (**--san**). If this does not match the clients will fail to connect. |
- | The built in Windows 7 VPN client needs the serverAuth extended key usage flag in your host certificate as shown above, or the client will refuse to connect. | + | The built in Windows 7 VPN client needs the **serverAuth** extended key usage flag in your host certificate as shown above, or the client will refuse to connect. |
- | We add the IP address twice, one with an @ in front so that it gets added as an subjectAltName of the DNSName type and one of the IPAddess type. | + | We add the IP address twice, one with an **@** in front so that it gets added as an **subjectAltName** of the **DNSName** type and one of the **IPAddess** type. |
Let's view the certificate: | Let's view the certificate: | ||
Line 179: | Line 179: | ||
</ | </ | ||
- | The private key (/ | + | The private key (**/ |
===== Client certificate ===== | ===== Client certificate ===== | ||
Line 215: | Line 215: | ||
</ | </ | ||
- | Enter a passphrase twice, then you have a .p12. You can send John.p12 and its export paraphrase to the person who is going to install it onto the client. | + | Enter a passphrase twice, then you have a .p12. You can send **John.p12** and its export paraphrase to the person who is going to install it onto the client. |
- | Transport this John.p12 file and the password over seperate | + | Transport this **John.p12** file and the password over separate |
If you need any more user certificates, | If you need any more user certificates, | ||
Line 236: | Line 236: | ||
</ | </ | ||
- | This generates the new certificate revocation list (CRL) crls/ | + | This generates the new certificate revocation list (CRL) **crls/ |
< | < | ||
Line 262: | Line 262: | ||
===== IPSEC Configuration ===== | ===== IPSEC Configuration ===== | ||
- | The main ipsec configuration file is located in / | + | The main **ipsec** configuration file is located in **/ |
<code bash> | <code bash> | ||
Line 297: | Line 297: | ||
</ | </ | ||
- | Remove the / | + | Remove the **/ |
<code bash> | <code bash> | ||
Line 306: | Line 306: | ||
The configuration has settings for IKEv2 + RSA certificates. | The configuration has settings for IKEv2 + RSA certificates. | ||
- | Apple added support for IKEv2 in iOS 8, but it needs to be configured using a custom configuration profile. | + | Apple added support for IKEv2 in iOS 8, but it needs to be configured using a custom configuration profile |
Beginning with iOS 9, IKEv2 connections are natively supported. | Beginning with iOS 9, IKEv2 connections are natively supported. | ||
- | For iOS 9+ and OS X 10.10+ you need to make sure the leftid= is the same as the CN in your certificate. | + | For iOS 9+ and OS X 10.10+ you need to make sure the **leftid=** is the same as the **CN** in your certificate. |
Android 4+ and Windows 7+ support IKEv2. | Android 4+ and Windows 7+ support IKEv2. | ||
- | Clients will get the Google DNS servers and an IP address in the 10.42.42.0/ | + | Clients will get the Google DNS servers and an IP address in the **10.42.42.0/ |
- | The leftcert=vpnHostCert.der expands to the path / | + | The **leftcert=vpnHostCert.der** expands to the path **/ |
Line 372: | Line 372: | ||
</ | </ | ||
- | Add it before the exit 0 line and replace %SERVERIP% with the external IP of your server. | + | Add it before the **exit 0** line and replace %SERVERIP% with the external IP of your server. |
Line 444: | Line 444: | ||
See the Strongswan Wiki [https:// | See the Strongswan Wiki [https:// | ||
+ | |||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | https:// | ||
+ |
network/vpn_-_strongswan.1467624465.txt.gz · Last modified: 2020/07/15 09:30 (external edit)