-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipsec.conf
29 lines (26 loc) · 950 Bytes
/
ipsec.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Path /usr/local/etc/ipsec.conf
config setup
strictcrlpolicy=no
uniqueids = no
charondebug = ike 2, cfg 2
conn %default
dpdaction=clear
dpddelay=35s
dpdtimeout=3600s
keyexchange=ikev2
auto=add
rekey=no
reauth=no
fragmentation=yes
compress=yes
leftcert=fullchain.pem #Path : /etc/strongswan/ipsec.d/certs/
leftsendcert=always
leftsubnet=0.0.0.0/0,::/0
eap_identity=%identity
rightsourceip=YOUR_IP/XX # Changer avec un subnet non utilisé / Change with non used subnet IP
rightdns=8.8.8.8 #DNS résolveur, on peu aussi utiliser cloudflare ou OpenDNS par exemple / upstream dns, change with other dns like cloudflare or OpenDNS in exemple
conn ikev2-mschapv2
rightauth=eap-mschapv2
conn ikev2-mschapv2-apple
rightauth=eap-mschapv2
leftid=@*.YOUR_DOMAIN #Remplacer avec votre propre domaine, sans supprimer le @*. / Replace with your Domain Name without delete @*.