Re: [squid-users] IP range in src ACL

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 9 Sep 2002 20:37:27 +0200

shihaya@matavnet.hu wrote:
> Hi!
>
> A have 2 computer labs, one with static IP 192.168.10.30-
> 192.168.10.45, another 192.168.10.50-192.168.10.65.
>
> I'd like forbid internet use in labor1 monday 10-12 AM.
>
> I tried:
>
> acl labor1 src 192.168.10.30-192.168.10.45/255.255.255.0

Here you want

acl labor1 src 192.168.10.30-192.168.10.45

or alternatively one of
acl labor1 src 192.168.10.30-192.168.10.45/32
acl labor1 src 192.168.10.30-192.168.10.45/255.255.255.255

IP ranges and netmasks do not generally mix well.. only case where you can mix
them is if you want to make a range of whole networks.

Regards
Henrik
Received on Mon Sep 09 2002 - 12:37:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:10 MST