nao consigo bloquear o msn no squid

1. nao consigo bloquear o msn no squid

Andre chagas ramos
andre_ramos

(usa openSUSE)

Enviado em 01/07/2009 - 14:57h

nao consigo bloquear o msn

Tenho o squid configurado no opensuse 11.1 e estava bloqueando normalmente o msn, mas quando tentei configurar para bloquear apenas alguns ips ele liberou tudo e agora nao consigo bloquerar o msn. estou com urgencia pois a empresa esta co acesso liberado no msn
segue o meu script do squid.conf


# WELCOME TO SQUID 3.0.STABLE10
# ----------------------------

################# Autenticação de Usuários ##########################
#auth_param basic program <uncomment and complete this line>
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#####################################################################

#acl password proxy_auth REQUIRED//Qdo for usar a autent. descomentar
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl redetoctao src 192.168.0.0/24 # RFC1918 possible internal network

##################### Regras ########################################
acl Safe_ports port 20 # programa oi
acl SSL_ports port 443 # https
acl Safe_ports port 553 # Autenticacao do outlook
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 89 # juridico 2ccago
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
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 IPliberados src "/etc/squid/regras/IPliberado.txt"
acl bloqueados url_regex "/etc/squid/regras/bloqueados.txt"
#acl libera-msn src "/etc/squid/regras/libera-msn.txt"
acl msn url_regex -i gateway.dll
acl msn_bloq dstdomain "/etc/squid/regras/msn_bloq.txt"
acl CONNECT method CONNECT
#####################################################################

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

####################### Permisões das Regras ########################
http_access allow IPliberados
http_access deny bloqueados
#http_access allow libera-msn
http_access deny msn_bloq
http_access deny msn
#####################################################################

http_access allow redetoctao
http_access allow localhost
http_access deny all

icp_access allow redetoctao
icp_access deny all

htcp_access allow redetoctao
htcp_access deny all

############### Endereço do Servidor e Porta para Acesso############
http_port 192.168.0.204:3128
####################################################################

hierarchy_stoplist cgi-bin ?

######################## Tamanhos das Cache ########################
cache_dir ufs /var/cache/squid 500 16 256
cache_swap_low 90
cache_swap_high 95

########################### Caminhos dos Logs ######################
access_log /var/log/squid/access.log squid

cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
error_directory /usr/share/squid/errors/Portuguese

#######################Controle de Acessos #########################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#####################################################################

icp_port 3230
coredump_dir /var/cache/squid



  


2. Re: nao consigo bloquear o msn no squid

Genesco Sousa
gesousa

(usa Ubuntu)

Enviado em 01/07/2009 - 15:15h

No próprio site do squid a configuração para travar o msn:

# MSN Messenger

acl msn url_regex -i gateway.dll
acl msnd dstdomain messenger.msn.com gateway.messenger.hotmail.com
acl msn1 req_mime_type ^application/x-msn-messenger$

http_access deny msnd
http_access deny msn
http_access deny msn1

fora isso ... não adianta anda se vc liberou quase todas as portas....

acl Safe_ports port 1025-65535 # unregistered ports

esta regra está abrindo uma faixa enorme de portas ...
é realmente necessária ??

o msn vc deve tabém travar a porta no iptables... para ter certeza...

iptables -A FORWARD -p tpc --dport 1863 -j DROP
iptables -A FORWARD -p udp --dport 1863 -j DROP








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts