вот конфиги.
squid.conf
Код: Выделить всё
#Recommended minimum configuration:
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 net src 10.0.0.0/8
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl friends proxy_auth REQUIRED
acl flash url_regex \.swf$
acl good_url url_regex "/etc/squid/acl/good_url"
acl bad_url url_regex "/etc/squid/acl/bad_url"
acl bad_urlpath urlpath_regex "/etc/squid/acl/bad_urlpath"
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
#
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow friends
http_access deny flash
http_access deny bad_urlpath !good_url
http_access deny bad_url !good_url
# And finally deny all other access to this proxy
http_access deny allbad_url:
Код: Выделить всё
^http://www.rambler.ru
^http://.*doubleclick
^http://.*-ad.flycast.com/server/img/
^http://1000.stars.ru/cgi-bin/1000.cgi
^http://1000.stars.ru/cgi-bin/1000.cgi
^http://12.16.1.10/~web_ani/
^http://porno.ru/
^http://www.porno.ru/Код: Выделить всё
bad_urlpath:
88x31.*gif
88x31.*GIF
100x80.*gif
100x80.*GIF
100x100.*gif
100x100.*GIF
120x60.*gif
120x60.*GIF
179x69.*gif
193x72.*gif
468x60.*gifв чем дело? ничего не режет и не запрещает!
помогите может каким другим способом настроить? измучился уже!
зы. поиском юзал ничего рабочего не нашел