Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
297 views
in Technique[技术] by (71.8m points)

amazon web services - Internet goes sown when connecting with aws site to site vpn using strongswan

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...