Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen

Aus Xinux Wiki
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…“)
 
Zeile 1: Zeile 1:
<pre>
+
*cat /etc/rc.gateway_alarm
 +
<syntaxhighlight lang="bash" line>
 
if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ]
 
if [ "$alarm_flag" == "1" and $GW == "VODAFONE_DHCP" ]
 
then
 
then
Zeile 8: Zeile 9:
 
/usr/local/sbin/pfSsh.php playback svc star ipsec
 
/usr/local/sbin/pfSsh.php playback svc star ipsec
 
fi
 
fi
</pre>
+
</syntaxhighlight>

Version vom 31. August 2021, 20:18 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 star ipsec
fi