SWANCTL(8)
β¨ NAME β SWANCTL(8) β¨
Okay bestie, swanctl is the strongSwan configuration, control and monitoring command line interface. This page is literally SWANCTL(8), section 8, and it's here to hand you the CLI for all that strongSwan configuration, control, and monitoring main character energy π
.
π¦ SYNOPSIS π¦
swanctl command [option ...]
swanctl -h | --help
π DESCRIPTION π
So swanctl is a cross-platform command line utility to configure, control and monitor the strongSwan IKE daemon. It's a replacement for the aging starter, ipsec and stroke tools β out with the old, in with the iconic β¨.
It uses a configuration file called swanctl.conf(5) to parse configurations and credentials. Private keys, certificates and other PKI-related credentials are read from specific directories. Very organized, no cap π.
To communicate with the IKE daemon, swanctl uses the VICI protocol, the Versatile IKE Configuration Interface. This stable interface is usable by other tools and is often preferable than scripting swanctl and parsing its output. Iykyk β stable interface vibes are lowkey superior π¦.
π COMMANDS π
-i,--initiateβ initiate a connection. Go, connection, go β¨-t,--terminateβ terminate a connection. Bye bestie π-R,--rekeyβ rekey an SA. Do the rekey thing π-d,--redirectβ redirect an IKE_SA. Send it on its little journey π¦-p,--installβ install a trap or shunt policy. Set that policy up π«Ά-U,--uninstallβ uninstall a trap or shunt policy. Take it right back out π-l,--list-sasβ list currently active IKE_SAs. Stalk the active list, respectfully π-P,--list-polsβ list currently installed policies-b,--load-authoritiesβ (re-)load certification authorities information. Authority info reload moment π-L,--list-connsβ list loaded configurations-B,--list-authoritiesβ list loaded certification authorities information-x,--list-certsβ list stored certificates. Cert inventory check π-A,--list-poolsβ list loaded pool configurations-g,--list-algsβ list loaded algorithms and their implementation-q,--load-allβ (re-)load credentials, pools, authorities and connections. The full reload combo meal π-c,--load-connsβ (re-)load connection configuration-s,--load-credsβ (re-)load credentials-a,--load-poolsβ (re-)load pool configuration-T,--logβ trace logging output (levels0and1only). Levels0and1only, bestie β-S,--statsβ show daemon infos and statistics. Number-crunching main character energy π₯-f,--flush-certsβ flush cached certificates-r,--reload-settingsβ reloadstrongswan.conf(5)configuration-V,--versionβ show daemon version information-h,--helpβ show usage, version and plugin information. Helpful icon behavior π«Ά
π§ GENERAL OPTIONS π§
-v,--debugβ set debug level, default:1-+,--optionsβ read command line options from file. Yes, that's-+, not a typo π-u,--uriβ service URI to connect to
π SEE ALSO π
swanctl.conf(5)β the config file bestie, go off π
That's the whole SWANCTL(8) page, bestie β strongSwan 6.1.0, dated 2015-11-20, signing off with a sparkle and a little manual-page bow ππ«
π¦ where this page comes from
- arch rolling: strongswan 6.1.0-2 Β· GPL-2.0-only
- nixos 26.05: strongswan 6.1.0
- nixpkgs unstable: strongswan 6.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms