The daemon fires these events asynchronously when SA state changes. Register for them usingDocumentation 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.
EVENT_REGISTER before the event can occur (see protocol for the registration sequence).
ike-updown
Fired when an IKE_SA is established or terminated.Present and set to
yes for an up (established) event. Absent on a down (terminated) event.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.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.New local IKE endpoint address.
New local IKE endpoint port.
New remote IKE endpoint address.
New remote IKE endpoint port.
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.Present and set to
yes for an up (established) event. Absent on a down (terminated) event.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.SA data section (same fields as
list-sa) where child-sas contains:list-sa
Streamed during an activelist-sas command. Each event carries one IKE_SA and its CHILD_SAs.
list-policy
Streamed during an activelist-policies command. Each event describes one installed policy.
list-conn
Streamed during an activelist-conns command. Each event describes one loaded connection.
list-cert
Streamed during an activelist-certs command.
Certificate type:
X509, X509_AC, X509_CRL, OCSP_RESPONSE, or PUBKEY.X.509 certificate flag:
NONE, CA, AA, or OCSP.Set if a private key for this certificate is available in the daemon.
ASN.1 encoded certificate data.
Subject string. Present when
type is PUBKEY.Validity start time. Present when
type is PUBKEY.Validity end time. Present when
type is PUBKEY.list-authority
Streamed during an activelist-authorities command.
alert
Fired for specific error conditions. Some alerts include an associated IKE_SA.Alert type string. See the full list below.
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
| Value | Description |
|---|---|
authorization-failed | An authorization hook failed |
cert-exceeded-path-len | Certificate trust chain length exceeds the configured limit |
cert-expired | Certificate rejected — it has expired |
cert-no-issuer | Certificate rejected — no trusted issuer found |
cert-policy-violation | Certificate rejected — other policy violation |
cert-revoked | Certificate rejected — it has been revoked |
cert-untrusted-root | Certificate rejected — root CA not trusted |
cert-validation-failed | Certificate rejected — status validation failed |
half-open-timeout | Half-open timeout reached before IKE_SA was established |
ike-sa-expired | IKE_SA hit hard lifetime limit before it could be rekeyed |
install-child-policy-failed | Installation of IPsec policy failed |
install-child-sa-failed | Installation of IPsec SAs failed |
invalid-ike-spi | Received IKE message with an invalid SPI |
keep-on-child-sa-failure | IKE_SA kept alive after a failed CHILD_SA establishment |
local-auth-failed | Local peer authentication failed (by us or by peer) |
parse-error-body | Received IKE message with an invalid body |
parse-error-header | Received IKE message with an invalid header |
peer-addr-failed | Failed to resolve peer address |
peer-auth-failed | Peer authentication failed |
peer-init-unreachable | Peer did not respond to the initial message |
proposal-mismatch-child | CHILD_SA proposals do not match |
proposal-mismatch-ike | IKE proposals do not match |
radius-not-responding | A RADIUS server did not respond |
retransmit-receive | Received a retransmit for a message |
retransmit-send | Sending a retransmit for a message |
retransmit-send-cleared | Received a response for a retransmitted request |
retransmit-send-timeout | Sending retransmits timed out |
shutdown-signal | A shutdown signal was received |
ts-mismatch | Traffic selectors do not match |
ts-narrowed | Traffic selectors were narrowed (by us or by peer) |
unique-keep | IKE_SA deleted due to keep unique policy |
unique-replace | IKE_SA deleted due to replace unique policy |
vip-failure | Allocating a virtual IP address failed |