Escolar Documentos
Profissional Documentos
Cultura Documentos
AMSN:
Modificar el archivo /etc/squid/squid.conf para que los mensajes de error se muestren en espaol:
# TAG: error_directory
#
If you wish to create your own versions of the default
#
(English) error files, either to customize them to suit your
#
language or company copy the template English files to another
#
directory where the error files are read from.
#
/usr/lib/squid/errors contains sets of error files
#
in different languages. The default error directory
#
is /etc/squid/errors, which is a link to one of these
#
error sets.
#
#
If you wish to create your own versions of the error files,
#
either to customize them to suit your language or company,
#
copy the template English files to another
#
directory and point this tag at them.
#
#error_directory /usr/lib/squid/errors/English
#
#Default:
error_directory /usr/lib/squid/errors/Spanish
Para versiones antiguas del squid tener las siguientes lneas descomentadas:
http_port 10.0.0.1:3128
acl redlocal src 10.0.0.0/8
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_wiht_proxy on
httpd_accel_uses_host_header on
Instalar iptables
[root@localhost squid]# urpmi iptables
ftp://ftp.rediris.es/pub/linux/distributions/mandrakelinux/official/2006.0/i586/media/main/iptables-1.3.3-3mdk.i586.rpm
instalando iptables-1.3.3-3mdk.i586.rpm desde
/var/cache/urpmi/rpms
Preparando...
#############################################
1/1: iptables
#############################################
[root@localhost squid]#
NOTA: Tambien se podria usar el siguiente comando en reemplazo del: iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j
MASQUERADE
[root@localhost squid]# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 192.168.1.3
[root@localhost squid]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source
destination
REDIRECT tcp -- anywhere
anywhere
Chain POSTROUTING (policy ACCEPT)
target prot opt source
destination
SNAT
all -- anywhere
anywhere
to:192.168.1.3