Project

General

Profile

Issue #3320

How to start swanctl.conf from startup on OpenWrt?

Added by Bernd Bernikov about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
configuration
Affected version:
5.8.2
Resolution:
No change required

Description

Hello.

My strongSwan swanctl version is 5.8.2.

I want to get the IKEv2 client configuration (https://wiki.strongswan.org/issues/3313) in swanctl.conf running from OpenWrt startup.

I only know how to start it manually:

swanctl --load-all
swanctl --initiate --child <name>

I thought I could start the configuration with "start_action=start" from startup, but this is not the case with OpenWrt.

How do I do that?

Best regards

Bernd

History

#1 Updated by Tobias Brunner about 1 year ago

  • Status changed from New to Feedback

I only know how to start it manually:
[...]

You obviously have to execute the first command somehow to load the configs (e.g. as a start script in strongswan.conf if the daemon is started by an init script - or modify said script).

I thought I could start the configuration with "start_action=start" from startup, but this is not the case with OpenWrt.

That only has an effect if the config is loaded in the first place.

#2 Updated by Bernd Bernikov about 1 year ago

Thanks for the quick response. It's working.

I have now the following configuration in strongswan.conf:

# strongswan.conf - strongSwan configuration file
#
# Refer to the strongswan.conf(5) manpage for details
#
# Configuration changes should be made in the included files

charon {
    load_modular = yes
    plugins {
        include strongswan.d/charon/*.conf
    }
    start-scripts {
        load-all = /usr/sbin/swanctl --load-all
    } 
}

include strongswan.d/*.conf

If that's correct, then the ticket can be closed.

Best regards

Bernd

#3 Updated by Tobias Brunner about 1 year ago

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

Also available in: Atom PDF