Files
bpfire/config/guardian/guardian_block.sh
maniacikarus fb30e20c5b Guardian spielt jetzt auch SSH-Watch 3mal falsches PW und dann gibts ein block
Guardian blockt jetzt auf allen interfaces die IP


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@727 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-07-31 17:19:06 +00:00

12 lines
410 B
Bash

#!/bin/sh
# this is a sample block script for guardian. This should work with ipchains.
# This command gets called by guardian as such:
# guardian_block.sh <source_ip>
# and the script will issue a command to block all traffic from that source ip
# address. The logic of weither or not it is safe to block that address is
# done inside guardian itself.
source=$1
/sbin/iptables -I INPUT -s $source -j DROP