Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/strongswan/strongswan/llms.txt

Use this file to discover all available pages before exploring further.

The daemon fires these events asynchronously when SA state changes. Register for them using EVENT_REGISTER before the event can occur (see protocol for the registration sequence).

ike-updown

Fired when an IKE_SA is established or terminated.
up
string
Present and set to yes for an up (established) event. Absent on a down (terminated) event.
<IKE_SA config name>
section
SA data section named after the IKE configuration. Contains the same fields as the list-sa event, but without the child-sas subsection.

ike-rekey

Fired when an IKE_SA is rekeyed.
<IKE_SA config name>
section
SA data section containing two subsections:

ike-update

Fired when the local or remote endpoint address of an IKE_SA is about to change (MOBIKE or similar). At least one address or port differs from the previous value.
local-host
string
New local IKE endpoint address.
local-port
string
New local IKE endpoint port.
remote-host
string
New remote IKE endpoint address.
remote-port
string
New remote IKE endpoint port.
<IKE_SA config name>
section
SA data listing the old addresses/ports (same fields as list-sa, without child-sas).

child-updown

Fired when a CHILD_SA is established or terminated.
up
string
Present and set to yes for an up (established) event. Absent on a down (terminated) event.
<IKE_SA config name>
section
SA data section (same fields as list-sa) containing only the affected CHILD_SA in child-sas.

child-rekey

Fired when a CHILD_SA is rekeyed.
<IKE_SA config name>
section
SA data section (same fields as list-sa) where child-sas contains:

list-sa

Streamed during an active list-sas command. Each event carries one IKE_SA and its CHILD_SAs.
<IKE_SA config name>
section

list-policy

Streamed during an active list-policies command. Each event describes one installed policy.
<ike-config/child-config>
section

list-conn

Streamed during an active list-conns command. Each event describes one loaded connection.
<IKE_SA connection name>
section

list-cert

Streamed during an active list-certs command.
type
string
Certificate type: X509, X509_AC, X509_CRL, OCSP_RESPONSE, or PUBKEY.
flag
string
X.509 certificate flag: NONE, CA, AA, or OCSP.
has_privkey
string
Set if a private key for this certificate is available in the daemon.
data
string
ASN.1 encoded certificate data.
subject
string
Subject string. Present when type is PUBKEY.
not-before
string
Validity start time. Present when type is PUBKEY.
not-after
string
Validity end time. Present when type is PUBKEY.

list-authority

Streamed during an active list-authorities command.
<CA name>
section

alert

Fired for specific error conditions. Some alerts include an associated IKE_SA.
type
string
Alert type string. See the full list below.
ike-sa
section
Present when the alert is associated with an IKE_SA. Contains a subsection named after the IKE configuration with the same fields as list-sa (without child-sas).

Alert type values

ValueDescription
authorization-failedAn authorization hook failed
cert-exceeded-path-lenCertificate trust chain length exceeds the configured limit
cert-expiredCertificate rejected — it has expired
cert-no-issuerCertificate rejected — no trusted issuer found
cert-policy-violationCertificate rejected — other policy violation
cert-revokedCertificate rejected — it has been revoked
cert-untrusted-rootCertificate rejected — root CA not trusted
cert-validation-failedCertificate rejected — status validation failed
half-open-timeoutHalf-open timeout reached before IKE_SA was established
ike-sa-expiredIKE_SA hit hard lifetime limit before it could be rekeyed
install-child-policy-failedInstallation of IPsec policy failed
install-child-sa-failedInstallation of IPsec SAs failed
invalid-ike-spiReceived IKE message with an invalid SPI
keep-on-child-sa-failureIKE_SA kept alive after a failed CHILD_SA establishment
local-auth-failedLocal peer authentication failed (by us or by peer)
parse-error-bodyReceived IKE message with an invalid body
parse-error-headerReceived IKE message with an invalid header
peer-addr-failedFailed to resolve peer address
peer-auth-failedPeer authentication failed
peer-init-unreachablePeer did not respond to the initial message
proposal-mismatch-childCHILD_SA proposals do not match
proposal-mismatch-ikeIKE proposals do not match
radius-not-respondingA RADIUS server did not respond
retransmit-receiveReceived a retransmit for a message
retransmit-sendSending a retransmit for a message
retransmit-send-clearedReceived a response for a retransmitted request
retransmit-send-timeoutSending retransmits timed out
shutdown-signalA shutdown signal was received
ts-mismatchTraffic selectors do not match
ts-narrowedTraffic selectors were narrowed (by us or by peer)
unique-keepIKE_SA deleted due to keep unique policy
unique-replaceIKE_SA deleted due to replace unique policy
vip-failureAllocating a virtual IP address failed