]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/guardian/guardian_unblock.sh
Merge branch 'next' of ssh://arne_f@git.ipfire.org/pub/git/ipfire-2.x into next
[people/pmueller/ipfire-2.x.git] / config / guardian / guardian_unblock.sh
1 #!/bin/sh
2
3 # this is a sample unblock script for guardian. This should work with ipchains.
4 # This command gets called by guardian as such:
5 # unblock.sh <source_ip> <interface>
6 # and the script will issue a command to remove the block that was created with # block.sh address.
7 source=$1
8 interface=$2
9
10 /sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP