Hi,
I have a text file of IP addresses, one IP address on each line, that i would like to ban in iptables.
Can anyone kindly advise of a simple, but robust, script to read a text file line by line and put its contents in a variable so that I can do a drop on each offender:
Code:
iptables -A INPUT -s $IP_ADDRESS_FROM_FILE -j DROP
Thanks in advance!