Description
geoip-shell is a command-line geoblocker for Linux. It restricts access to and from internet addresses based on the country they belong to. You pick countries, and it builds either an allowlist or a blocklist in the firewall from IP lists downloaded from RIPE, ipdeny, MaxMind or IPinfo. It works with both nftables and iptables, and an interactive setup creates the firewall rules and IP sets it needs. The tool can also restrict outbound connections by country, supports local allowlists and blocklists, and when you set up a whitelist it detects your LAN ranges and offers to add them. Blocking persists across reboots by default, and the IP lists update automatically. The README says the aim is to work on desktops, servers, containers, VPS hosts and routers, and it has an OpenWrt section. A FAQ and a privacy section are included. The project is public on GitHub.…
Highlights
- Country-based allowlists and blocklists for Linux firewalls
- Supports nftables and iptables
- IP lists from RIPE, ipdeny, MaxMind and IPinfo
- Interactive setup and outbound geoblocking
- Persists across reboots with automatic list updates
Ratings & Reviews
No ratings yet
Be the first to rate Geoip Shell.
People also visit
Geoip Shell FAQ
What does geoip-shell do?
It blocks or allows traffic by country on a Linux system by building firewall rules from country IP lists.
Which firewall tools does it use?
Both nftables and iptables.
Where do the IP lists come from?
RIPE by default, with ipdeny, MaxMind and IPinfo also supported as sources.
Can it run on a router?
The README says the tool is meant for routers as well, and it includes an OpenWrt section.
How do I set it up?
It has an automated interactive setup. The README covers installation, usage, outbound geoblocking and local allowlists.
What are the best Geoip Shell alternatives?
Popular alternatives to Geoip Shell include Malicious Ip, CSF Firewall and FireHOL. See all Geoip Shell alternatives


