[Ilugc] help regarding to configure a Squid.

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Thu Aug 17 00:05:50 2006

On 8/16/06, Siva Prakash <linux.siva@xxxxxxxxx> wrote:

i have newly configured a Squid proxy for my network. i am using a Fedora 5
server. and all of my LAN PCs are RHEL and fedora.

I have always found SquidGuard to be a fast and flexible way to manage
acls in Squid.  I highly recommend using it over the default acl features
that squid provides you.


acl managers src 192.168.0.1-192.168.0.99/255.255.255.255
acl employees src 192.168.0.100-192.168.0.200/255.255.255.255
acl mornings time 08:00-12:00
acl night time 20:00-22:00

http_access allow managers
http_access allow employees mornings night

1) when i put 192.168.0.1-192.168.0.99/24, it is shown an error.
   one of my friend suggested me to put /255.255.255.255 instead of
/24,after that my problem got solved.
   i want to know what is the difference? and why /24 settings not working?
(he also doesn't know WHY)


Try /32 and it should work fine.  Or better, remove the /foo bit and it should
work again.

You can only specify IP ranges two ways:
    1. start_ip-end_ip (eg. 192.168.0.1-192.168.0.99)
    2. ipaddress/netmask (eg. 192.168.0.0/24)

I'm not sure if you use a comma separated list of IP addresses.

If you are using (1), start and end IP must be a single address and cannot
match a entire subnet or multiple IPs.  Using the CIDR mask /24 means the
entire 192.168.0.x subnet.  Note that a netmask of 255.255.255 and it's
equivalent /32 CIDR notation match a single IP address.


when i post this message, my squid server's time is 5:10 PM. but in the
client's error page it shows 11:40 AM GMT (is it UTC?)

Do the following:
    1. ensure that your hardware clock is set to UTC (GMT)
    2. set your timezone appropriately -- Asia/Calcutta should be fine
    3. run "ntpdate pool.ntp.org" hourly to ensure that the system time is
        is always in sync
    4. ensure that the "date" command returns the correct local time
    5. restart squid

- Raja

Other related posts: