I have noticed the following iptables rule order executed by a program:
iptables -A INPUT -p all -j ACCEPT iptables -A INPUT -p all -s ip_address -j REJECT
I thought that based on the ordering principle of iptables, this would lead to the second line being ignored (ie. the ip_address will not be rejected because all connections are already accepted by the first line). Does it mean that this program is misconfigured?
Thanks in advance