I have iptables rule which i hope to allow ssh from 2 ips .
Why is counter increasing for second rule and not for first rule.
Even if i try from both ip i am not able to ssh to it.
Chain INPUT (policy ACCEPT 87 packets, 6188 bytes) pkts bytes target prot opt in out source destination 0 0 REJECT tcp -- * * !115.x.x.71 0.0.0.0/0 tcp dpt:22 reject-with icmp-port-unreachable 14 1400 REJECT tcp -- * * !115.x.x.176 0.0.0.0/0 tcp dpt:22 reject-with icmp-port-unreachable
isn't it like when i ssh from 115.x.x.71 it matches with first rule and i should get access and it will not be matched against second and even if i ssh from 115.x.x.176 it is against first rule and it will be rejected,but i am not able to ssh even from first ip.