R.S.P Andre
(usa Debian)
Enviado em 28/04/2010 - 17:47h
No momento eu nao estou usando Proxy nao.
Minhas regras de firewall estao basicas ainda até eu resolver o problema pra dpois ir adicionando as regras.
as minhas regras por enquando são:
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
O meu squid.conf estava assim.
http_port 3128 transparent
visible_hostname Solutec
error_directory /usr/share/squid/errors/Portuguese
cache_mem 128 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 800 MB
minimum_object_size 2 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 4444048 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 10.2.3.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563 #News
acl Safe_ports port 21 #ftp
acl Safe_ports port 80 #http
acl Safe_ports port 443 563 #https News
acl Safe_ports port 70 #gopher
acl safe_ports port 210 #wais
acl Safe_ports port 280 #sei lá
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 # nao tenho ideia
acl Safe_ports port 1025-65535 #
acl Safe_ports port 25 #smtp
acl Safe_ports port 51413 #torrent
acl Safe_ports port 110 #pop
acl Safe_ports port 407 1863 5190 # msn
acl Safe_ports port 10000
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
acl redelocal src 10.2.3.0/24
############ Bloquando por Horario ############
#acl hora time 16:00-17:00
#http_access deny hora
###############################################
####### Autenticação #####
auth_param basic realm Solutec
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
#########################
acl malware_block_list url_regex -i "/etc/squid/malware"
http_access deny malware_block_list
########## Liberação de Atualização ##############
#acl repositorio url_regex "/etc/squid/repo"
#http_access allow repositorio
####################################################
################ IPs Liberados #####################
####################################################
acl diretoria src "/etc/squid/ip.diretoria" ##
####################################################
####################################################
####################################################
######## Autenticação de Usuários e ACL's ##########
####################################################
acl liberados proxy_auth solutec
##################################################
acl block proxy_auth loja
acl Sites url_regex -i "/etc/squid/sites.deny" ###########
acl Downloads url_regex -i "/etc/squid/downloads.deny" ##
acl Downloads.allow url_regex "/etc/squid/downloads.allow" ##
acl Palavras url_regex -i "/etc/squid/palavras.deny" ##
################ Fim da Autenticação #######################
##################### Regras das ACL's #####################
http_access allow diretoria
http_access allow liberados
http_access deny Sites
http_access deny Downloads
http_access deny Palavras
http_access allow Downloads.allow
http_access allow block
http_access allow localhost
http_access allow redelocal
http_access deny all
ABS