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?