Re: [squid-users] how to use req_mime_type tag to restrict File Upload

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 18 Aug 2006 16:30:10 +0200

On Fri, 2006-08-18 at 18:09 +0530, updatemyself . wrote:
> is this correct?
> http://www.squid-cache.org/mail-archive/squid-users/200508/0503.html
>
> i tried this way but its also not working
> even squid fail to restart properly..
>
> -----------------------------------------------------
> acl my_net src 10.0.0.1/255.255.255.0
> acl USERA src 10.0.0.1/255.255.255.255
> acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}
> acl UPMETH method post
> http_access deny USERA UPMETH UPLIMIT
> http_access allow my_net
> http_access deny_all
> ---------------------------------------------------

Should work.

Do you have any other http_access allow rules?

And was your source IP 10.0.0.1 when testing this? (see access.log to
confirm..)

The first acl is slightly wrong. Should be 10.0.0.0/... but you should
have noticed that already.

any other complaints from "squid -k parse"?

Regards
Henrik
Received on Fri Aug 18 2006 - 08:29:17 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT