]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-ruleset-sources: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 2 Aug 2018 17:29:36 +0000 (19:29 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 2 Aug 2018 17:29:36 +0000 (19:29 +0200)
Move the file which contains the download URL's for the IDS rulesets
into an own common package. This will allow us in future to easily ship
a changed file with a core update.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/rootfiles/common/ids-ruleset-sources [new file with mode: 0644]
config/suricata/ruleset-sources [new file with mode: 0644]
lfs/ids-ruleset-sources [new file with mode: 0644]

diff --git a/config/rootfiles/common/ids-ruleset-sources b/config/rootfiles/common/ids-ruleset-sources
new file mode 100644 (file)
index 0000000..7e15e20
--- /dev/null
@@ -0,0 +1 @@
+/var/ipfire/suricata/ruleset-sources
diff --git a/config/suricata/ruleset-sources b/config/suricata/ruleset-sources
new file mode 100644 (file)
index 0000000..04fc2a9
--- /dev/null
@@ -0,0 +1,11 @@
+# Ruleset for registered sourcefire users.
+registered = https://www.snort.org/downloads/registered/snortrules-snapshot-29110.tar.gz?oinkcode=<oinkcode>
+
+# Ruleset for registered sourcefire users with valid subscription.
+subscripted = https://www.snort.org/downloads/registered/snortrules-snapshot-29110.tar.gz?oinkcode=<oinkcode>
+
+# Community rules from sourcefire.
+community = https://www.snort.org/downloads/community/community-rules.tar.gz
+
+# Emerging threads community rules.
+emerging = http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz
diff --git a/lfs/ids-ruleset-sources b/lfs/ids-ruleset-sources
new file mode 100644 (file)
index 0000000..d55b1a0
--- /dev/null
@@ -0,0 +1,53 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = ipfire
+
+THISAPP    = ids-ruleset-sources
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+install : $(TARGET)
+
+check :
+
+download :
+
+md5 :
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) :
+       @$(PREBUILD)
+       # Simple install the ruleset sources file.
+       install -m 644 $(DIR_SRC)/config/suricata/ruleset-sources \
+               /var/ipfire/suricata/
+       @$(POSTBUILD)