Mgiese Veteran
Joined: 23 Mar 2005 Posts: 1626 Location: indiana
|
Posted: Wed Jun 26, 2024 10:36 am Post subject: howto autorestart strongswan/ipsec on isp connection loss? |
|
|
Hi there, I found a post tackling my issue like this:
Code: | #!/bin/sh
echo `date +%Y-%m-%d\ %H:%M:%S`' ipsec restart on network connection' >> /tmp/keep_ipsec.log
cd /etc/init.d
./ipsec restart
exit 0
|
While this script is suppossed to be put under /etc/network/if-up.d/ipsec (on systemd systems), I did not find any similar named folder in /etc. I am grateful for any advice on where to put the file..
Thanks in advance _________________ I do not have a Superman complex, for I am God not Superman
Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE |
|