da uma olhada nas regras veja se encontra algum erro
/etc/squid/squid.conf
Citação:
#DIRETORIO CACHE NO HD
cache_dir ufs /var/spool/squid/cache 48 16 256
# Localização do log de acessos do Squid
#cache_replacement_policy heap LFUDA
#memory_replacement_policy heap GDSF
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
#emulate_httpd_log on
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 10 20% 2280
acl all src 0.0.0.0/0.0.0.0
cache_store_log /var/log/squid/store.log
#emulate_httpd_log on
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 10 20% 2280
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 Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 544 # filemake
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 1025-65535 # unregistered ports
acl SSL_ports port 443 # https
acl SSL_ports port 465 # YAHOO - SMTP (SSL)
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl SSL_ports port 995 # YAHOO - POP3 (SSL)
acl purge method PURGE
acl FTP proto FTP
acl CONNECT method CONNECT
#LIBERACOES PADROES
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 allow CONNECT FTP
http_access deny CONNECT !SSL_ports
## LISTAS DE CONTROLE DE ACESSOS
#acl rede-interna src 192.168.0.0/24
## Libera para a rede local e bloqueia acesso externo
http_access allow all
#http_access deny !rede-interna
#http_access allow rede-interna
#http_access deny all
#cache_effective_user radical
#cache_effective_group radical
error_directory /usr/share/squid/errors/Portuguese
o /etc/rc.local
Citação:
#!/bin/sh -e
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo "Proxy Transparente ativado"
Criando Diretorios
root@Squid-cache:/# squid -z
2009/03/05 00:24:55| Creating Swap Directories
root@Squid-cache:/#
Configuração no MK
NAT
Citação:
[admin@Stevens144] > ip firewall nat pr
Flags: X - disabled, I - invalid, D - dynamic
0 chain=dstnat action=redirect to-ports=3128 protocol=tcp in-interface=Rede
dst-port=80
1 ;;; Masquerade para rede mikrotik-cliente
chain=srcnat action=masquerade src-address=192.168.1.0/24
2 ;;; Masquerade para a rede mikrotik-linux
chain=srcnat action=masquerade src-address=192.168.0.0/24
Web-Proxy
Citação:
[admin@Stevens144] > ip proxy print
enabled: yes
src-address: 0.0.0.0
port: 3128
parent-proxy: 192.168.0.1
parent-proxy-port: 3128
cache-administrator: "webmaster"
max-cache-size: none
cache-on-disk: no
max-client-connections: 1000
max-server-connections: 1000
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: primary-master
espero que alguem possa me ajudar chegar ate aqui foi dificil... acho q agora falta pouco
hehe
obrigada