TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/strongswan/strongswan/llms.txt
Use this file to discover all available pages before exploring further.
--load-all command is a convenience wrapper that runs the four individual
load operations in sequence: credentials, authorities, pools, and connections.
It is equivalent to running --load-creds, --load-authorities,
--load-pools, and --load-conns one after another.
Run --load-all after modifying swanctl.conf or after the charon daemon
restarts, to bring the daemon’s in-memory state in sync with your configuration
files.
Synopsis
Options
Clear all previously loaded credentials before loading the new set. Without
this flag, the daemon merges the new credentials with any already loaded.
Use
--clear when you need to remove credentials that are no longer in the
configuration.Do not prompt for passphrases when loading encrypted private keys. Keys
protected by a passphrase are silently skipped. Use this flag in scripts or
automated deployments where interactive input is not available.
Path to a custom
swanctl.conf file. Defaults to
/etc/swanctl/swanctl.conf.Dump the raw VICI response messages from each sub-operation.
Dump raw VICI responses with pretty-print indentation. Implies
--raw.VICI socket URI. Overrides the default
unix:///var/run/charon.vici.What gets loaded
--load-all calls the following sub-operations in order. Each step must
succeed before the next runs.
| Step | Equivalent command | What it does |
|---|---|---|
| 1 | --load-creds | Reads private keys, certificates, and secrets (PSKs, EAP passwords) from /etc/swanctl/ subdirectories and swanctl.conf |
| 2 | --load-authorities | Loads certification authority definitions (trusted CA certs, CRL/OCSP URIs) |
| 3 | --load-pools | Loads virtual IP pool definitions used to assign addresses to road warriors |
| 4 | --load-conns | Loads connection (IKE_SA + CHILD_SA) configurations |
Examples
Basic reload after editing swanctl.conf
Reload and clear stale credentials
Use--clear when certificates have been revoked or removed:
Non-interactive reload in a script or systemd unit
Load from a non-default configuration file
Configuration reload workflow
Changes to
swanctl.conf are not automatically picked up by charon. You
must run --load-all (or one of the individual load commands) after every
change to apply the new configuration.- Edit
/etc/swanctl/swanctl.conf. - Verify the file parses correctly (no syntax errors).
- Run
swanctl --load-allto apply the changes. - Optionally run
swanctl --list-sasorswanctl --list-connsto confirm the new configuration is active.
Exit codes
| Code | Meaning |
|---|---|
0 | All four load operations succeeded |
| non-zero | One of the load operations failed; subsequent steps are skipped |
See also
swanctl --list-sas— verify active SAs after loadingswanctl --list-certs— check which certificates were loadedswanctl --initiate— bring up a connection after loading config