Last active
October 5, 2021 02:33
-
-
Save miticojo/8f0ef632ff66d5462d85f1bd68e90813 to your computer and use it in GitHub Desktop.
GCP VPN Site-2-Site using Strongswan (working)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example | |
%any : PSK "123456789" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what version of strongswan?