So i've spent quite a bit of time getting strongswan/ipsec working using the newer swanctl.conf approach only to now realized - it does not seem to want to start properly on boot on its own w/o an extra nudge (manual restart).
I don't know if there's a race condition somewhere keeping it from coming up, but it basically requires me to log into the router and run /etc/init.d/swanctl restart
once each boot.
After rebooting the router, logging and checking the status shows me:
$ ssh rtr
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
Divested-WRT SNAPSHOT, r24041+11-74e7f8ebbd
-----------------------------------------------------
root@router-main:~# /etc/init.d/swanctl status
active with no instances
root@router-main:~# /etc/init.d/swanctl restart
root@router-main:~# /etc/init.d/swanctl status
running
Restarting it just once works fine. I've gone so far as to set START to 99 in the swanctl init script just to see if it made any difference, and it hasn't :-/ I also logged in as soon as i could over wifi (was already 30 seconds since the kernel boot, per logread) and i did not see ANY messages related to ipsec until i ran that restart..
Before I resort to other hackey workarounds like @reboot (which i'm not sure even works with busybox).. does anyone have any idea what the reason might be and how to correct it (hopefully without hacks).