Skip to content

Instantly share code, notes, and snippets.

@miticojo
Last active October 5, 2021 02:33
Show Gist options
  • Save miticojo/8f0ef632ff66d5462d85f1bd68e90813 to your computer and use it in GitHub Desktop.
Save miticojo/8f0ef632ff66d5462d85f1bd68e90813 to your computer and use it in GitHub Desktop.
GCP VPN Site-2-Site using Strongswan (working)
# tested and working configuration
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
authby=psk
auto=start
dpdaction=hold
esp=aes128-sha1!
forceencaps=yes
ike=aes128-sha1-modp2048!
keyexchange=ikev2
mobike=yes
conn gcp-vpn
left=0.0.0.0/0
leftsubnet=192.168.1.0/24
leftfirewall=yes
right=35.195.xxx.xxx ## GCP VPN Gateway IP
rightsubnet=10.0.0.0/8
auto=start
# original configuration found here:
# http://callingagrass.blogspot.com/2018/03/ipsec-vpn-to-gcp-using-strongswan-on_20.html
# example
%any : PSK "123456789"
@agungsaputro
Copy link

what version of strongswan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment