
Here is a pretty fancy “trick” for the ones who wants to block certain parts of the world from accessing your VPS. first of all you need to know the netblocks for the country you want to block, this information…
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…