diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-05-15 21:51:51 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-05-15 21:51:51 -0400 |
commit | a4afff763d629af11c450f99d15e30726d03edb3 (patch) | |
tree | ea969b0d0d20218481a566138ab25e56ffeac6c8 /config | |
parent | 647d4bc2f26860fb1b95d6ee63dd4d1f02da2bd3 (diff) | |
parent | 943ba5d5bf0f0c0fedfcea7a1b5498d4d1d75a8a (diff) | |
download | pfsense-packages-a4afff763d629af11c450f99d15e30726d03edb3.tar.gz pfsense-packages-a4afff763d629af11c450f99d15e30726d03edb3.tar.bz2 pfsense-packages-a4afff763d629af11c450f99d15e30726d03edb3.zip |
Merge branch 'master' of https://github.com/bmeeks8/pfsense-packages
Diffstat (limited to 'config')
-rwxr-xr-x | config/snort/snort.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index a191d941..c3381c66 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -847,7 +847,7 @@ function snort_rules_up_install_cron($should_install) { } /* Only run when all ifaces needed to sync. Expects filesystem rw */ -function sync_snort_package_config() { +function sync_snort_package_config($via_rpc=false) { global $config, $g, $flowbit_rules_file, $snort_enforcing_rules_file; global $snort_version, $rebuild_rules; @@ -891,6 +891,11 @@ function sync_snort_package_config() { snort_sync_on_changes(); + if ($via_rpc==true){ + + // include here all function calls snort need after xml rpc sync code on backup server + + } conf_mount_ro(); } @@ -3167,7 +3172,7 @@ function snort_do_xmlrpc_sync($sync_to_ip, $username, $password, $synctimeout) { /* tell snort to reload our settings on the destination sync host. */ $method = 'pfsense.exec_php'; $execcmd = "require_once('/usr/local/pkg/snort/snort.inc');\n"; - $execcmd .= "sync_snort_package_config();"; + $execcmd .= "sync_snort_package_config(true);"; /* assemble xmlrpc payload */ $params = array( XML_RPC_encode($password), |