{"id":19430976,"url":"https://github.com/jmousqueton/linux-firewall-block-country","last_synced_at":"2026-05-12T20:08:50.452Z","repository":{"id":81454096,"uuid":"485034588","full_name":"JMousqueton/linux-firewall-block-country","owner":"JMousqueton","description":"Script to block China netblocks on iptables ","archived":false,"fork":false,"pushed_at":"2022-04-24T13:45:25.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-07T20:15:26.012Z","etag":null,"topics":["bash","bash-script","china","firewall","firewall-rules","ipset","ipset-rules","iptables","netblocks","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JMousqueton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-24T13:26:11.000Z","updated_at":"2023-05-12T17:07:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"59f36b33-c402-464a-b6e4-f3840d371974","html_url":"https://github.com/JMousqueton/linux-firewall-block-country","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Flinux-firewall-block-country","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Flinux-firewall-block-country/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Flinux-firewall-block-country/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2Flinux-firewall-block-country/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMousqueton","download_url":"https://codeload.github.com/JMousqueton/linux-firewall-block-country/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240612533,"owners_count":19829027,"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":["bash","bash-script","china","firewall","firewall-rules","ipset","ipset-rules","iptables","netblocks","script"],"created_at":"2024-11-10T14:27:45.319Z","updated_at":"2026-05-12T20:08:45.417Z","avatar_url":"https://github.com/JMousqueton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick \u0026 Dirty script to block China netblocks with iptables 🔥 🇨🇳\n\n## Usage\n\n1. Copy [iptables.firewall.rules](/etc/iptables.firewall.rules) to /etc\n\n\u003e these rules only allow 80/TCP, 443/TCP and 22/TCP\n\n2. Execute [block-china.sh](block-china.sh) \n3. Add to crontab :\n\n```crontab -e```\n```\n0 5 * * * /etc/block-china.sh \u003e /dev/null 2\u003e\u00261\n```\n\nyou can check with the commande ```iptables -L```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Flinux-firewall-block-country","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmousqueton%2Flinux-firewall-block-country","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Flinux-firewall-block-country/lists"}