ipsec-ondemand(8)

ipsec-ondemand8

Add and route a connection

Usage

ipsec ondemand connection [--config /etc/ipsec.conf] [--ctlsocket /run/pluto/pluto.ctl] [--dry-run]

Overview

ipsec ondemand is equivalent to running ipsec add connection followed by ipsec route connection , having the same effect as the connection configuration option auto=route or auto=ondemand. This sets up connection to be on demand, causing connection to establish only when triggered by outbound traffic.

Note: you might also need to run ipsec rereadsecrets when your new connection uses pre-shared key (PSK) authentication, authby=secret because secrets keys are only being read at startup.

With --dry-run the underlying whack or addconn command is displayed but not executed.

Bugs

none

Author

Tuomo Soini

From libreswan 5.2-2.2 in Debian 13 (Trixie). Parsed by carta from the page's man source.