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 (levels 0 and 1 only). Levels 0 and 1 only, bestie ⭐
  • -S, --stats β€” show daemon infos and statistics. Number-crunching main character energy πŸ”₯
  • -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. 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 πŸ’–


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