]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - config/guardian/guardian_unblock.sh
daq: update to 2.0.1.
[people/teissler/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:
057249ba 5# unblock.sh <source_ip> <interface>
7c4cc0d8
CS
6# and the script will issue a command to remove the block that was created with # block.sh address.
7source=$1
057249ba 8interface=$2
7c4cc0d8 9
057249ba 10/sbin/iptables -D GUARDIAN -s $source -i $interface -j DROP