赞
踩
2020/03/29, size 7'282'749 bytes, pgp-signature,
md5: d97e8eeb4fc0223f0d6fb331c4d2bcce
链接:https://www.strongswan.org/download.html
tar -zxvf strongswan-5.8.4.tar.gz ./configure --prefix=/usr/ --sysconfdir=/etc/ make make install
以下官网链接有各种配置方案。
https://www.strongswan.org/testing/testresults/swanctl/index.html
可以依据自己需求,在两台ubuntu机器内分别选择一种方案进行配置即可。需要额外注意的是,将配置中的IP改成两台机器对应的IP。、
我在两台ubuntu内配置了/etc/swanctl/swanctl.conf。
配置完毕后,在两台机器均执行:
sudo swanctl --load-all
若失败,报错如下:
connecting to 'unix:///var/run/charon.vici' failed: No such file or directory Error: connecting to 'default' URI failed: No such file or directory
则,执行如下指令:
sudo /usr/libexec/ipsec/charon & sudo systemctl enable strongswan.service
从一台机器发起协商,h2h与配置内名称相对应:
sudo ipsec up h2h
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。