Skip to main content
Cambio de idioma
Origen Enlace

Order of rules using Orden de iptables

I am trying to set up a restricted policy usingEstoy intentando implementar una política restrictiva usando iptables so I wrotede la siguiente manera:

iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

My objective is to connect to theEl objetivo es dar acceso solamente al servidor web server in the host from another host, but it is not workingpero no me está funcionando. AlsoAdemás, any advice about order of rules in iptables is appreciatedalguna ayuda adicional respecto al orden de las reglas es bienvenida.

Order of rules using iptables

I am trying to set up a restricted policy using iptables so I wrote:

iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

My objective is to connect to the web server in the host from another host, but it is not working. Also, any advice about order of rules in iptables is appreciated.

Orden de iptables

Estoy intentando implementar una política restrictiva usando iptables de la siguiente manera:

iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

El objetivo es dar acceso solamente al servidor web, pero no me está funcionando. Además, alguna ayuda adicional respecto al orden de las reglas es bienvenida.

Origen Enlace

Order of rules using iptables

I am trying to set up a restricted policy using iptables so I wrote:

iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

My objective is to connect to the web server in the host from another host, but it is not working. Also, any advice about order of rules in iptables is appreciated.