How to Configure GeoIP to Block or Allow Countries on Your Servers
GeoIP lets you decide from which countries traffic to your public IPs of your services.
It is an easy way to reduce the attack surface when legitimate traffic should only come from specific regions.
π What you get
Control access to your services by country of origin, for each public IP, with a one-click return to the default state.
What it is for
Security: block regions from which you only receive attacks.
Simplicity: country-based rules, without maintaining IP lists by hand.
Compliance: apply country restrictions if your client requires it (for example, GDPR or sector-specific requirements).
Flexibility: different policies per server or per network as needed.
How it works
GeoIP combines two layers:
Perimeter layer, at the edge of the infrastructure: filters traffic by country. This is where the default global policy lives (the list of blocked countries).
Your subscription's network layer: controls the ports and protocols of Inbound/Outbound within your network. It does not filter by country.
From GeoIP, for each public IP you choose the blocked countries: checked means Deny and unchecked means Allow. If you allow a country that the global policy blocks, an allowexception is created; if you block one that the global policy does not block, a deny rule of yours is created.
π§ GeoIP does not open ports
GeoIP filters by country at the perimeter layer, but it does not touch ports. If the port or protocol are still closed in your Inbound/Outbound rules, traffic will not pass even if you allow that country.
Before you begin
Log in to the Plenit dashboard.
Have administrative permissions on Servers.
That the network you are going to work on has at least one public IP.
Step 1. Access GeoIP
In the dashboard, open Cloud Services β Servers and enter your server subscription.
In the top tab bar, open Firewall.
Open the subtab Geolocation.

Step 2. Select the network
At the top, use the Network selector to choose where to apply GeoIP. You'll see the public IP table (Public IP) and how many countries each one has blocked (Blocked countries).
π 145 entries blocked by default
It is common to see 145 entries blocked initially. Of those 145 entries, 140 are countries and 5 are territories without a permanent population: Antarctica, Bouvet Island, Heard and McDonald Islands, French Southern and Antarctic Lands, and South Georgia and the South Sandwich Islands.

Step 3. Review the public IPs and enter edit mode
In the table you can see each public IP, its number of blocked countries, and the action Edit. Click Edit on the IP you want to adjust.

Step 4. Manage the countries
The Edit countries screen opens. On the left, mark entire continents or expand them with + to choose specific countries; you can also search for them with Search country. On the right you can see the list of countries that remain blocked. Checked = blocked; unchecked = allowed. You have Save, Restore settings and Cancel.

Step 5. Confirm and apply
Press Save, review the list of countries that will be blocked or allowed in the Are you sure? notice, and press Confirm. The changes are synchronized with the infrastructure: it is not immediate, it takes a few minutes.

Step 6. Verify the result
Check the counter of blocked countries on the edited IP and run access tests if needed. For a quick check from a source in the country you want to validate:
Since the filtering depends on the country of origin, to test a blocked country you need to connect from that country (for example, through a VPN in that region). If you need to start from scratch, use Restore settings.
Practical cases
Allow only Spain and Portugal
Mark all countries, uncheck Spain and Portugal, Save β Confirm
Allow Canada temporarily
Uncheck Canada, Save β Confirm; when you're done, mark it again
You don't know the current state
Restore settings and start clean from the global policy
Usage tips
Less is more: block first and open only what is essential.
Standardize: apply the same base policy to several IPs and document the exceptions.
Use Restore settings as a reset when you do not know what rules are applied.
Remember the network layer: if the port or protocol is closed in Inbound/Outbound, they will not get in even if you allow the country.
If something doesn't fit
The Confirm button is disabled
There are no changes to apply
Make some changes or exit with Cancel
I allowed a country but it still doesn't work
Propagation is missing or the port is closed
Wait a few minutes and check your Inbound/Outbound rules
I blocked too much and lost access
Policy too restrictive
Use Restore settings
I don't see the Geolocation tab
The view is not available in your dashboard
Contact Partner Success so they can enable it
Conclusion
GeoIP gives you a simple security lever: you decide by country who reaches your public IPs, without maintaining address lists by hand and with a reset button when you need it.
The golden rule is to remember that it acts only on the country of origin: you still control ports and protocols in the Inbound/Outbound rules, so GeoIP adds to that layer, it does not replace it.
Last updated
Was this helpful?

