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?
Yup, it does (
). BTW,
iptables-save
gives a way more readable output.