【问题标题】:strongSwan: /var/run/charon.vici file does not exist issue [closed]strongSwan:/var/run/charon.vici 文件不存在问题[关闭]
【发布时间】:2018-03-23 07:30:47
【问题描述】:

我在 VirtualBox 中有一个 Ubuntu Server 16.04 VM,使用以下命令在其上下载并安装了 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 Installation Documentation 一样一步一步完成。它不工作的可能原因是什么?

【问题讨论】:

  • 你启动了守护进程吗?
  • @ecdsa 刚刚做到了,现在一切正常!您应该在下面回答这个问题吗?
  • 用这个命令完成sudo /usr/libexec/ipsec/charon &

标签: installation vpn ipsec


【解决方案1】:

解决问题的方法是启动 charon daemon 并启用 strongswan 服务(所以重启后它会自动启动)。对于我的安装,我需要使用以下命令:

sudo /usr/libexec/ipsec/charon &
sudo systemctl enable strongswan.service

另外,我在配置中添加了这个选项,因为我使用带有 systemd 的 Ubuntu Server 16.04:

sudo ./configure --prefix=/usr --sysconfdir=/etc <strong>--with-systemdsystemunitdir=/lib/systemd/system</strong>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-04
    • 1970-01-01
    • 2017-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-26
    • 2015-06-23
    相关资源
    最近更新 更多