Quote:
Originally posted by Lleb_KCir
ok, really blonde question here, what is the netrange, and how can i block that?
|
Netrange ?
Do you mean this "NetRange: 216.73.80.0 - 216.73.95.255"
If yes, this is the set of ips that belong to doubleclick.net according to ARIN
You can block all of them by figuring out what CIDR these ips correspond to.
In this case you don't need to figure it because it is given
CIDR: 216.73.80.0/20
So, if you block 216.73.80.0/20 you essentially block all these ips, that is why i mentioned this rule
"iptables -A CUSTOMINPUT -s 216.73.80.0/20 -j REJECT"
When you drop a packet, then this is it. it is denied and nothing else happens.
When you reject a packet then you send a reply back (usually icmp but you can choose what you want)
to the sender.
So, for example if i do "iptables -A INPUT -p tcp --dport 22 -j DROP"
it will drop all packets and so one who is portscanning will now that my firewall is cutting this port
if i do "iptables -A INPUT -p tcp --dport 22 -j REJECT" then this port will show as it is closed
and whoever is portscanning will not know that i have ssh running on this port.
There are other things, but i try to explain it simply.
If you check the iptables manpage or
http://iptables-tutorial.frozentux.net it describes this and many more things.