I would like to know if for an example, i want to block a range of IP address let say 22.214.171.124/16 so the command should be as below:-
iptables -A INPUT -s 126.96.36.199/255.255.0.0 -j DROP
Now my question is, how about if i want to ONLY allow certain IP address from the above range? What command should I use? Let say I want to ALLOW IP 188.8.131.52, in this case, what command should i use since this IP already been blocked in the list???