Free Linux Security Tool
Geographic IP blocking,
from the command line.
Geoblock is a free, open-source firewall utility for Linux. Block incoming traffic by country using iptables and xt_geoip — with persistent rules that survive reboots, automatic boot-time restore, and twice-daily GeoIP database updates.
Free
Always
100+
Countries supported
Auto
GeoIP updates
Zero
Cloud or accounts
What’s inside
Country blocking,
done right.
Country Blocking
Block or unblock traffic by ISO country code or full name. Geoblock normalizes codes automatically and supports 100+ countries.
Persistent Rules
Firewall rules are saved automatically on every block or unblock action and restored on boot — your blocks survive reboots.
Automatic GeoIP Updates
The GeoIP database is refreshed twice daily at 6 AM and 6 PM via systemd timer or cron — always current, zero manual effort.
Full History Log
Every block and unblock action is permanently logged with timestamps. Logs rotate automatically at 10 MB, keeping up to 5 archives.
Systemd & Cron Support
Works with both systemd and traditional cron for broad Linux compatibility across distributions and server environments.
Minimal Dependencies
Requires only iptables, xtables-addons, and wget. No daemons, no agents, no cloud — just your existing Linux firewall stack.
Downloads
Get Geoblock.
Geoblock v1.5
Latest
The current stable release of Geoblock. Download the installer script and run it as root to set up Geoblock on your system.
Installation: After downloading, make the script executable and run it as root:
Source and release history are available on GitHub →
chmod +x geoblock-1.5-installer.sh && sudo ./geoblock-1.5-installer.sh
Source and release history are available on GitHub →
Donation-based software
Geoblock is free.
Keep it that way.
Geoblock is built and maintained by CYBERACQ as free, donation-supported software. No subscriptions, no paywalls, no ads — ever. If it has helped you secure a server or reduce unwanted traffic, a small contribution helps keep development going.
View on GitHub →Donations processed by CYBERACQ via PayPal
Why donate?
- Geoblock has no investors, no subscriptions and no revenue — only the generosity of its users keeps it running.
- Every contribution directly funds development, testing and new features.
- Donate any amount, one time or monthly — only if you find it useful.