SWANCTL(8)

๐Ÿ“ฆ
version 6.0.7 ยท 4 versions
, in fedora 43, fedora 44

๐Ÿ’– 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 โ€” reload strongswan.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 ๐Ÿ‘‘

swanctl.conf(5)


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