FastNetMon

Wednesday 17 March 2010

Простой скрипт для бана IP

vi /usr/bin/ban_ip.sh


#!/bin/sh

iptables -I INPUT -p tcp -s $1 --dport 80 -j DROP



chmod +x /usr/bin/ban_ip.sh




ban_ip.sh 11.22.33.44

No comments :

Post a Comment

Note: only a member of this blog may post a comment.