Enviado em 20/09/2013 - 09:00h
Bom dia.... Prezado eu estava usando o centos 5.8 e ate entao tudo ok, mas estou testanto o centos 6.3 que nao tem muita diferença. porem usando as mesmas configuraçoes do 5.8 a conexao esta estranha.
# CONFIGURACAO INICIAL DO SQUID
http_port 3128
visible_hostname centos
cache_mgr robertocosta.rca@hotmail.com
error_directory /usr/share/squid/errors/pt-pt
# CONFIGURACOES DE CACHE
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid 2048 16 256
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid/access.log
# ACL PARA REDE LOCAL
acl localhost src 127.0.0.1/32
acl redelocal src 192.168.1.0/24
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
# PORTAS LIBERADAS
acl Safe_ports port 21
acl Safe_ports port 70
acl Safe_ports port 80
acl Safe_ports port 210
acl Safe_ports port 280
acl Safe_ports port 443
acl Safe_ports port 488
acl Safe_ports port 563
acl Safe_ports port 591
acl Safe_ports port 631
acl Safe_ports port 777
acl Safe_ports port 873
acl Safe_ports port 901
acl Safe_ports port 64471
acl Safe_ports port 1025-65535
http_access deny !Safe_ports
# PORTAS LIBERADAS SSL
acl connect method CONNECT
acl SSL_ports port 443
acl SSL_ports port 563
acl SSL_ports port 873
http_access deny connect !SSL_ports
# BLOQUEIO E LIBERACAO GERAL DA REDE
http_access allow localhost
http_access allow redelocal
http_access deny all
# Generated by iptables-save v1.4.7 on Thu Sep 19 08:15:30 2013
*nat
:PREROUTING ACCEPT [147:7880]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [1:328]
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Thu Sep 19 08:15:30 2013
# Generated by iptables-save v1.4.7 on Thu Sep 19 08:15:30 2013
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [5888:1737108]
:PORTAS - [0:0]
-A INPUT -j PORTAS
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j PORTAS
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A OUTPUT -j PORTAS
-A PORTAS -m state --state RELATED,ESTABLISHED -j ACCEPT
-A PORTAS -p tcp --dport 22 -j ACCEPT
-A PORTAS -p udp --dport 53 -j ACCEPT
-A PORTAS -p tcp --dport 80 -j ACCEPT
-A PORTAS -p tcp --dport 443 -j ACCEPT
-A PORTAS -p tcp --dport 3128 -j ACCEPT
-A PORTAS -p tcp --dport 10000 -j ACCEPT
-A PORTAS -p tcp --dport 110 -j ACCEPT
-A PORTAS -p tcp --dport 465 -j ACCEPT
-A PORTAS -p tcp --dport 587 -j ACCEPT
-A PORTAS -p tcp --dport 995 -j ACCEPT
-A PORTAS -p tcp --dport 139 -j ACCEPT
-A PORTAS -p TCP --dport 137 -j ACCEPT
-A PORTAS -p TCP --dport 138 -j ACCEPT
-A PORTAS -p udp --dport 139 -j ACCEPT
-A PORTAS -p udp --dport 138 -j ACCEPT
-A PORTAS -p udp --dport 137 -j ACCEPT
-A PORTAS -p tcp --dport 64471 -j ACCEPT
COMMIT
# Completed on Thu Sep 19 08:15:30 2013