These commands manage the set of IKE connection definitions known to the charon daemon. Connections loaded over VICI are tracked separately from those loaded by other backends (e.g.,Documentation 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.
swanctl.conf files read at startup).
load-conn
Load a single connection definition into the daemon. If a connection with the same name already exists, it is updated or replaced. The input message contains a single top-level section whose name is the IKE configuration name. The contents follow theswanctl.conf(5) connection format.
Input
A section named after the connection. The contents mirror the
connections.<name> block in swanctl.conf. Includes local/remote authentication subsections and children subsections for CHILD_SA configurations.yes if the connection was loaded successfully, no on failure.Human-readable error description, present only on failure.
unload-conn
Unload a previously loaded connection definition by name. Only connections loaded over VICI can be unloaded with this command. InputThe IKE configuration name to unload.
yes if the connection was unloaded, no on failure.Human-readable error description, present only on failure.
list-conns
List currently loaded connections by streaminglist-conn events. This includes all connections known to the daemon — not only those loaded over VICI.
This is a streaming command. Register for the list-conn event before issuing this command and unregister after receiving the final empty response.
Input
Filter results to connections matching this configuration name. Omit to list all connections.
{}). All data arrives via list-conn events before this response.
Python example
get-conns
Return a list of connection names that were loaded exclusively over VICI. Connections loaded by other backends (such asswanctl.conf) are not included.
Input
No input parameters.
Response
List of connection names loaded via VICI.