{"id":19905204,"url":"https://github.com/digitalsparky/geowall","last_synced_at":"2025-06-20T13:41:45.928Z","repository":{"id":57640361,"uuid":"152735581","full_name":"digitalsparky/geowall","owner":"digitalsparky","description":"Golang Powered GeoIP Based Firewall","archived":false,"fork":false,"pushed_at":"2022-09-06T18:32:18.000Z","size":876,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T01:47:25.462Z","etag":null,"topics":["cli","firewall","firewall-configuration","geoip","go","golang","iptables","iptables-configuration"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitalsparky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-12T10:38:56.000Z","updated_at":"2024-07-17T06:12:20.000Z","dependencies_parsed_at":"2022-09-05T07:40:22.917Z","dependency_job_id":null,"html_url":"https://github.com/digitalsparky/geowall","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/digitalsparky/geowall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalsparky%2Fgeowall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalsparky%2Fgeowall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalsparky%2Fgeowall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalsparky%2Fgeowall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitalsparky","download_url":"https://codeload.github.com/digitalsparky/geowall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitalsparky%2Fgeowall/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260954930,"owners_count":23088242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","firewall","firewall-configuration","geoip","go","golang","iptables","iptables-configuration"],"created_at":"2024-11-12T20:32:05.462Z","updated_at":"2025-06-20T13:41:40.909Z","avatar_url":"https://github.com/digitalsparky.png","language":"Go","funding_links":["https://paypal.me/MattSpurrier","https://www.buymeacoffee.com/digitalsparky"],"categories":[],"sub_categories":[],"readme":"# GEOWall [![Build Status](https://travis-ci.com/digitalsparky/geowall.svg?branch=master)](https://travis-ci.com/digitalsparky/geowall)\n\nDownloaded and updates IPtables based on Geo IP lists and country.\n\nWorks with both 'block country' and 'allow only' country modes.\n\nIP block rules from:\n- IPv4: http://www.ipdeny.com/ipblocks/data/aggregated/\n- IPv6: http://www.ipdeny.com/ipv6/ipaddresses/aggregated/\n\nSimply match the 'country code' to the country characters at the start of the {countrycode}-aggredated.zone file\n\n```\nNAME:\n   geowall - GeoIP Based Firewall\n\nUSAGE:\n   main [global options] command [command options] [arguments...]\n\nAUTHOR:\n   Matt Spurrier \u003cmatthew@spurrier.com.au\u003e\n\nCOMMANDS:\n     apply\n     unload\n     help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --v4, -4, --ipv4         Include IPv4 Rules\n   --v6, -6, --ipv6         Include IPv6 Rules\n   --iface value, -i value  Inbound Interface\n   --save, -s               Save IPTables Rules\n   --help, -h               show help\n   --version, -v            print the version\n\nCOPYRIGHT:\n   (c) 2021 Matt Spurrier\n```\n\nFor example, to only allow AU IP's to the server on eth0 and block everything else, use:\n\n```\ngeowall -4 -6 -i eth0 apply -c au -m allow\n```\n\nThis will download and process:\nhttp://www.ipdeny.com/ipblocks/data/aggregated/au-aggregated.zone to IPTables\nhttp://www.ipdeny.com/ipv6/ipaddresses/aggregated/au-aggregated.zone to IP6Tables\n\nTo unload IPv4 and IPv6 rules on eth0 run:\n\n```\ngeowall -4 -6 -i eth0 unload\n```\n\nTo allow only AU and NZ IP's and block everything else on both IPv4 and IPv6, use:\n\n```\ngeowall -4 -6 -i eth0 apply -c au,nz -m allow\n```\n\nTo block a specific country on both IPv4 and IPv6, use:\n\n```\ngeowall -4 -6 -i eth0 apply -c {countrycode} -m deny\n```\n\nTo update rules for IPv4 to use AU and NZ use - this will clear existing rules and replace with AU and NZ:\n\n```\ngeowall -4 -i eth0 apply -c au,nz\n```\n\nTo allow only AU and NZ IP's and block everything else on both IPv4 and IPv6 and save the rules use:\n\n```\ngeowall -4 -6 -i eth0 -s apply -c au,nz -m allow\n```\n\nTo build this application:\nRequires Golang 1.11.1\n\n```\ngo get -u github.com/digitalsparky/geowall\n```\n\n# Like my stuff?\n\nWould you like to buy me a coffee or send me a tip?\nWhile it's not expected, I would really appreciate it.\n\n[![Paypal](https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png)](https://paypal.me/MattSpurrier) \u003ca href=\"https://www.buymeacoffee.com/digitalsparky\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/white_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalsparky%2Fgeowall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitalsparky%2Fgeowall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitalsparky%2Fgeowall/lists"}