Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 2: | Zeile 2: | ||
<syntaxhighlight lang="bash"> | <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 star ipsec | ||
fi | fi | ||
</syntaxhighlight> | </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