[squid-users] acl HeLp Please

From: Garry Byrne <garry@dont-contact.us>
Date: Thu, 17 Jan 2002 17:43:52 +1100

Hi all,

I am trying to force clients that use my proxy to upgrade there dial up
settings.

What I have done in the past was to remove clients ip range from acl and
then allow access to a certain url which provides info on the upgrade
details. I then put in a <META HTTP-EQUIV="Refresh"
CONTENT=0;URL=http://www.myserver.xxx.xx/upgrade> in the ERR_ACCESS_DENIED
file so they are redirect to the info.
This has worked in the past but obviously not with the same settings I am
trying to use now as I can't get it to work.

Advice appreciated

Thanks
Garry

#Default:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT

#my rules
acl hwy src 210.10.124.0/24 removed.clients.ip.range
acl hwyweb url_regex ^http://www.myserver.xxx.xx/upgrade.htm

#Default configuration:
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

# My rules
#
http_access allow hwy
http_access allow upgrade
http_access deny all
Received on Wed Jan 16 2002 - 23:44:11 MST

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