From 6ead73999da433729e89f5eb6e861eae5498c88c Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 24 Jul 2022 14:26:17 +0200 Subject: [PATCH] tor: Install and ship service related IDS rules file. Signed-off-by: Stefan Schantl --- config/rootfiles/packages/tor | 3 +++ lfs/tor | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/rootfiles/packages/tor b/config/rootfiles/packages/tor index c75e86f118..dcf78e73b1 100644 --- a/config/rootfiles/packages/tor +++ b/config/rootfiles/packages/tor @@ -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 628ed63a26..d059eadf0b 100644 --- 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)) -- 2.39.5