iptables block ssh for certain ips and allow for others 2025-04-15 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.