我在VirtualBox中有一个UbuntuServer16.04VM,使用以下命令下载并安装了strongSwan:
sudo apt-get install gcc make libgmp3-dev build-essential
wget http://download.strongswan.org/strongswan-5.6.0.tar.bz2
tar xjvf strongswan-5.6.0.tar.bz2
cd strongswan-5.6.0
./configure --prefix=/usr --sysconfdir=/etc
sudo make
sudo make install在sudo make之后,它声明将安装vici插件:
strongSwan will be built with the following plugins
-----------------------------------------------------
libstrongswan: aes des rc2 sha2 sha1 md5 random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs8 pkcs12 pgp dnskey sshkey pem fips-prf gmp curve25519 xcbc cmac hmac
libcharon: attr kernel-netlink resolve socket-default stroke vici updown xauth-generic
libtnccs:
libtpmtss:但是在构建和安装swanctl --stats输出之后:
connecting to 'unix:///var/run/charon.vici' failed: No such file or directory
Error: connecting to 'default' URI failed: No such file or directory
strongSwan 5.6.0 swanctl一切都是一步一步地完成,就像在strongSwan安装文档上一样。它不起作用的可能原因是什么?
发布于 2017-10-12 06:22:13
解决问题的方法是启动charon守护进程并启用强天鹅服务(因此,在重新启动之后,它将自动启动)。对于我的安装,我需要使用以下命令:
sudo /usr/libexec/ipsec/charon &
sudo systemctl enable strongswan.service此外,我还将此选项添加到配置中,因为我在systemd中使用了Ubuntu 16.04:
sudo ./configure --prefix=/usr --sysconfdir=/etc --with-systemdsystemunitdir=/lib/systemd/system
https://stackoverflow.com/questions/46691341
复制相似问题