douglaspires83
(usa Debian)
Enviado em 06/09/2010 - 17:25h
ola amigos, estou enfrentando alguns problemas com o squid no meu servidor.
o PC tem a seguinte conf. CPU Core 2 Duo 2.93, MEM 8Gb Corsair, HD 320 Gb,
placa mae ASUS, esta com Debian 5.0 instalado e squid 2.7 STABLE3.
o problema é o seguinte estou fazendo um teste, o servidor proxy recebe a internet na eth0 e envia para eth1, um link de 2 MB, se eu ligar o pc na rede sem passar pelo o servidor, vai tudo bem, mas se ligar no servidor proxy fica lento, tipo demora para abrir a pegina, mas depois abre tudo de uma vez a pagina solicitada, alguem ja passou por isso(creio que sim).
vou postar o squid.conf.
notem que usei as blacklist para bloquear para bloquear sites, nao quis usar o dansguardian e nem o squidguard, sera que é por isso que esta deixando lento, eu dei uma enxugada nas listas, nao uso todas, e se for isso qual a melhor solução pra usar o proxy ?
================================================== =======
http_port 3128
#http_port 3128 transparent
visible_hostname control-server
error_directory /usr/share/squid/errors/Portuguese/
cache_mem 256 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 128 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 8192 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 suporte src 192.168.0.19
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 10000
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
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
#http_access allow suporte
acl palavras_proibidas dstdom_regex "/etc/squid/palavras_proibidas"
http_access deny palavras_proibidas
acl sites_bloqueados url_regex -i "/etc/squid/sites_bloqueados"
http_access deny sites_bloqueados
####listas BL
acl BL_porn_urls url_regex -i "/etc/squid/BL/
[*****]/urls"
http_access deny BL_porn_urls
acl BL_spyware_domains url_regex -i "/etc/squid/BL/spyware/domains"
http_access deny BL_spyware_domains
acl BL_spyware_urls url_regex -i "/etc/squid/BL/spyware/urls"
http_access deny BL_spyware_urls
acl BL_socialnet_domains url_regex -i "/etc/squid/BL/socialnet/domains"
http_access deny BL_socialnet_domains
acl BL_socialnet_urls url_regex -i "/etc/squid/BL/socialnet/urls"
http_access deny BL_socialnet_urls
##acl BL_sex_urls url_regex -i "/etc/squid/BL/sex/lingerie/urls"
##http_access deny BL_sex_urls
##acl BL_warez_domains url_regex -i "/etc/squid/BL/warez/domains"
##http_access deny BL_warez_domains
##acl BL_warez_urls url_regex -i "/etc/squid/BL/warez/urls"
##http_access deny BL_warez_urls
##acl BL_webtv_urls url_regex -i "/etc/squid/BL/webtv/urls"
##http_access deny BL_webtv_urls
##acl BL_webradio_urls url_regex -i "/etc/squid/BL/webradio/urls"
##http_access deny BL_webradio_urls
##acl BL_tracker_urls url_regex -i "/etc/squid/BL/tracker/urls"
##http_access deny BL_tracker_urls
#acl BL_podcasts_urls url_regex -i "/etc/squid/BL/podcasts/urls"
#http_access deny BL_podcasts_urls
##acl BL_ringtones_urls url_regex -i "/etc/squid/BL/ringtones/urls"
##http_access deny BL_ringtones_urls
#acl BL_radiotv_urls url_regex -i "/etc/squid/BL/radiotv/urls"
#http_access deny BL_radiotv_urls
##acl BL_movies_urls url_regex -i "/etc/squid/BL/movies/urls"
##http_access deny BL_movies_urls
#acl BL_music_urls url_regex -i "/etc/squid/BL/music/urls"
#http_access deny BL_music_urls
#acl BL_hacking_urls url_regex -i "/etc/squid/BL/hacking/urls"
#http_access deny BL_hacking_urls
acl BL_downloads_urls url_regex -i "/etc/squid/BL/downloads/urls"
http_access deny BL_downloads_urls
##acl BL_chat_urls url_regex -i "/etc/squid/BL/chat/urls"
##http_access deny BL_chat_urls
#acl BL_violence_urls url_regex -i "/etc/squid/BL/violence/urls"
#http_access deny BL_violence_urls
#acl BL_aggressive_urls url_regex -i "/etc/squid/BL/aggressive/urls"
#http_access deny BL_aggressive_urls
#acl BL_webphone_urls url_regex -i "/etc/squid/BL/webphone/urls"
#http_access deny BL_webphone_urls
#acl BL_drugs_urls url_regex -i "/etc/squid/BL/drugs/urls"
#http_access deny BL_drugs_urls
####Listas BL Fim
####Listas blacklists
acl blacklists_porn_urls url_regex -i "/etc/squid/blacklists/
[*****]/urls"
http_access deny blacklists_porn_urls
acl blacklists_warez_urls url_regex -i "/etc/squid/blacklists/warez/urls"
http_access deny blacklists_warez_urls
acl blacklists_spyware_urls url_regex -i "/etc/squid/blacklists/spyware/urls"
http_access deny blacklists_spyware_urls
#acl blacklists_audio-video_urls url_regex -i "/etc/squid/blacklists/audio-video/urls"
#http_access deny blacklists_audio-video_urls
acl blacklists_proxy_domains url_regex -i "/etc/squid/blacklists/proxy/domains"
http_access deny blacklists_proxy_domains
#acl blacklists_violence_urls url_regex -i "/etc/squid/blacklists/violence/urls"
#http_access deny blacklists_violence_urls
#acl blacklists_drugs_urls url_regex -i "/etc/squid/blacklists/drugs/urls"
#http_access deny blacklists_drugs_urls
#acl blacklists_aggressive_urls url_regex -i "/etc/squid/blacklists/aggressive/urls"
#http_access deny blacklists_aggressive_urls
#acl blacklists_hacking_urls url_regex -i "/etc/squid/blacklists/hacking/urls"
#http_access deny blacklists_hacking_urls
####Listas blacklists Fim
acl ext_proibida url_regex -i "/etc/squid/ext_proibida"
http_access deny ext_proibida
acl redelocal src 192.168.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all