VPN 错误 500 STATE_MAIN_I1,无法启动阶段 2

VPN 错误 500 STATE_MAIN_I1,无法启动阶段 2

我正在尝试使用 openswan 从 CentOS 7 设置站点到站点的 vpn 到 fortigate 60c,每次我都会收到以下错误

000 #1: "office":500 STATE_MAIN_I1 (sent MI1, expecting MR1);
EVENT_v1_RETRANSMIT in 8s; nodpd; idle; import:admin initiate
000 #1: pending Phase 2 for "office" replacing #0

我的配置文件

办公室配置文件

conn office
left=%defaultroute              # Your local linux machine IP
leftsubnet=192.168.3.0/24       # The subnet of your local Linux machine
leftid=@openswan               # Same as given in Sonicwall
leftnexthop=%defaultroute
#    leftxauthclient=yes
right=mrt.mx          # Sonicwall VPN IP
rightsubnet=192.168.1.0/24     # Sonicwall LAN subnet
rightid=office          # Sonicwall Unique Identifier
#    rightxauthserver=yes
#    keyingtries=0
#    pfs=yes
auto=start
auth=esp
esp=3DES-SHA1                 
ike=3DES-SHA1
ikelifetime=1800s
authby=secret
aggrmode=no
#    leftmodecfgclient=yes

dpddelay=30
dpdtimeout=60

ipsec配置文件

  GNU nano 2.3.1                              Fichero: /etc/ipsec.conf                                                                      

version 2.0     # conforms to second version of ipsec.conf specification
# basic configuration
config setup
# Debug-logging controls:  "none" for (almost) none, "all" for lots.
# klipsdebug=none
# plutodebug="control parsing"
# For Red Hat Enterprise Linux and Fedora, leave protostack=netkey
protostack=netkey
nat_traversal=yes
interfaces=%defaultroute
oe=off
# Enable this if you see "failed to find any available worker"
nhelpers=0
include /etc/ipsec.d/*.conf

答案1

我遇到了以下错误,我在一篇文章中看到这无关紧要,但我确实必须启用转发,它解决了这个错误并允许建立连接找到两个或更多接口,检查 IP 转发 [失败]

 `sysctl -w net.ipv4.forwarding=1`

相关内容