Skip to content

Instantly share code, notes, and snippets.

@FransUrbo
Created July 1, 2017 15:28
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 FransUrbo/7d3b6ac76c5c187a9674f4143b33f97b to your computer and use it in GitHub Desktop.
Save FransUrbo/7d3b6ac76c5c187a9674f4143b33f97b to your computer and use it in GitHub Desktop.
Strongswan configuration file
config setup
uniqueids=no
strictcrlpolicy=no
conn %default
left=10.99.0.174
leftid=vpn.domain.tld
leftcert=jumpbox.pem
leftsubnet=10.96.0.0/11
leftfirewall=yes
leftsendcert=always
leftdns=10.99.0.174
rightdns=10.99.0.174
keyexchange=ikev2
dpdaction=restart
dpddelay=2400s
fragmentation=yes
forceencaps=yes
compress=yes
ikelifetime=12h
keylife=7200s
rekey=yes
reauth=yes
rekeymargin=9m
keyingtries=2
ca domain
cacert=domain.tld.pem
auto=add
conn client_psk
right=%any
rightid=%any
rightsourceip=10.100.0.0/24
rightauth=psk
type=tunnel
auto=add
conn client_radius
leftauth=pubkey
right=%any
rightid=%any
rightsourceip=10.100.0.0/24
rightauth=eap-radius
eap_identity=%identity
type=tunnel
auto=add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment