Re: [squid-users] ip client list

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 12 Nov 2008 13:35:29 +1300 (NZDT)

> how to put IP group
> like acl chatting url_regex -i "/etc/squid/domain.txt"
> for domain list
>
> how about client ip ?
> i mean like this :
>
> acl full src 192.168.1.1
> acl full src 192.168.1.5
> acl chatonly src 192.168.1.3
>
> put on one file like full.txt and chat.txt
> so the squid.conf is more simple

Three ways:

squid.conf:
  acl full src "/etc/squid/full_ips.txt"

full_ips.txt:
  192.168.1.1
  192.168.1.5
  ...

OR:
squid.conf:
  acl full src 192.168.1.0/24

OR (2.7+, 3.0+):
squid.conf:
  ... basic restrictions
  include "/etc/squid/full_ips.conf
  ... chat restrictions...

full_ips.conf:
  acl full src 192.168.1.1
  acl full src 192.168.1.5
  http_access allow full

>
>
> --
> -=-=-=-=
>
Received on Wed Nov 12 2008 - 00:35:36 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 12 2008 - 12:00:03 MST