IPSEC-ADDCONN(8)
π IPSEC-ADDCONN π
okay so bestie, this is a page about ipsec-addconn from the Executable programs pile. yes it's a man page. yes we're making it cute. let's go π«Ά
β¨ NAME β¨
ipsec-addconn β load a given policy into the pluto IKE daemon πΆ
πΈ SYNOPSIS πΈ
ipsec addconn [--config /etc/ipsec.conf]
[--ctlsocket /run/pluto/pluto.ctl] [--verbose] [--debug]
[--quiet] --options...
ipsec addconn connection...
ipsec addconn --configsetup [=option] [--noexport]
ipsec addconn --liststack [--noexport]
ipsec addconn --checkconfig
ipsec addconn --autoall
ipsec addconn --listadd | --listall | --listignore | --listroute |
--liststart
ipsec addconn --name connection-name [left=address] [right=address]
option=value...
ipsec addconn --help
π DESCRIPTION π
so ipsec addconn takes a config file (or stdin, she's flexible π
) that's got the format of ipsec.conf, or the format of individual "conn" sections, and then uses all that info to load named connections β or literally all the connections defined in that config file β into the running libreswan pluto IKE daemon. it's giving matchmaker but for policies π
if you don't hand her a configuration file, she just uses the default one, no biggie. and if you don't tell her where the pluto socket is, she'll go with the default socket location. she knows the way β¨
when --autoall is specified, every connection that includes the auto= configuration option gets processed like this:
auto=add/auto=keepβ the connection is loaded πauto=route/auto=ondemandβ the connection is loaded and routed π£οΈauto=up/auto=startβ the connection is loaded, routed, marked as needing to stay up, and initiated π₯
and here's the thing: if the connection is already loaded, then she first removes it. out with the old, in with the new, periodt π
when one or more connections are specified, those connections are the ones that get loaded. any auto= sitting in the configuration? ignored. not today, bestie π
when --configsetup is specified, the configuration file gets parsed for the config setup section and printed to your terminal in a form that's usable as a shell script π. these lines are prefaced with export β unless --noexport is specified. and if you pass an option, then only the value of that option gets printed. slay, so specific π
when --checkconfig is specified, the configuration file gets parsed and all sections get checked for correct syntax. if there's an error, info about it gets printed to the terminal. she's your proofreader and she will catch it π
when --listroute or --liststart is specified, no connections are added or replaced β they're only shown π. this one is for verifying which connections the addcon command would act upon, without actually doing any of the acting. very look-don't-touch, very demure π
when --name connection is specified, addconn constructs a connection description by parsing the rest of the command line as ipsec.conf(5) conn section key-values. the resulting connection then gets loaded into pluto. build-a-bear but it's a VPN connection π§Έ
when --quiet is specified, log messages from pluto are not copied to standard output. and lowkey this one has a job: to avoid connection messages being duplicated in the logs, pluto, during startup, invokes addconn with this option. it's an internal thing, iykyk π€«
π SEE ALSO π
π HISTORY π
Man page written for the Libreswan project <https://libreswan.org/> by Paul Wouters βοΈ
β AUTHOR β
Andrew Cagney, Daniel Kahn Gillmor, Harald Jenny, Jose Quaresma, Michael Richardson, Paul Wouters, Tuomo Soini π
and that's the whole vibe bestie π this was Libreswan 5.4.1, dated 10/23/2026, and it lives at IPSEC-ADDCONN(8) in the manual. go load some policies, you absolute icon π¦β¨
π¦ where this page comes from
- fedora 43: libreswan 5.4.1-1.fc43 Β· GPL-2.0-or-later AND MPL-2.0
- fedora 44: libreswan 5.4.1-1.fc44 Β· GPL-2.0-or-later AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms