aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/snort/snort.xml9
-rw-r--r--packages/snort/snort_download_rules.php5
2 files changed, 12 insertions, 2 deletions
diff --git a/packages/snort/snort.xml b/packages/snort/snort.xml
index fadaec51..0e4dfdfe 100644
--- a/packages/snort/snort.xml
+++ b/packages/snort/snort.xml
@@ -33,7 +33,7 @@
<prefix>/usr/local/www/</prefix>
<chmod>077</chmod>
<item>http://www.pfsense.com/packages/config/snort/snort_rules_edit.php</item>
- </additional_files_needed>
+ </additional_files_needed>
<additional_files_needed>
<prefix>/usr/local/www/</prefix>
<chmod>077</chmod>
@@ -170,6 +170,13 @@
<size>60</size>
</field>
<field>
+ <fielddescr>Snort.org subscriber</fielddescr>
+ <fieldname>subscriber</fieldname>
+ <description>Check this box if you are a Snort.org subscriber (premium rules).</description>
+ <type>checkbox</type>
+ <size>60</size>
+ </field>
+ <field>
<fielddescr>Block offenders</fielddescr>
<fieldname>blockoffenders</fieldname>
<description>Checking this option will automatically block hosts that generate a snort alert.</description>
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php
index bb7b35b7..db241adb 100644
--- a/packages/snort/snort_download_rules.php
+++ b/packages/snort/snort_download_rules.php
@@ -176,7 +176,10 @@ if(!$oinkid) {
ob_flush();
/* setup some variables */
-$snort_filename = "snortrules-snapshot-CURRENT.tar.gz";
+$premium_subscriber = "";
+if($config['installedpackages']['snortadvanced']['config'][0]['subscriber'])
+ $premium_subscriber = "_s";
+$snort_filename = "snortrules-snapshot-CURRENT{$premium_subscriber}.tar.gz";
$snort_filename_md5 = "snortrules-snapshot-CURRENT.tar.gz.md5";
$dl = "http://www.snort.org/pub-bin/oinkmaster.cgi/{$oinkid}/{$snort_filename}";
$dl_md5 = "http://www.snort.org/pub-bin/oinkmaster.cgi/{$oinkid}/{$snort_filename_md5}";