Re: quick 'acl' question ...

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 12 Oct 1999 19:25:05 +0200

Marc G. Fournier wrote:

> We have a B-class network broken in half...bottom half is subnet'd as
> 255.255.255.0, top half is 255.255.248.0?
>
> How do I represent this for the ACLs?

With any mask you want. For Squid it does not matter how the networks is
subnetted, only what IP addresses matches it's definitions. What you
select as netmasks in Squid's configuration is what you consider
convenient when making the configuration.

Examples if possible ACL values for different purposes or styles:
whole B-class network: 31.162.0.0/16
a single lower half subnet: 31.162.45.0/24
a single upper half subnet: 31.162.208.0/21
a single host: 31.162.96.45/32
a range of hosts: 31.162.96.45-31.162.96.80/32
a range of subnets: 31.162.55.0-31.168.87.0/24
every host in the B-class network: 31.162.0.0-31.162.255.255/32

--
Henrik Nordstrom
Squid hacker
Received on Tue Oct 12 1999 - 12:39:26 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:48:47 MST