hi Piotr
is checking for /var/run/iked.sock the best way to see if the vpn is running ?
I'd: doas ipsecctl -sa | grep 'esp tunnel' and possibly narrow this down to what's relevant for you.
sorry i took so long to say thanks, just noticed that i hadn't replyed to you. happy new year to all

