]> git.ipfire.org Git - ipfire-2.x.git/blame - config/guardian/guardian_unblock.sh
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
[ipfire-2.x.git] / config / guardian / guardian_unblock.sh
CommitLineData
7c4cc0d8
CS
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:
fb30e20c 5# unblock.sh <source_ip>
7c4cc0d8
CS
6# and the script will issue a command to remove the block that was created with # block.sh address.
7source=$1
7c4cc0d8 8
fb30e20c 9/sbin/iptables -D INPUT -s $source -j DROP