]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
tor: Install and ship service related IDS rules file.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 24 Jul 2022 12:26:17 +0000 (14:26 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 24 Jul 2022 12:26:17 +0000 (14:26 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/rootfiles/packages/tor
lfs/tor

index c75e86f11895ba812af1b7fcfe9c0a6c6b7e50af..dcf78e73b1627e9e981f880c343d9508ec9691e1 100644 (file)
@@ -23,6 +23,9 @@ usr/local/bin/torctrl
 #usr/share/man/man1/tor-resolve.1
 #usr/share/man/man1/tor.1
 #usr/share/man/man1/torify.1
+#usr/share/suricata
+#usr/share/suricata/rules
+usr/share/suricata/rules/ipfire-tor.rules
 usr/share/tor
 usr/share/tor/defaults-torrc
 usr/share/tor/geoip
diff --git a/lfs/tor b/lfs/tor
index 628ed63a269480369557dd378ea3b62dc08dfbe5..d059eadf0b7182ff42912d1e0ffae200cfa90b09 100644 (file)
--- a/lfs/tor
+++ b/lfs/tor
@@ -34,7 +34,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tor
-PAK_VER    = 70
+PAK_VER    = 71
 
 DEPS       = libseccomp
 
@@ -111,6 +111,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        install -v -m 644 $(DIR_SRC)/config/tor/defaults-torrc \
                /usr/share/tor/defaults-torrc
 
+       # Additional suricata rules for this service.
+       mkdir -pv /usr/share/suricata/rules
+       install -v -m 644 $(DIR_SRC/config/tor/ipfire-tor.rules \
+               /usr/share/suricata/rules/ipfire-tor.rules
+
        # Install initscripts
        $(call INSTALL_INITSCRIPTS,$(SERVICES))