diff options
author | Ermal <eri@pfsense.org> | 2012-07-16 09:42:41 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-16 09:42:41 +0000 |
commit | fc886e5bd05dd82701f0d7961e92de87c3ba1bd4 (patch) | |
tree | d2b874d74aaf62cae1a811b6172c6d23bbc1708c /config/snort/snort.inc | |
parent | 3f50c8996f3a14ced3d365b6854555a842a93ebb (diff) | |
download | pfsense-packages-fc886e5bd05dd82701f0d7961e92de87c3ba1bd4.tar.gz pfsense-packages-fc886e5bd05dd82701f0d7961e92de87c3ba1bd4.tar.bz2 pfsense-packages-fc886e5bd05dd82701f0d7961e92de87c3ba1bd4.zip |
Add possibility to specify custom rules
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 27598f3d..2788db4b 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1329,6 +1329,12 @@ EOD; } } + if (!empty($snortcfg['customrules'])) { + @file_put_contents("{$snortcfgdir}/rules/custom.rules", base64_decode($snortcfg['customrules'])); + $selected_rules_sections .= "include \$RULE_PATH/custom.rules\n"; + } else + @unlink("{$snortcfgdir}/rules/custom.rules"); + $cksumcheck = "all"; if ($snortcfg['cksumcheck'] == 'on') $cksumcheck = "none"; |