Mobile view — Full Site Mobile Site

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
Linux installer  ·  Shell script  ·  Requires root
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:
chmod +x geoblock-1.5-installer.sh && sudo ./geoblock-1.5-installer.sh

Source and release history are available on GitHub →