Blocking an IP on a Linux system with iptables


OS:

Linux


Skill Level:

Intermediate


Prerequisites:

Linux CLI, Basic Networking Concepts

Block an IP from making requests to any port on a system

Block an IP from making requests on a specific port:

List iptables rules:

Delete iptables rule:

Save the rules on a Red Hat based system:

Leave a Reply