Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
 
Zeile 7: Zeile 7:
 
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 star ipsec
+
  /usr/local/sbin/pfSsh.php playback svc start ipsec
 
fi
 
fi
 
</syntaxhighlight>
 
</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