[wellylug] Blocking bad IPs from server
andrej at paradise.net.nz
andrej at paradise.net.nz
Fri Jan 26 11:39:13 NZDT 2007
Quoting John Durham <johndurh at spunge.org>:
> That is much clearer, thanks. Just one last question. My file (list) is
> called "badips.txt" so how can this syntax be used to refer to it?
Exactly like that, with the name of the file matching yours.
And most likely with using the fully qualified path...
for i in `cat /path/to/badips.txt`; do iptables -A INPUT -s $i -j DROP; done
More information about the wellylug
mailing list