[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IP range in pf.conf table.



--On 12 April 2005 19:43 -0400, Nick Holland wrote:

Jason Crawford wrote:
Is there a way to list a range of IP addresses (not in CIDR format)
in a table in pf.conf for OpenBSD 3.6? The only way to specify a
range that I saw in the man page was in CIDR format, however
192.168.10.100 - 192.168.10.199 isn't a valid range in CIDR format.

It's often worth remembering the boundaries when you allocate IP addresses, even if you have no intention of actually subnetting, it can make it a lot easier to set filter policies.


A sick and convoluted way...
  ...100/30   (100-103)
  ...104/29   (104-111)
  ...112/28   (112-127)
  ...128/26   (128-191)
  ...192/29   (192-199)

but, only five entries... :)

Or you can insert the output of "jot -w'192.168.1.%d, \' 100 100" if you want to avoid both typing and binary (:




Visit your host, monkey.org