Will iptables always check the rules in the order they are entered ? Eg. if I setup the following in the exact sequence as below...
[default policy: accept] -A input -p tcp --syn -dport 22 -j ACCEPT -A input -p tcp --syn -dport 8880 -j ACCEPT -A input -p tcp --syn -dport 0:60000 -j DROP
Will this ignore all connection requests apart from port 22 and 8880 ?
Is there any other way of doing this ? (perhaps more efficient for example). I'd like all other types of packets to go through normally, and just kill of the connection attempts.