diff options
author | robiscool <robrob2626@yahoo.com> | 2009-11-24 00:19:25 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-11-24 00:19:25 -0800 |
commit | a897942428ad9834f2c0732d4ed8ccd1d28a68d7 (patch) | |
tree | 9020bf45b3b2c6c30c7d1a6eb906c1e3be1ad817 /config/snort-dev/snort.inc | |
parent | f1c0379a5678842736ae8c6bc6e142e5108d57f9 (diff) | |
download | pfsense-packages-a897942428ad9834f2c0732d4ed8ccd1d28a68d7.tar.gz pfsense-packages-a897942428ad9834f2c0732d4ed8ccd1d28a68d7.tar.bz2 pfsense-packages-a897942428ad9834f2c0732d4ed8ccd1d28a68d7.zip |
snort-dev, add misc 2
Diffstat (limited to 'config/snort-dev/snort.inc')
-rw-r--r-- | config/snort-dev/snort.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 2703232f..76754ee4 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -121,6 +121,8 @@ function sync_package_snort() // if($bpfmaxinsns) // mwexec_bg("sysctl net.bpf.maxinsns={$bpfmaxinsns}"); +/* do not start config build if rules is empty */ +if (!empty($config['installedpackages']['snortglobal']['rule'])) { if ($id == "") { $rule_array = $config['installedpackages']['snortglobal']['rule']; @@ -158,7 +160,8 @@ if ($snortbarnyardlog_info_chk == on) if ($snortbarnyardlog_info_chk == on) create_barnyard2_conf(); -} + } +} conf_mount_ro(); @@ -1126,12 +1129,13 @@ function snort_rules_up_install_cron($should_install) { $home_net .= "127.0.0.1 "; /* iterate all vips and add to whitelist */ + if($config['virtualip']) foreach($config['virtualip']['vip'] as $vip) if($vip['subnet']) $home_net .= $vip['subnet'] . " "; - if($config['installedpackages']['snortglobal']) + if($config['installedpackages']['snortglobal']['whitelist']) foreach($config['installedpackages']['snortglobal']['whitelist'] as $snort) if($snort['ip']) $home_net .= $snort['ip'] . " "; |