问题描述
我已经在我的本地 ubuntu 机器上安装了 Strongswan Vpn,并在 aws 端设置了 aws 站点到站点 vpn。当我启动 ipsec 服务时,隧道出现在 aws vpn 上,但我的本地机器上的互联网出现故障。我希望当我与 aws vpn 连接时互联网也能正常工作。请帮忙。非常感谢!
下面是我的 ipsec.conf 文件
# 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
我的 ipsec.secrets 文件:
# 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"
我也在我的 sysctl.conf 中取消注释以下行
net.ipv4.ip_forward=1
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)