Pfsense Ipsec stop bei Failover: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt) | |||
| 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 | + | /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