SWANCTL(8)
๐ SWANCTL(8) โ the strongSwan era ๐
okay bestie, sit down, we're talking about swanctl, and this is from the strongSwan family, manual section 8. it's giving main character energy in the VPN command-line world, no cap. โจ
๐ SYNOPSIS ๐
swanctl command [option ...]
swanctl -h | --help
๐ธ DESCRIPTION ๐ธ
swanctl is a cross-platform command line utility that lets you configure, control and monitor the strongSwan IKE daemon. and the tea? โ it's the glow-up replacement for the aging starter, ipsec and stroke tools. like, they were fine, but bestie, they're old.
it reads a config file called swanctl.conf(5) to parse configurations and credentials. private keys, certificates and other PKI related credentials get read from specific directories. very organized, very demure. ๐
to talk to the IKE daemon, swanctl uses the VICI protocol โ the Versatile IKE Configuration Interface. this is a stable interface, which means other tools can use it too, and honestly that's often preferable to scripting swanctl and parsing its output. iykyk. ๐
๐ฅ COMMANDS ๐ฅ
one bullet per command, every single one, let's go ๐
-i,--initiateโ initiate a connection ๐-t,--terminateโ terminate a connection ๐-R,--rekeyโ rekey an SA ๐-d,--redirectโ redirect an IKE_SA ๐งญ-p,--installโ install a trap or shunt policy ๐ชค-U,--uninstallโ uninstall a trap or shunt policy ๐๏ธ-l,--list-sasโ list currently active IKE_SAs ๐-P,--list-polsโ list currently installed policies ๐-b,--load-authoritiesโ (re-)load certification authorities information ๐-L,--list-connsโ list loaded configurations ๐-B,--list-authoritiesโ list loaded certification authorities information ๐-x,--list-certsโ list stored certificates ๐-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 ๐-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 (levels 0 and 1 only) ๐-S,--statsโ show daemon infos and statistics ๐-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 ๐
โจ GENERAL OPTIONS โจ
-v,--debugโ set debug level, default:1๐-+,--optionsโ read command line options from file ๐-u,--uriโ service URI to connect to ๐
๐ SEE ALSO ๐
ok that's the whole page bestie, every flag accounted for, nothing skipped, we ate and left no crumbs ๐ฝ๏ธโจ
and that's a wrap from the strongSwan era โ this one's from strongSwan 6.0.7, dated 2015-11-20. mwah, go configure something iconic ๐ ๐ซถ
๐ฆ where this page comes from
- fedora 43: strongswan 6.0.7-2.fc43 ยท GPL-2.0-or-later
- fedora 44: strongswan 6.0.7-4.fc44 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms