A question was asked over at www.lowendtalk.com on how to add ip addresses to iptables from a textfile. AnthonySmith found a simple but still effective way to solve this. The entry that were discussed was
1 2 |
iptables -A INPUT -s XXX.XXX.XXX.XXX -p udp -m udp --dport 28960:28965 -j DROP |
Let’s break it all…