r***@gmail.com
2007-01-29 10:49:06 UTC
Witam!
Posiadam na bramie squida 2.5. Chcę zablokować dostęp do kilku
stron.
Problem: strony (wg. niżej wklejonej konfiguracji) nie otwierają sie
na samej bramce, zaś proxy pozwala na łączenie się z "blokowaną
www" pozostałym hostą :(
Prośba: Czy mogłby mnie ktoś nakierować co powinienem zmienić,
gdzie popełniłem błąd ?
Sieć:
dhcp, brama, proxy: 192.168.1.2
lan: 192.168.1.3 - 192.168.1.255
---------------- squid.conf ---------------------
#-transparentne-proxy--------
http_port 5555
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#-end-transparentne-proxy-----
cache_mem 23 MB
cache_dir ufs /var/cache/squid 100 16 256
cache_access_log /var/log/squid/access.log
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 192.168.1.0/255.255.255.0
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 280 488 591 777 1025-65535
acl CONNECT method CONNECT
acl QUERY urlpath_regex cgi-bin \?
#blokowanie stron
acl blokowane url_regex "/etc/squid/deny.txt"
acl praca_time time 08:00-21:00
http_access deny blokowane praca_time
http_access deny blokowane !praca_time
#http_access allow blokowane !praca_time
#----------------
no_cache deny QUERY
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
announce_period 1 hour
httpd_accel_single_host on
----------EnD squid.conf -----------------------
Posiadam na bramie squida 2.5. Chcę zablokować dostęp do kilku
stron.
Problem: strony (wg. niżej wklejonej konfiguracji) nie otwierają sie
na samej bramce, zaś proxy pozwala na łączenie się z "blokowaną
www" pozostałym hostą :(
Prośba: Czy mogłby mnie ktoś nakierować co powinienem zmienić,
gdzie popełniłem błąd ?
Sieć:
dhcp, brama, proxy: 192.168.1.2
lan: 192.168.1.3 - 192.168.1.255
---------------- squid.conf ---------------------
#-transparentne-proxy--------
http_port 5555
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#-end-transparentne-proxy-----
cache_mem 23 MB
cache_dir ufs /var/cache/squid 100 16 256
cache_access_log /var/log/squid/access.log
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 192.168.1.0/255.255.255.0
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 280 488 591 777 1025-65535
acl CONNECT method CONNECT
acl QUERY urlpath_regex cgi-bin \?
#blokowanie stron
acl blokowane url_regex "/etc/squid/deny.txt"
acl praca_time time 08:00-21:00
http_access deny blokowane praca_time
http_access deny blokowane !praca_time
#http_access allow blokowane !praca_time
#----------------
no_cache deny QUERY
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
announce_period 1 hour
httpd_accel_single_host on
----------EnD squid.conf -----------------------