Hola listeros: Estoy implementando un firewall para poner mi servidor web en una DMZ. El firewall consta de 3 tarjetas de red:
eth0 --> IP: 192.168.1.2 --> Conectado al router eth1 --> IP: 192.168.10.1 --> Conectado a la LAN eth2 --> IP: 192.168.3.1 --> Conectado a la DMZ La IP del servidor Web es 192.168.3.2. Ya he redireccionado todos los puertos de mi router al Firewall y he activado el forwardeo en mi firewall. Estoy tratando de trabajar con políticas DROP por defecto pero no me permite visualizar desde fuera el servidor web. Mi script es el siguiente: iptables -F iptables -t nat -F iptables -t mangle -F iptables -X iptables -t nat -X iptables -t mangle -X iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -t nat -P PREROUTING DROP iptables -t nat -P OUTPUT DROP iptables -t nat -P POSTROUTING DROP #Loopback iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT #DNAT iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.3.2:80 #Enmascaramiento iptables -t nat -A POSTROUTING -o eth0 -s 192.168.3.0/24 -j MASQUERADE De antemano les agradezco la ayuda, Saludos. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Lista de correo Linux-plug Temática: Discusión general sobre Linux Peruvian Linux User Group (http://www.linux.org.pe) Participa suscribiéndote y escribiendo a: [email protected] Para darte de alta, de baja o hacer ajustes a tu suscripción visita: http://www.linux.org.pe/cgi-bin/mailman/listinfo/linux-plug IMPORTANTE: Reglas y recomendaciones http://www.linux.org.pe/listas/reglas.php http://www.linux.org.pe/listas/comportamiento.php http://www.linux.org.pe/listas/recomendaciones.php
