Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Created October 18, 2018 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxmartin/0a354c779dd21c805254e6c158b79f33 to your computer and use it in GitHub Desktop.
Save tuxmartin/0a354c779dd21c805254e6c158b79f33 to your computer and use it in GitHub Desktop.
strongswan - Referencing other Sections
# https://wiki.strongswan.org/projects/strongswan/wiki/StrongswanConf#Referencing-other-Sections
conn-ikev2-vpn {
dpdaction=clear
dpddelay=35s
dpdtimeout=2000s
keyexchange=ikev2
auto=add
rekey=no
reauth=no
fragmentation=yes
compress=yes
leftcert=fullchain.pem
leftsendcert=always
leftsubnet=0.0.0.0/0,::/0
eap_identity=%identity
rightsourceip=10.1.1.0/24,2a00:1450:400c:c05::/112
rightdns=8.8.8.8,2001:4860:4860::8888
}
connections {
static_ip__userA : conn-ikev2-vpn {
rightsourceip=10.8.0.100/32
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment