LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2018, 12:41 PM   #1
narke
Member
 
Registered: Apr 2010
Posts: 197

Rep: Reputation: 5
Unhappy Who can run swanctl in Slackware?


strongSwan's new communicating interface uses swanctl to start/stop/reload it's core daemon 'charon', the swanctl tool does these jobs by calling a new systemd daemon 'charon-systemd'. But I cannot build successfully the 'charon-systemd', it seemed obviously that Slackware does not support it. What do I do if I have to use swanctl from strongSwan?

Thanks.
woody
 
Old 09-01-2018, 01:09 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,088

Rep: Reputation: Disabled
There is a SlackBuild for strongswan @ https://slackbuilds.org. I just used it to build and install successfully a package for Slackware 14.2. Did you try it?

PS the package includes binaries swanctl and ipsec ass well as pki and shared libaries libstrongswan, libcharon and livici, also libcharon.la.

PPS I also cloned the git repo, then ran autogen.sh && ./configure --help. Got this line under "Optional features":
Code:
--enable-systemd        enable systemd specific IKE daemon charon-systemd.
Just don't enable it as of course you neither need it nor can use it on Slackware, then everything will be fine: An IKE daemon will be built that don't rely on systemd but works on Slackware.

Last edited by Didier Spaier; 09-01-2018 at 01:56 PM.
 
Old 09-01-2018, 07:12 PM   #3
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Didier Spaier View Post
There is a SlackBuild for strongswan @ https://slackbuilds.org. I just used it to build and install successfully a package for Slackware 14.2. Did you try it?

PS the package includes binaries swanctl and ipsec ass well as pki and shared libaries libstrongswan, libcharon and livici, also libcharon.la.

PPS I also cloned the git repo, then ran autogen.sh && ./configure --help. Got this line under "Optional features":
Code:
--enable-systemd        enable systemd specific IKE daemon charon-systemd.
Just don't enable it as of course you neither need it nor can use it on Slackware, then everything will be fine: An IKE daemon will be built that don't rely on systemd but works on Slackware.
I knew the SlackBuild or building from tarball resulted in a workable strongSwan. I tried the both ways and used for a while. Currently on my Slack, I was running the tarball build one. But my question is for another point: I as wondering how can I run swanctl in Slack. From the swanctl doc, I read that it requested to start charon-systemd before starting swanctl. However, it seemed impossible to have charon-systemd on Slack.

Regard,
woody
 
Old 09-02-2018, 02:10 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,088

Rep: Reputation: Disabled
Quote:
Originally Posted by narke View Post
I knew the SlackBuild or building from tarball resulted in a workable strongSwan. I tried the both ways and used for a while. Currently on my Slack, I was running the tarball build one. But my question is for another point: I as wondering how can I run swanctl in Slack. From the swanctl doc, I read that it requested to start charon-systemd before starting swanctl. However, it seemed impossible to have charon-systemd on Slack.
You don't tell on which doc you read that charon-systemd should be started before starting swanctl (pointer to this doc, please?), but it's certainly in a scenario where the --enable-systemd has been used and again this is fully optional, so just don't include this option.

Anyway, the SlackBuild has certainly been tested for starting swanctl, so yes it will run on Slackware without systemd. Furthermore if you use the SlackBuild you will get after installation in /usr/doc/strongswan-5.6.2 the file README that I attach to this post and that should get you started.
Attached Files
File Type: txt README.txt (21.0 KB, 16 views)

Last edited by Didier Spaier; 09-02-2018 at 02:11 AM.
 
Old 09-04-2018, 02:04 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Have you tried just running swanctl? Their wiki has the command fairly well documented.

https://wiki.strongswan.org/projects...n/wiki/swanctl

Do you get errors about systemd when running swanctl with your package or are you just assuming it won't work since the internet says it relies on charon-systemd?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing VirtualBox*.run * Oracle*.run on Slackware 14 - Help/Information lkraemer Slackware 3 10-09-2012 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration