yes, pf for newbies... sorry
Bulk
bulk at szmidt.org
Thu Nov 30 14:12:47 PST 2006
On Thursday 30 November 2006 17:03, Daniel T. Staal wrote:
> On Thu, November 30, 2006 4:34 pm, Vim Visual said:
> > Hi,
> >
> > ahem... I am starting to play around with pf and I am trying to figure
> > out how my internal interface and external interface are called... I
> > mean dhcp and the private IP address...
> >
> > I am using this by now:
> >
> > ext_if="fxp1" #the external interface
> > int_if="fxp0" #the internal interface
> > internal_net="192.138.3.100/150"
>
> Um, that number after the '/' is the number of bits in the bitmask that
> are _not_ allowed to vary. Assuming you meant the address range
> 192.138.3.100 to 192.138.3.150, the closest bitmask would be /26. (Which
> actually allows the range up to 192.138.3.162.)
>
> Daniel T. Staal
What you are running into are bit masks. Rather than listing them out for you
it would be easier if you googled for a subnet calculator. Then you would see
what ranges and options you have. Basically if you start with 256 and divide
it in half and keep on going you'll see which ranges are available and with
the calculator you'll see what mask that is.
You cannot pick a number like 100 and start a subnet on it. It must be on the
border of 2,4,8,16,32 etc, starting at 0. 96 is the number closest to 100 for
any larger range of IP's.
--
Bulk
More information about the Openbsd-newbies
mailing list