iptables block ssh for certain ips and allow for others

Hi i wish to know if with iptables i can block all the internet ips and allow a few ips to connect a machine by ssh.

Anyone know if i can do that with iptables?.

Thanks.

 

 

 

 

Top