]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/guardian/guardian_unblock.sh
daq: update to 2.0.1.
[people/teissler/ipfire-2.x.git] / config / guardian / guardian_unblock.sh
index 5e0b379037d82ff7b060d9ee1ff4d95c648d3496..315d77195117084e535d365936f4a69f3ca902d0 100644 (file)
@@ -2,8 +2,9 @@
 
 # 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>
+#  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 INPUT -s $source -j DROP
+/sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP