使用 strongswan 将 aws 站点连接到站点 vpn 时,互联网会播散

问题描述

我已经在我的本地 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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...