jacaretimao
(usa Outra)
Enviado em 14/05/2012 - 12:17h
Galera!
tb estou com um problema. Sou leigo no linux e estou configurando um servidor proxy, mas os sites que gostaria de bloquear continuam sendo acessados normalmente.
Abaixo segue meu squid.conf
http_port 3128
visible_hostname ecosystem-desktop
error_directory /usr/share/squid/errors/Portuguese/
cache_mem 1024 MB
maximum_object_size_in_memory 150 KB
maximum_object_size 700 MB
minimum_object_size 2 KB
cache_swap_low 90
cache_swap_high 95
#cache_dir ufs /var/spool/squid 10240 16 256
#cache_access_log /var/log/squid/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe-ports port 70 # gopher
acl Safe_ports port 210 # wais
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 Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#acl user1 src 192.168.0.202
#http_access allow user1
#acl user2 src 192.168.0.201
#http_access allow user2
#acl bloqueados url_regex -i "/etc/squid/bloqueados"
#http_access deny bloqueados
acl redelocal src 192.168.0.0/255.255.255.0
delay_pools 1
delay_class 1 2
delay_parameters 1 229376/229376 22937/22937
#delay_access 1 allow redelocal
#http_access allow localhost
#http_access allow redelocal
#http_access deny all
Vale ressaltar que estou usando o Squid 2.7 e tb já direcionei para a porta 3128 através do seguinte comando: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Desde já agradeço pela colaboração!