IPSec connect through CLI?
-
Is there a command I can send to connect P1 and P2 IPSec connections from CLI?
-
Yes, what you want is the
swanctlcommand.For example to initial P1 and P2 for a P2 with an internal id of
con1, then you would run:$ swanctl --initiate --child con1To see the IDs and so on, look at
/var/etc/ipsec/swanctl.confor they can be dumped fromswanctlwith commands likeswanctl --list-connsCheck the strongSwan docs for
swanctlif you want to know more about how that all works. -
@jimp Thank you! That worked!
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.