Skip to content
Contents
GuidesOpenWrt

swanctl starts silently but charon is missing with a legacy UCI configuration

swanctl is the control tool; actual key exchange is performed by charon. After the startup command returns silently, verify that the daemon and control socket are available.

Applies to · qoriq/generic · OpenWrt SNAPSHOT · swanctl

What to check

Investigate at three points: exit of the boot script, charon process, and control socket.

Connect over Ethernet and run the following commands in an SSH session on the router.

/etc/init.d/swanctl status
logread -e charon

How to interpret the result

If charon is not present, first check whether the initialization script exits prematurely due to an old global IPsec configuration. If the process is running but control queries fail, verify the VICI socket and permissions. Then select the service entry based on the current configuration method.

Verify and recover

Check that charon answers control requests and negotiates an authorized test connection. Restore saved configuration sections if necessary, preserving keys and certificates.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments