List Info

Thread: Re: How specify range IP?




Re: How specify range IP?
country flaguser name
Norway
2008-05-23 08:34:09
  
--- Original Message ---  
From: Mike Tancsa <mikesentex.net>  
To: "Vitaliy Vladimirovich" <artemrtsukr.net>, freebsd-pffreebsd.org  
Date: 23 may, 16:07:12  
Subject: Re: How specify range IP?  
  
  At 07:24 AM 5/23/2008, Vitaliy Vladimirovich wrote:  
  
>Hi,all!  
>I need specify a range IP addresses in may
spamd-whitelist table,  
>e.g. 209.85.128.0-209.85.255.255.  
>How can I do this correctly?  
  
Hi,  
Try in CIDR notation. e.g. 209.85.128.0/17    
I know about CIDR notation, and what about if I need specify
something similary 10.0.10.1-10.0.10.8??  
  
_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

Re: How specify range IP?
user name
2008-05-23 09:20:12
At 09:34 AM 5/23/2008, Vitaliy Vladimirovich wrote:

>Hi,
>Try in CIDR notation. e.g. 209.85.128.0/17
>
>
>I know about CIDR notation, and what about if I need
specify 
>something similary 10.0.10.1-10.0.10.8??

I usually do it in a series of CIDR notations when it does
not match 
normal boundaries.  I know on ports you have range operators
(see 
pf.conf) but I am not sure there is the equiv for IP
addresses.  Is 
there some reason you dont want to use CIDR notation ? in
your case,

(10.0.10.0/29,10.0.10.8)

         ---Mike

_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

Re: Re: How specify range IP?
country flaguser name
United Kingdom
2008-05-23 09:21:03
On Fri, 2008-05-23 at 16:34 +0300, Vitaliy Vladimirovich
wrote:
> 
> --- Original Message ---  
> From: Mike Tancsa <mikesentex.net>  
> To: "Vitaliy Vladimirovich" <artemrtsukr.net>, freebsd-pffreebsd.org  
> Date: 23 may, 16:07:12  
> Subject: Re: How specify range IP?  
>   
>   At 07:24 AM 5/23/2008, Vitaliy Vladimirovich wrote: 

>   
> >Hi,all!  
> >I need specify a range IP addresses in may
spamd-whitelist table,  
> >e.g. 209.85.128.0-209.85.255.255.  
> >How can I do this correctly?  
>   
> Hi,  
> Try in CIDR notation. e.g. 209.85.128.0/17    
> I know about CIDR notation, and what about if I need
specify something similary 10.0.10.1-10.0.10.8??  
>   

10.0.10.1 - 10.0.10.8 can't be represented as a single CIDR
range,
therefore you would need to specify multiple addresses to
represent it
in CIDR notation. It would therefore be the combination of
the 4 ranges

10.0.10.1/32
10.0.10.2/31
10.0.10.4/30
10.0.10.8/32

10.0.10.0 - 10.0.10.7 can be represented as the single
range
10.0.10.0/29

Tom
Re: How specify range IP?
country flaguser name
Czech Republic
2008-05-23 09:45:06
Vitaliy Vladimirovich wrote:
>   
> --- Original Message ---  

>>Hi,all!  
>>I need specify a range IP addresses in may
spamd-whitelist table,  
>>e.g. 209.85.128.0-209.85.255.255.  
>>How can I do this correctly?  
> 
>   
> Hi,  
> Try in CIDR notation. e.g. 209.85.128.0/17    
> I know about CIDR notation, and what about if I need
specify something similary 10.0.10.1-10.0.10.8??  

You can use net/tableutil from ports to convert your ranges
in to CIDR.
http://www.freebsd.org/cgi/url.cgi?ports/net/tab
leutil/pkg-descr
http://expiretable.fnord
.se/

Miroslav Lachman
_______________________________________________
freebsd-pffreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to
"freebsd-pf-unsubscribefreebsd.org"

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )