Installation strongSwan:/var/run/charon.vici文件不存在问题
我在VirtualBox中有一个Ubuntu服务器16.04虚拟机,使用以下命令下载并安装了strongSwan:Installation strongSwan:/var/run/charon.vici文件不存在问题,installation,vpn,ipsec,Installation,Vpn,Ipsec,我在VirtualBox中有一个Ubuntu服务器16.04虚拟机,使用以下命令下载并安装了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 --pre
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
一切都是按部就班地进行的。它不工作的可能原因是什么?问题的解决方案是启动charon守护程序并启用strongswan服务(因此重新启动后它将自动启动)。对于我的安装,我需要使用以下命令:
sudo /usr/libexec/ipsec/charon &
sudo systemctl enable strongswan.service
此外,我还将此选项添加到配置中,因为我将Ubuntu Server 16.04与systemd一起使用:
sudo./configure--prefix=/usr--sysconfdir=/etc--with systemdsystemunitdir=/lib/systemd/system
启动守护进程了吗?@ecdsa刚刚启动了,现在一切都正常了!您应该回答下面的问题吗?它是通过以下命令完成的sudo/usr/libexec/ipsec/charon&