Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto autorestart strongswan/ipsec on isp connection loss?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1628
Location: indiana

PostPosted: Wed Jun 26, 2024 10:36 am    Post subject: howto autorestart strongswan/ipsec on isp connection loss? Reply with quote

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 :D

Ryzen9 7950x (powersave governor) ; Geforce 3050 (70w) ; kernel 6.10.6 ; XFCE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum