SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
Last edited by Didier Spaier; 09-02-2018 at 02:11 AM.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.