Consulta de iptables

Juan Carlos Inostroza jci en tux.cl
Mie Ago 4 14:12:27 CLT 2004


On Wed, 2004-08-04 at 13:15, Valentín González E. wrote:
>   Hola listeros, estoy haciendo mi propio script para un firewall-proxy en
> una lan y tengo la siguiente duda:
>   Mi script tiene la política accept por defecto, he conseguido bloquiar
> todo lo que quiero y redirigir puertos, pero tengo un problema con el
> servicio ftp para los cliente de mi lan; para el ftp tengo la siguiente
> regla:
> 
>   iptables -A FORWARD -s 192.168.0.0/24 -i eth0 -p tcp --sport 1024:65535
> --dport 20:21 -j ACCEPT

# modprobe ip_nat_irc
# iptables -t nat -A POSTROUTING -p tcp --dport 20:21 -j ACCEPT
# iptables -t nat -A POSTROUTING -p udp --dport 20:21 -j ACCEPT

saludos!

-- 
Juan Carlos Inostroza O.
Registered Linux User #246002
jci en tux.cl - http://www.tux.cl - http://foros.tux.cl
Blogging for fun _and_ profit : http://jci.codemonkey.cl
"Beyond the senses is the mind, and beyond the mind is the reason,
its essence."
		-- Katha Upanisad 6.7



Más información sobre la lista de distribución Linux