I have installed Strongswan Vpn on my on-premises ubuntu machine and set up aws site to site vpn on aws side. When I started ipsec service, tunnel showing up on aws vpn but internet on my on-premises machine goes down. I want that internet is also working when I connected with aws vpn.Please help. Many thanks!
Below is my ipsec.conf file
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
uniqueids = no
# Add connections here.
conn Tunnel1
auto=start
left=%defaultroute
leftid=203.*.*.*
right=13.*.*.*
type=tunnel
leftauth=psk
rightauth=psk
keyexchange=ikev1
ike=aes128-sha1-modp1024
ikelifetime=8h
esp=aes128-sha1-modp1024
lifetime=1h
keyingtries=%forever
leftsubnet=0.0.0.0/0
rightsubnet=0.0.0.0/0
dpddelay=10s
dpdtimeout=30s
dpdaction=restart
My ipsec.secrets file :
# 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.
203.*.*.* 13.*.*.* : PSK "KLl409df5jskurdrxDFSTLVKLWAS54"
I also uncomment the below line in my sysctl.conf
net.ipv4.ip_forward=1
question from:
https://stackoverflow.com/questions/65517064/internet-goes-sown-when-connecting-with-aws-site-to-site-vpn-using-strongswan 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…