GeoIP Filtering
The GeoIP module blocks incoming connections to MikoPBX from selected countries at the firewall level. It protects the PBX from SIP scanners, password brute-forcing and unwanted calls. Works for both
The GeoIP module blocks incoming connections to your PBX from selected countries. A PBX exposed to the internet constantly receives hundreds of connection attempts from all over the world: scanners look for vulnerable SIP servers, brute-force extension passwords and try to place calls at your expense. Most of these attacks come from countries you have no telephony with.
GeoIP filtering lets you block whole countries in one click — every IP address from those countries is dropped before it can ever reach the SIP server. Filtering works for both IPv4 and IPv6 at the same time.
Installation and activation
Open Modules → Module Marketplace, find GeoIP Filter and click Install.
Once installed, go to Network and firewall → GeoIP Filtering.
Turn on the Enable GeoIP filtering switch.
Select the countries you want to block and click Save.
After it is enabled, the module automatically starts the first download of the IP address lists. Until the data is downloaded, the Last update field shows "Data not yet downloaded".
Selecting countries
The module page lists 249 countries (the ISO 3166-1 standard). Each country shows its current status — Blocked or Allowed. A country is allowed by default; blocking is enabled explicitly.
Search
Quickly find a country by name.
Status filter
Show all countries, allowed only, or blocked only.
Block all
Block every country in the list at once.
Unblock all
Remove blocking from every country.
Save
Apply the changes. Firewall rules are updated immediately after saving.
Data source
Per-country subnet lists can be obtained from one of three sources, selected in the Data source field:
DB-IP Lite (recommended)
An up-to-date "country → subnet" database. A copy of the database ships inside the module, so the very first activation works even without internet access.
RIR delegation files
Official address-allocation files from the Regional Internet Registries (RIPE, ARIN, APNIC, etc.).
ipdeny.com
Ready-made aggregated per-country CIDR blocks.
Updating the lists
The IP address lists are updated automatically once a week (on Sundays). The date and time of the last successful update, along with the number of downloaded subnets, are shown on the module page.
To refresh the data immediately, click Update now — a progress indicator appears next to it. This is handy right after installation or after changing the data source.
How it works
GeoIP blocking is applied in the firewall last of all — after every allow rule. The order in which an incoming connection is processed:
Established connections — passed.
Firewall rules (your trusted subnets) — passed.
SIP provider IP addresses — passed.
GeoIP filter — block by country.
System requirements
MikoPBX 2026.1.223 or newer.
ipset support in the Linux kernel (included in all standard MikoPBX builds).
Last updated
Was this helpful?

