tail -f /var/log/syslog
发现如下错误:
g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
解决方法:
$ sudo su
$ systemctl stop strongswan
$ ike-scan 网关地址
查看其中的输出结果 ,SA=(Enc=3DES Hash=md5 Auth=PSK Group=2:modp1024 LifeType=Seconds LifeDuration(4)=0x00007080)
找到 Enc 、Hash、Group 三个字段的值,填入下图中显示的:
-
Phase1 Algorithms : 3des-md5-modp1024
-
Phase2 Algorithms : 3des-md5
再次连接即可。