]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian: Drop bash scripts.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 1 Jun 2014 13:50:02 +0000 (15:50 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Jun 2014 09:18:47 +0000 (11:18 +0200)
The guardianctrl binary will replace them.

config/guardian/guardian_block.sh [deleted file]
config/guardian/guardian_unblock.sh [deleted file]
lfs/guardian

diff --git a/config/guardian/guardian_block.sh b/config/guardian/guardian_block.sh
deleted file mode 100644 (file)
index a8331fa..0000000
+++ /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 <source_ip> <interface>
-# 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 (file)
index 315d771..0000000
+++ /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 <source_ip> <interface>
-# 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
index a91fbd9ab0a35dc029808c5b3a697f207dc0c785..c469dde325167872e9c623fc7f855211ac969689 100644 (file)
@@ -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)