Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I'm looking at the output of iptables -L

# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     udp  --  anywhere             anywhere            udp dpt:1194
DROP       all  --  anywhere             ip-x.x.x.nydsl.com
DROP       all  --  anywhere             anywhere            state INVALID

I've always assumed that the rules execute in order top to bottom. But reading the documentation I haven't been able to verify that. Can anyone confirm?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Yup, it does (

If the packet does not match, the next rule in the chain is the examined

). BTW, iptables-save gives a way more readable output.

share|improve this answer
    
Thanks! I didn't know about iptables-save ... that's super helpful. –  Antonius Bloch Feb 2 '11 at 19:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.