• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] problem with SQUID acl, help

4akal

Newbie
Hi,

I wrote below access control list in squıid proxy server config file but it did not work when i had tried to download a video or audio files, i could download them. I can't find where the problem is. could you send me the solving of that problem please?

Thanks in advance.

##### Downloads
acl download Rely_MIME_Type ^.*video.*
acl download Rely_MIME_Type ^.*audio.*

##Proxy Restriction
http_access deny download
 

framp

Moderator
Teammitglied
I don't know of any rely_mime_type control statement in squid.

Looks like you want to use
Code:
 acl aclname rep_mime_type mime-type1 ...

# regex match against the mime type of the reply recieved by
# squid. Can be used to detect file download or some
# types HTTP tunelling requests.
# NOTE: This has no effect in http_access rules. It only has
# effect in rules that affect the reply data stream such as
# http_reply_access.
 
OP
4

4akal

Newbie
Thanks it works

framp schrieb:
I done know of any rely_mime_type control statement in squid.

Looks like you want to use
Code:
 acl aclname rep_mime_type mime-type1 ...

# regex match against the mime type of the reply recieved by
# squid. Can be used to detect file download or some
# types HTTP tunelling requests.
# NOTE: This has no effect in http_access rules. It only has
# effect in rules that affect the reply data stream such as
# http_reply_access.
 
Oben