aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_alerts.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-07 17:57:15 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-07 17:57:15 -0400
commit1d9c1cc8e530352168b97fd8b9c552c2588b67f4 (patch)
tree4ddf526d573bc142104325a91ccfcdd11e3d73f8 /config/suricata/suricata_alerts.php
parente1be647aab970954f0c1312d3579c1e312add9ba (diff)
downloadpfsense-packages-1d9c1cc8e530352168b97fd8b9c552c2588b67f4.tar.gz
pfsense-packages-1d9c1cc8e530352168b97fd8b9c552c2588b67f4.tar.bz2
pfsense-packages-1d9c1cc8e530352168b97fd8b9c552c2588b67f4.zip
Sync some changes to CARP slaves when enabled.
Diffstat (limited to 'config/suricata/suricata_alerts.php')
-rw-r--r--config/suricata/suricata_alerts.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/suricata/suricata_alerts.php b/config/suricata/suricata_alerts.php
index eab2a1d5..57ccbe27 100644
--- a/config/suricata/suricata_alerts.php
+++ b/config/suricata/suricata_alerts.php
@@ -294,6 +294,9 @@ if (($_POST['addsuppress_srcip'] || $_POST['addsuppress_dstip'] || $_POST['addsu
if (suricata_add_supplist_entry($suppress)) {
suricata_reload_config($a_instance[$instanceid]);
$savemsg = $success;
+
+ // Sync to configured CARP slaves if any are enabled
+ suricata_sync_on_changes();
sleep(2);
}
else
@@ -354,6 +357,9 @@ if ($_POST['togglesid'] && is_numeric($_POST['sidid']) && is_numeric($_POST['gen
/* Signal Suricata to live-load the new rules */
suricata_reload_config($a_instance[$instanceid]);
+
+ // Sync to configured CARP slaves if any are enabled
+ suricata_sync_on_changes();
sleep(2);
$savemsg = gettext("The state for rule {$gid}:{$sid} has been modified. Suricata is 'live-reloading' the new rules list. Please wait at least 15 secs for the process to complete before toggling additional rules.");