Skip to content

Instantly share code, notes, and snippets.

@cjac
Created June 4, 2018 20:18
Show Gist options
  • Save cjac/e785743c36b81186074b1a9a71f66107 to your computer and use it in GitHub Desktop.
Save cjac/e785743c36b81186074b1a9a71f66107 to your computer and use it in GitHub Desktop.
cat > /etc/ipsec.conf <<EOF
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
# Sample VPN connections
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev1
authby=secret
ike=aes128-sha1-modp1024,3des-sha1-modp1024!
esp=aes128-sha1-modp1024,3des-sha1-modp1024!
conn myvpn
keyexchange=ikev1
left=%defaultroute
auto=add
authby=secret
type=transport
leftprotoport=17/1701
rightprotoport=17/1701
right=$VPN_SERVER_IP
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment