Ver Mensaje Individual
  #6 (permalink)  
Antiguo 22/02/2011, 03:32
moeb
 
Fecha de Ingreso: febrero-2011
Mensajes: 581
Antigüedad: 13 años, 2 meses
Puntos: 81
Respuesta: Squid y router

Casi... Hay algún pequeño error:
===========================

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 192.168.1.1

# The secondary network interface
auto eth1
iface eth1 inet static
address 192.168.2.100
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 192.168.1.1

(Los errores los tenías en la sentencia "network"... Tus redes son la 192.168.1.0/24 y 192.168.2.0/24).

Ok, con eso tienes dos tarjetas de red configuradas, la interna eth0 y la externa eth1 (que va al router)... Haz los cambios en el iptables y debería funcionarte... Siempre y cuando TU PUERTA DE ACCESO anterior fuese la 192.168.1.1 (que sólo la usé como ejemplo).