![最新的 strongswan 更新在 18.10 中出现故障](https://linux22.com/image/1162542/%E6%9C%80%E6%96%B0%E7%9A%84%20strongswan%20%E6%9B%B4%E6%96%B0%E5%9C%A8%2018.10%20%E4%B8%AD%E5%87%BA%E7%8E%B0%E6%95%85%E9%9A%9C%20.png)
今天早上更新了很多strongswan
文件。它破坏了 strongswan,因为它找不到/etc/ipsec.conf
。果然,它不见了。包文件表明它在那里,但没有安装。
我去了 packages.ubuntu.com 并下载strongswan-starter_5.6.3-1ubuntu4.1_amd64.deb
并手动重新安装它,但它也没有安装 /etc/ipsec.conf!
我手动从 .deb 文件中提取了 ipsec.conf,将其复制到 /etc/ipsec.conf,chmod 644 /etc/ipsec.conf,并确保它是 root:root,然后sudo systemctl restart ipsec
。
sudo systemctl status ipsec
现在显示正确。
/etc/ipsec.conf 文件如下所示...
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
# Sample VPN connections
#conn sample-self-signed
# leftsubnet=10.1.0.0/16
# leftcert=selfCert.der
# leftsendcert=never
# right=192.168.0.2
# rightsubnet=10.2.0.0/16
# rightcert=peerCert.der
# auto=start
#conn sample-with-ca-cert
# leftsubnet=10.1.0.0/16
# leftcert=myCert.pem
# right=192.168.0.2
# rightsubnet=10.2.0.0/16
# rightid="C=CH, O=Linux strongSwan CN=peer name"
# auto=start
更新#1:
报道于https://bugs.launchpad.net/ubuntu/+source/strongswan/+bug/1811610
答案1
我去了 packages.ubuntu.com 并下载strongswan-starter_5.6.3-1ubuntu4.1_amd64.deb
并手动重新安装它,但它也没有安装 /etc/ipsec.conf!
我手动从 .deb 文件中提取了 ipsec.conf,将其复制到 /etc/ipsec.conf,chmod 644 /etc/ipsec.conf,并确保它是 root:root,然后sudo systemctl restart ipsec
。
sudo systemctl status ipsec
现在显示正确。
/etc/ipsec.conf 文件如下所示...
# ipsec.conf - strongSwan IPsec configuration file
# basic configuration
config setup
# strictcrlpolicy=yes
# uniqueids = no
# Add connections here.
# Sample VPN connections
#conn sample-self-signed
# leftsubnet=10.1.0.0/16
# leftcert=selfCert.der
# leftsendcert=never
# right=192.168.0.2
# rightsubnet=10.2.0.0/16
# rightcert=peerCert.der
# auto=start
#conn sample-with-ca-cert
# leftsubnet=10.1.0.0/16
# leftcert=myCert.pem
# right=192.168.0.2
# rightsubnet=10.2.0.0/16
# rightid="C=CH, O=Linux strongSwan CN=peer name"
# auto=start