Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „<pre> if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ] then /usr/local/sbin/pfSsh.php playback svc stop ipsec fi if [ "$alarm_flag" == "0" and $GW == "VO…“) |
|||
| (3 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | < | + | *cat /etc/rc.gateway_alarm |
| + | <syntaxhighlight lang="bash"> | ||
if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ] | if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ] | ||
| − | then | + | then |
| − | /usr/local/sbin/pfSsh.php playback svc stop ipsec | + | /usr/local/sbin/pfSsh.php playback svc stop ipsec |
fi | fi | ||
if [ "$alarm_flag" == "0" and $GW == "VODAFONE_DHCP" ] | if [ "$alarm_flag" == "0" and $GW == "VODAFONE_DHCP" ] | ||
| − | then | + | then |
| − | /usr/local/sbin/pfSsh.php playback svc | + | /usr/local/sbin/pfSsh.php playback svc start ipsec |
fi | fi | ||
| − | </ | + | </syntaxhighlight> |
Aktuelle Version vom 1. September 2021, 09:44 Uhr
- cat /etc/rc.gateway_alarm
if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ]
then
/usr/local/sbin/pfSsh.php playback svc stop ipsec
fi
if [ "$alarm_flag" == "0" and $GW == "VODAFONE_DHCP" ]
then
/usr/local/sbin/pfSsh.php playback svc start ipsec
fi