From 541fb0525bee66f193c6dcea70f58344a2884d7b 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 | 5 +++++ 2 files changed, 8 insertions(+) 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 74b738512b..a51615398d 100644 --- a/lfs/tor +++ b/lfs/tor @@ -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