From 9843513bfbef7b027c523af1f85d3eeeeaf35e2d Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Fri, 3 Jul 2015 15:17:48 -0400 Subject: Send OpenAppID and SNORT_VARS changes to CARP replication partners. --- config/snort/snort_define_servers.php | 3 +++ config/snort/snort_preprocessors.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/snort/snort_define_servers.php b/config/snort/snort_define_servers.php index ee463ac9..b72a3d4e 100755 --- a/config/snort/snort_define_servers.php +++ b/config/snort/snort_define_servers.php @@ -142,6 +142,9 @@ if ($_POST['save']) { /* Soft-restart Snort to live-load new variables. */ snort_reload_config($a_nat[$id]); + /* Sync to configured CARP slaves if any are enabled */ + snort_sync_on_changes(); + /* after click go to this page */ header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); diff --git a/config/snort/snort_preprocessors.php b/config/snort/snort_preprocessors.php index 9f6879ef..de680886 100755 --- a/config/snort/snort_preprocessors.php +++ b/config/snort/snort_preprocessors.php @@ -569,6 +569,9 @@ if ($_POST['save']) { !empty($natent['host_attribute_data'])) snort_reload_config($natent, "SIGURG"); + /* Sync to configured CARP slaves if any are enabled */ + snort_sync_on_changes(); + /* after click go to this page */ header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); -- cgit v1.2.3