Re: [exim] finding subnet an ip belongs to ..?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: D Hill
Dátum:  
Címzett: exim-user
Tárgy: Re: [exim] finding subnet an ip belongs to ..?
On Fri, 28 Mar 2008 at 13:40 +0100, mrshunz@??? confabulated:

> Hi,
>
>> Hi my servers are getting spam from the ip's below (rbl's are not
>> catching them) how can I block the whole ip ranges that these ip's
>> belong to ? How do I figure out the netmask / Mask Bits .. All the
>> calculators I have found so far only work for class A,B and C networks ..
>
> you can use simply "whois"
>
> #whois 67.205.81.186
>
> returns:
>
> Groupe iWeb Technologies inc. IWEBGROUP (NET-67-205-64-0-1)
>                                  67.205.64.0 - 67.205.95.255
> K T Tran BODHOST-COM-CL-T039-480CN (NET-67-205-81-184-1)
>                                  67.205.81.184 - 67.205.81.191

>
> # ARIN WHOIS database, last updated 2008-03-27 19:10
> # Enter ? for additional hints on searching ARIN's WHOIS database.
>
> so use a calculator to find that it's 67.205.81.184/29


You can also find that out without a calculator by looking at the net
name:

%whois -a NET-67-205-81-184-1
...
NetRange:   67.205.81.184 - 67.205.81.191
CIDR:       67.205.81.184/29
...


-d