Project

General

Profile

Issue #3068

swanctl and IPsec / charon.vici

Added by alex johnson over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
swanctl
Affected version:
5.8.0
Resolution:
No change required

Description

Hi,

Another silly question I expect - just about got my head around Strongswan and now been told to change to Swanctl.

I've built an Azure Ubuntu server and installed Swanctl

sudo apt-get install -y strongswan-swanctl

Put a test config into and thought everything was going to easy........

root@swanctl-vpn-aj:/etc# swanctl --initiate
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.2 swanctl

(says the above with any swanctl command)

Googled this to death - most pages point to the service not running and to look in /usr/libexec/ipsec/ but I don't have this. My suspicion is I don't have IPSec installed as its not it /etc/.

thanks in advance.

Alex

root@swanctl-vpn-aj:/etc# systemctl status ipsec
Unit ipsec.service could not be found.

When the original Strongswan was installed I'm guessing it did it all for me.

Can someone point out the where I'm going badly wrong?

many thanks

History

#1 Updated by Tobias Brunner over 6 years ago

  • Status changed from New to Feedback
  • Assignee deleted (alex johnson)

Why would you think the service is called ipsec? It's actually called strongswan-swanctl.

#2 Updated by alex johnson over 6 years ago

Hi,

So why do I get this ?

root@swanctl-vpn-aj:/home/capita# swanctl --counters
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.2 swanctl
usage:

Previous searches point charon not running

"is the charon daemon running? If not, either start charon manually: sudo /usr/local/libexec/ipsec/charon &"

I don't have this folder...

root@swanctl-vpn-aj:/home/capita# systemctl enable strongswan-swanctl
Failed to enable unit: Unit file strongswan-swanctl.service does not exist.

thanks

#3 Updated by Tobias Brunner over 6 years ago

You obviously have to install the daemon if you didn't already, see the strongswan source package (either charon-systemd, recommended, or strongswan-charon).

#4 Updated by alex johnson over 6 years ago

Tobias Brunner wrote:

You obviously have to install the daemon if you didn't already, see the strongswan source package (either charon-systemd, recommended, or strongswan-charon).

Thanks for the pointers - although what is obvious to one is not always to another.

#5 Updated by Tobias Brunner over 6 years ago

  • Status changed from Feedback to Closed
  • Assignee set to Tobias Brunner
  • Resolution set to No change required