Skip to content

Instantly share code, notes, and snippets.

@konosukef
Last active May 21, 2016 06:39
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 konosukef/7e951525a7959e2b8a3c785d90806047 to your computer and use it in GitHub Desktop.
Save konosukef/7e951525a7959e2b8a3c785d90806047 to your computer and use it in GitHub Desktop.
IKEv1 XAuth PSK
# ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
left=%any
leftsubnet=0.0.0.0/0,::/0
leftauth=psk
right=%any
rightsourceip=10.10.0.0/24,fd7f:14b7:2382::/64
rightdns=8.8.8.8,8.8.4.4,2001:4860:4860::8888,2001:4860:4860::8844
conn ipsec-xauth
keyexchange=ikev1
rightauth=psk
rightauth2=xauth
auto=add
# This file holds shared secrets or RSA private keys for authentication.
# RSA private key for this host, authenticating it to any other host
# which knows the public part.
: PSK password
username : XAUTH "password"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment