iptables -A INPUT -p tcp --dport 22 -s 192.168.0.10 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -s 10.16.10.10 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP
#Drop All rules
iptables -F
iptables -A INPUT -p tcp --dport 22 -s 192.168.0.10 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -s 10.16.10.10 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP
#Drop All rules
iptables -F