« Not a single line of code in 4 days | Main | Hold the Button - Don't Waste Your Time »

May 10, 2004

Using CIDR Notation for Netmask

Today I'm writing a script to generate firewall config files for a handful of servers that fall into a few functionality groups (each requiring a specific set of rules). ipf, which seems to be the Solaris firewall package of the day, accepts both CIDR notation as well as dotted decimal for specifying the netmask. We use CIDR, makes for a more readable conf file. Thought I'd dig up some documentation for reference when making changes to the rules.

A.B.C.D - host (/32)
A.B.C   - class C (/24)
A.B     - class B (/16)
A       - class A (/8)

Gaurdian Digital covers it in more depth.

Posted by mike at May 10, 2004 1:50 PM