Как при помощи Squid разрешить выкачивать из инета только одной машине, с конкретным IP, а остальным машинам в этой сети запретить выкачивать что либо вообще.
acl ... /here are all acls for your rest machines that can download files/ acl host src 192.168.x.x/255.255.255.255 acl badfiles urlpath_regex -i "/somewhere/on/your/hdd/badfiles" http_access allow ... http_access allow ... http_access deny badfiles http_access allow host /now all machines noted before "http_access deny badfiles" can download, machine noted as "host" can't. /now create a text file with regular expressions of file extensions, such as "*.mp3" and place them all in a column, i.e. each other below previous (each has its own row). Then the path noted as "acl badfiles ..." must point to file noted above.
acl ... /here are all acls for your rest machines that can download files/
acl host src 192.168.x.x/255.255.255.255
acl badfiles urlpath_regex -i "/somewhere/on/your/hdd/badfiles"
http_access allow ...
http_access allow ...
http_access deny badfiles
http_access allow host
/now all machines noted before "http_access deny badfiles" can download, machine noted as "host" can't.
/now create a text file with regular expressions of file extensions, such as "*.mp3" and place them all in a column, i.e. each other below previous (each has its own row).
Then the path noted as "acl badfiles ..." must point to file noted above.
Note that the "badfiles" text file must be like that:
\.mp3$
\.zip$
\.rar$
\.arj$
\.rm$
...
Note also the $ symbol ending each expression. You may try to use expressions without
that symbol, but whether the limitation will work w/o it?
You have to type in all the file extensions you want to be denied to be downloaded.
Sincerely, DooH[KDL]. dooh@islu.irk.ru