LINUX.ORG.RU
ФорумAdmin

Squid+Get


0

0

Как при помощи Squid разрешить выкачивать из инета только одной машине, с конкретным IP, а остальным машинам в этой сети запретить выкачивать что либо вообще.

anonymous

термин "выкачивать" в данном случае не совсем ясен в общем случае:

acl single src 10.10.10.2/255.255.255.255 http_access allow single http_access deny all

keepver
()
Ответ на: комментарий от keepver

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.

anonymous
()
Ответ на: комментарий от keepver

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.

anonymous
()

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

anonymous
()

Если можно, то
поподробней

Ничего не понял

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.