wmendes
(usa Ubuntu)
Enviado em 08/07/2013 - 08:38h
Brother deu certo, o problema era que aqui na empresa o ip do servidor havia alguns bloqueios nele, ai liberei tudo pra esse ip, pra que ele conseguisse acessar qualquer site!
Mas tai o squid.conf pra vc dar uma olhada! vlw a ajuda!
http_port 3128
visible_hostname *****
#Autenticacao
auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/squid_passwd
auth_param basic childrem 10
auth_param basic realm Autentieu-se para acessar a Internet
auth_param basic credentialsttl 4 hours
auth_param basic casesensitive off
### Controles de Acesso (ACL) ###
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
#acl rede src 192.168.1.0/255.255.255.0 # ativar tira a autenticao
acl autenticados proxy_auth REQUIRED
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 # htp-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
acl negados url_regex -i "/etc/squid3/negados"
acl liberados url_regex "/etc/squid3/liberados"
acl downloads urlpath_regex \.avi$ \.avi? \.rmvb$ \.rmvb? \.mp3$ \.mp3? \.mp4$ \.mp4? \.apk$ \.apk? \.apk$ \.apk? \.rar$ \.rar?
acl ip_liberado src 192.168.1.12
## HTTP_ACCESS ##
http_access allow manager localhost
#http_access allow rede
http_access deny manager
#http_access allow Safe_ports
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny negados !ip_liberado !liberados
http_access deny downloads
http_access allow autenticados
### Configuracoes Gerais ###
cache_mem 1024 MB
maximum_object_size_in_memory 256 KB
maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85
cache_dir ufs /var/spool/squid3 102400 16 256
cache_access_log /var/log/squid3/access.log squid
cache_mgr suportetipac@uniaqhonda.com.br
#Tempos de vida dos objetos no cache
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
error_directory /usr/share/squid3/errors/pt-br
# Cache WSUS
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern msgruser.dlservice.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|msi) 10080 100% 43200 reload-into-ims