]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/guardian/guardian_block.sh
tor: Update to 0.2.4.22.
[ipfire-2.x.git] / config / guardian / guardian_block.sh
index 0a44325f187755e5047d63a1105eb17f8fc1f3b7..a8331faaa1d2f9a5cb6869583128bef2db226a62 100644 (file)
@@ -2,10 +2,11 @@
 
 # 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>
+#  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 GUARDIANINPUT -s $source -j DROP
+/sbin/iptables -I GUARDIAN -s $source -i $interface -j DROP