Ravi Sir's Cards › AWS
iptables ACCEPT does nothing?
This interview card answers: iptables ACCEPT does nothing? First match wins. List with numbers. Insert above DROP.
Read card text
What this card says
What it is
First match wins.
Why it matters
List with numbers.
iptables -L INPUT -n --line-numbers
How / example
Insert above DROP.
iptables -I INPUT 3 -p tcp --dport 80 -j ACCEPT