]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/guardian/guardian_unblock.sh
Merge branch 'master' into core41
[ipfire-2.x.git] / config / guardian / guardian_unblock.sh
index e0d3b5d4812093557cf8838bce4f0f9ca24a386f..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 GUARDIANINPUT -s $source -j DROP
+/sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP