Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
 
*cat /etc/rc.gateway_alarm
 
*cat /etc/rc.gateway_alarm
<syntaxhighlight lang="bash" line>
+
<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 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