Block an IP using iptables

To block an IP using iptables, use

Replace IPADDR with IP address you need to block.

To block an IP range

Example, bock IP range 159.138.0.0/16

See iptables

Leave a Reply

Your email address will not be published. Required fields are marked *