leogoss
(usa Ubuntu)
Enviado em 10/02/2012 - 14:02h
Consegui com a ajuda deste topico resolver e trancar o https, mas nao estou conseguindo liberar o smtp na porta 587 (pois o pessoal aqui so envia emails o recebimento é em outra maquina que nao passa pelo squid), nem sei se é no squid.conf, desculpa, sou nooooobbbb.
Estou usando ubuntu e nao estou com firewall
Segue o meu squid.conf
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 16 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 512 16 256
cache_access_log /var/log/squid3/access.log
visible_hostname xxxxx
ftp_user xxxx@xxxx.com.br
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl manager proto cache_object
http_access deny manager
acl to_localhost dst 127.0.0.0/8
acl redelocal src 192.168.0.0/23
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl SSL_ports port 443 21 # https
acl Safe_ports port 20 # ftp-data
acl Safe_ports port 21 # ftp
acl Safe_ports port 587 25 # smtp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 110 # pop3
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 8443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 2631 # Conectividade Social
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 8070 # DIMEP - controle de ponto
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
always_direct allow all
http_access deny CONNECT !Safe_ports
http_access deny to_localhost
################# Acesso ipsliberados #################
acl ips_liberados src "/etc/squid3/ips_liberados"
http_access allow ips_liberados
################# Acesso email #################
acl acessoemail src "/etc/squid3/acessoemail"
acl sitesemail url_regex -i "/etc/squid3/sitesemail"
http_access allow acessoemail sitesemail
################# Acesso contabil #################
acl ipscontabil src "/etc/squid3/ipscontabil"
acl contabil dstdomain "/etc/squid3/contabil"
http_access allow ipscontabil contabil
################# Acesso rh #################
acl ipsrh src "/etc/squid3/ipsrh"
acl rh dstdomain "/etc/squid3/rh"
http_access allow ipsrh rh
################# Acesso diretoria #################
acl ipsdiretoria src "/etc/squid3/ipsdiretoria"
acl diretoria dstdomain "/etc/squid3/diretoria"
http_access allow ipsdiretoria diretoria
################# Acesso mkt #################
acl ipsmkt src "/etc/squid3/ipsmkt"
acl mkt dstdomain "/etc/squid3/mkt"
http_access allow ipsmkt mkt
################# Acesso planejamento #################
acl ipsplanejamento src "/etc/squid3/ipsplanejamento"
acl planejamento dstdomain "/etc/squid3/planejamento"
http_access allow ipsplanejamento planejamento
################# Acesso qualidade #################
acl ipsqualidade src "/etc/squid3/ipsqualidade"
acl qualidade dstdomain "/etc/squid3/qualidade"
http_access allow ipsqualidade qualidade
################# Acesso televendas #################
acl ipstelevendas src "/etc/squid3/ipstelevendas"
acl televendas dstdomain "/etc/squid3/televendas"
http_access allow ipstelevendas televendas
################# Acesso vendas #################
acl ipsvendas src "/etc/squid3/ipsvendas"
acl vendas dstdomain "/etc/squid3/vendas"
http_access allow ipsvendas vendas
################# Acesso industrial #################
acl ipsindustrial src "/etc/squid3/ipsindustrial"
acl industrial dstdomain "/etc/squid3/industrial"
http_access allow ipsindustrial industrial
################# Acesso padrao #################
acl permitidos url_regex -i "/etc/squid3/permitidos"
################# Sites Bloqueados #################
acl bloqueados url_regex -i "/etc/squid3/bloqueados"
################# Bloqueia MSN #################
acl libmsnmessenger url_regex -i gateway.dll
acl msn dstdomain loginnet.passport.com
acl msn1 req_mime_type -i ^application/x-msn-messenger$
acl msn2 dstdomain messenger.hotmail.com
acl msn3 dstdomain gateway.messenger.hotmail.com
################# BLOQUEAR GTALK ###########################
acl gtalk url_regex -i .mail.google.com/mail/channel/bind
acl gtalk url_regex -i .talk.google.com:443
acl gtalk url_regex -i .talk.google.com:5222
acl gtalk url_regex -i .desktop.google.com/download/googletalk/google-talk-versioncheck.txt?
acl gtalk url_regex -i .chatenabled.mail.google.com
acl gtalk url_regex -i .talkx.l.google.com
acl gtalk url_regex -i .talkgadget.google.com
acl gtalk url_regex -i .tools.google.com
acl gtalk url_regex -i .filetransferenabled.mail.google.com
################# Libera Conectividade Social #################
#acl cscaixa url_regex "/etc/squid3/acls/cscaixa.txt"
#no_cache deny cscaixa
#always_direct allow cscaixa
#acl cscaixaIP src "/etc/squid3/acls/cscaixaIP.txt"
#http_access allow cscaixaIP
################# Autorizacoes e bloqueios de Acesso #################
http_access deny gtalk
http_access deny msn
http_access deny msn1
http_access deny msn2
http_access deny msn3
http_access deny libmsnmessenger
http_access allow permitidos !bloqueados
http_access deny all