]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - config/guardian/guardian_block.sh
Merge branch 'master' of ssh://earl@git.ipfire.org/pub/git/ipfire-2.x
[people/teissler/ipfire-2.x.git] / config / guardian / guardian_block.sh
CommitLineData
7c4cc0d8
CS
1#!/bin/sh
2
3# this is a sample block script for guardian. This should work with ipchains.
4# This command gets called by guardian as such:
fb30e20c 5# guardian_block.sh <source_ip>
7c4cc0d8
CS
6# and the script will issue a command to block all traffic from that source ip
7# address. The logic of weither or not it is safe to block that address is
8# done inside guardian itself.
9source=$1
7c4cc0d8 10
bef4096f 11/sbin/iptables -I GUARDIANINPUT -s $source -j DROP