Marc Corel wrote:
> 
> Hi,
> I know I should do:
> ipfwadm -F -p deny
> ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
> (if I want Internet access to all nodes of my local network adress
> 192.168.1.0)..
> But..what does  the "24" number meanning??

Netmask 255.255.255.0 (hint: count the bits)

> Same question for 2 of my terminals to which I allow internet access:
> ipfwadm -F -a m -S 192.168.1.6/32  -D 0.0.0.0/0
> ipfwadm -F -a m -S 192.168.1.8/32  -D 0.0.0.0/0
> (what is the number 32 ..for??)

Netmask 255.255.255.255

/24, /32, etc. are shorthand for the old netmask style. This
works because the netmask *has* to be a continuous set of bits.
255.254.255.0 would never make sense as a netmask. So why not
just count the number of bits and use 3 characters instead of 15.

-Rob
-- 
Rob Riggs                        Devil's Thumb Entertainment
Network Administrator            Boulder, CO - (303) 938-1200
[EMAIL PROTECTED]              http://www.DevilsThumb.COM/~rob
"The notion of errors is ill-defined." - IRIX 'netstat' man page
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to