I have a list of IPs that I want to block, so I made a script to use iptables to block them. The IP list is one IP per line and the file is named "newips". The script is named "ipblock.sh". Both are located in /home/oranges.
So I can the script by su'ing and then typed "sh /home/oranges/ipblock.sh", and the script runs, but for every IP on the list, I get this error:Code:#!/bin/bash
for IP in `cat /home/oranges/newips`; do iptables -A INPUT -s $IP -j DROP; done
(Replace ##.##.##.## with IP address).Code:' not found.3.5: host/network `##.##.##.##
Try `iptables -h' or 'iptables --help' for more information.
What could be the problem?

