Salve, salve rapazeada.
Gostaria de pedir uma ajuda, estou quebrando cabeça para resolver esse probleminha mas, sozinho não estou consequindo. O que eu preciso é que meu servidor funcione como NAT, e que todos os usuários da minha rede sejam obrigados a passar pelo squid sem a necessidade de se configurar no navegador. Abaixo os meus arquivos. Valeu!
Squid.conf:
################################################################
#################### Configuracoes do Squid ####################
################################################################
http_port 192.168.0.1:3128 transparent
visible_hostname nets1
hierarchy_stoplist cgi-bin \?
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_high 95
cache_swap_low 90
cache_access_log /var/log/squid/access.log
cache_dir ufs /var/spool/squid 2048 16 256
error_directory /usr/share/squid/errors/pt-br
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.0/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 280 488 591 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
################### Definicao das Permissoes das Regras ############
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
############################## Minhas ACLS #########################
acl palavras dstdom_regex -i "/etc/squid/confs/palavras_bloqueadas"
acl redelocal src "/etc/squid/confs/liberados"
#####################################################################
#################### Definição das Regras ###########################
http_access deny palavras
http_access allow localhost
http_access allow redelocal
http_access deny all
#####################################################################
cache_mgr righteous1436@gmail.com.br
Agora o /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Compartilha conexão
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# Prerounting
iptables -t nat -A PREROUTING -i 192.168.0.1/24 -p tcp --dport 80 -j REDIRECT --to-port 3128
exit 0
/etc/squid/confs/liberados
# Client1
192.168.0.20/255.255.255.255
# Client2
192.168.0.30/255.255.255.255
/etc/squid/confs/palavras_bloqueadas
#Palavras
uol
ig
terra
globo
gmail
hotmail
orkut
sexo
É isso falta alguma coisa? Porque no PC client1 não bloqueia nada, tem net, mas ta passando tudo. Help me, please