thiagoradical
(usa Debian)
Enviado em 13/12/2012 - 18:32h
Tenho um Servidor squid3 rodando blz, porem nao consigo acesso remoto externo.
Meu modem dlink 500B tem o NAT Liberado para ip local da maquina que possuo,porem se o servidor linux estiver rodando ele bloqueia a conexão RDP, mas eu nao tenho nenhum regra pra bloqueio de conexao RDP. Se eu tirar o servidor linux da rede e deixar direto no modem funciona blz...
Obs: ETH0 IP do modem adsl 192.168.0.1
ETH1 com servidor dhcp atribuindo IP 10.1.1.0.
Segue meu squid.conf
# Mensagem de erro em Português
error_directory /usr/share/squid3/errors/Portuguese
http_port 3128 intercept
#visible_hostname squid
cache_mem 2048 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512000 KB
minimum_object_size 8 KB
access_log /var/log/squid3/access.log squid
cache_swap_low 90
cache_swap_high 95
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_dir AUFS /var/spool/squid3 10000 16 256
cache_access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl SSL_ports port 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
#acl Safe_ports port 22 2222 # ssh server
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 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 110 25 # pop-smtp
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # swat
#acl Safe_ports port 5800 # VNC
#acl Safe_ports port 3389 # RDP
#acl Safe_ports port 3387 # cadastro
acl Safe_ports port 1025-65535 # portas altas
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
# Cache atualizacao avast
refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-ims
#Dns
dns_nameservers 201.10.120.3
dns_nameservers 8.8.8.8
# Regra para bloqueio de extensões de rádios online / arquivos de streaming:
acl streaming req_mime_type ^video/x-ms-asf
acl proibir_musica urlpath_regex -i \.aif$ \.aifc$ \.aiff$ \.asf$ \.asx$ \.avi$ \.au$ \.m3u$ \.med$ \.mp3$ \.m1v$ \.mp2$ \.mp2v$ \.mpa$ \.mov$ \.mpe$ \.mpg$ \.mpeg$ \.ogg$ \.pls$ \.ram$ \.ra$ \.ram$ \.snd$ \.wma$ \.wmv$ \.wvx$ \.mid$ \.midi$ \.rmi$ \.flv$
http_access deny proibir_musica
http_reply_access deny streaming
acl downloads url_regex -i "/etc/squid3/downloads"
acl download_on url_regex -i "/etc/squid3/download_on"
acl ext-bloqueados url_regex -i "/etc/squid3/ext-bloqueados"
acl ip_liberado src "/etc/squid3/ip_liberado"
acl palavrasproibidas dstdom_regex -i "/etc/squid3/palavrasproibidas"
acl bloqueados url_regex -i "/etc/squid3/bloqueados"
http_access deny ext-bloqueados !ip_liberado
http_access deny downloads !download_on
http_access allow ip_liberado
http_access deny proibir_musica !ip_liberado
http_access deny proibir_musica
http_access deny palavrasproibidas
http_reply_access deny streaming !ip_liberado
http_access deny bloqueados !ip_liberado
acl redelocal src 10.1.1.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all