IPtables to control range of ports and IP
I know.. I know that Sunday is for total rest. But if you get time on Monday, then it can be useful.
Lets configure IPTables to block a range of ports as well as range of IP’s.
Here I am blocking port 20 and 21 for IP range 192.168.0.250 to 192.168.0.253.
iptables -A INPUT -p tcp –destination-port 20:21 -m iprange –src-range 192.168.0.250-192.168.0.253 -j REJECT
This will do the job.. but you are not forced to do it today i.e. on Sunday. 🙂
“Like” it, “share” it, “use” it
Here is the screenshot from my machine for this tip.
Do “like” the Network NUTS Facebook Page.