From 234edff3c316b599e24f75bbf63098ea45156897 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 1 Jun 2014 15:50:02 +0200 Subject: [PATCH] guardian: Drop bash scripts. The guardianctrl binary will replace them. --- config/guardian/guardian_block.sh | 12 ------------ config/guardian/guardian_unblock.sh | 10 ---------- lfs/guardian | 2 -- 3 files changed, 24 deletions(-) delete mode 100644 config/guardian/guardian_block.sh delete mode 100644 config/guardian/guardian_unblock.sh diff --git a/config/guardian/guardian_block.sh b/config/guardian/guardian_block.sh deleted file mode 100644 index a8331faaa1..0000000000 --- a/config/guardian/guardian_block.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -# this is a sample block script for guardian. This should work with ipchains. -# This command gets called by guardian as such: -# guardian_block.sh -# and the script will issue a command to block all traffic from that source ip -# address. The logic of weither or not it is safe to block that address is -# done inside guardian itself. -source=$1 -interface=$2 - -/sbin/iptables -I GUARDIAN -s $source -i $interface -j DROP diff --git a/config/guardian/guardian_unblock.sh b/config/guardian/guardian_unblock.sh deleted file mode 100644 index 315d771951..0000000000 --- a/config/guardian/guardian_unblock.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -# this is a sample unblock script for guardian. This should work with ipchains. -# This command gets called by guardian as such: -# unblock.sh -# and the script will issue a command to remove the block that was created with # block.sh address. -source=$1 -interface=$2 - -/sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP diff --git a/lfs/guardian b/lfs/guardian index a91fbd9ab0..c469dde325 100644 --- a/lfs/guardian +++ b/lfs/guardian @@ -62,8 +62,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) touch /var/ipfire/guardian/guardian.ignore install -v -m 644 $(DIR_SRC)/config/guardian/guardian.conf /var/ipfire/guardian/ install -v -m 755 $(DIR_SRC)/config/guardian/guardian.pl /usr/local/bin/ - install -v -m 755 $(DIR_SRC)/config/guardian/guardian_block.sh /usr/local/bin/ - install -v -m 755 $(DIR_SRC)/config/guardian/guardian_unblock.sh /usr/local/bin/ chown nobody.nobody /var/ipfire/guardian chown nobody.nobody /var/ipfire/guardian/{guardian.conf,guardian.ignore} @$(POSTBUILD) -- 2.39.5