[wellylug] Blocking bad IPs from server

andrej at paradise.net.nz andrej at paradise.net.nz
Fri Jan 26 08:54:25 NZDT 2007


Quoting John Durham <johndurh at spunge.org>:

> iptables -A INPUT -s IP-ADDRESS -j DROP

> This is limited to one IP at a time (apparently). The page then goes 
> from this to even more specific (limited) help. Having got the list 
> already, do you know if some variation of this could be used to apply
> it?
But this is Linux, my friend. :)

for i in `cat list-of-bad-ips`; do iptables -A INPUT -s $i -j DROP; done



Cheers,
Andrej




More information about the wellylug mailing list