IBM Security Z Security

 View Only

 How to block the country region to not be access the server from that countries in IBM linux server

Ankit Singh's profile image
Ankit Singh posted Mon August 04, 2025 04:06 AM

I wanted to block all types of access to my server - every port, every service - from every country in the world except the USA.
I also wanted to ensure that my application, which is hosted on a domain (like kal.com:8081), is not accessible from any blocked country either - so the country restriction must apply to the whole server, including my domain and application ports.

I wanted this to be done in an official, supported way using only standard Linux tools (ipset and iptables) that are compatible with Ubuntu and fully supported on IBM Linux systems.

Can anyone help me understand this so I can implement it?

How to do?