Block Country on Red Hat Enterprise 7.2

Latest response

Fine Good evening Seeking a way to Block Countries on Red Hat Enterprise 7.2 Would be nice if I Could Help Somebody Best regards

Responses

You want to block entire country IP address ranges from contacting your system?

Search for "country ip address ranges" in a search engine and you'll find many sources of IP lists. Choose one who provide information in computer-readable format like csv or json.

Write a script which imports those IPs into ipsets.

I know upstream firewalld supports ipsets, but I'm not sure if this has made it back into RHEL yet. If not, just turn off firewalld and use iptables.

Thx for the Information

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.