I have no idear what your file looks like, but you can't make a file input to your iptables command, you need to issue the DROP on each IP, if theres one IP per line in that file, something like this might work:Code:for IP in `cat /root/sample`; do iptables -A INPUT -s $IP -j DROP done


Reply With Quote

Bookmarks