{"id":17468476,"url":"https://github.com/egorsmkv/fail2ban-scripts","last_synced_at":"2025-08-25T15:03:12.332Z","repository":{"id":44887969,"uuid":"401398958","full_name":"egorsmkv/fail2ban-scripts","owner":"egorsmkv","description":"This is a simple python code to get the list of banned IP addresses from Fail2ban","archived":false,"fork":false,"pushed_at":"2021-08-30T20:05:02.000Z","size":9,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T13:52:14.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egorsmkv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-30T15:45:19.000Z","updated_at":"2024-08-21T16:34:54.000Z","dependencies_parsed_at":"2022-07-21T11:04:45.175Z","dependency_job_id":null,"html_url":"https://github.com/egorsmkv/fail2ban-scripts","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/egorsmkv%2Ffail2ban-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Ffail2ban-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Ffail2ban-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egorsmkv%2Ffail2ban-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egorsmkv","download_url":"https://codeload.github.com/egorsmkv/fail2ban-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249832670,"owners_count":21331649,"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":[],"created_at":"2024-10-18T15:06:39.332Z","updated_at":"2025-04-20T00:26:55.550Z","avatar_url":"https://github.com/egorsmkv.png","language":"Python","readme":"# Fail2ban Scripts\n\n## Usage `banned_list.py`\n\nThis script tries to get the banned list of IP addresses by Fail2ban for the service `freeswitch`.\n\nYou can modify the service name if you want to.\n\n```bash\npython ./banned_list.py freeswitch\n```\n\nIn the response you will get JSON output with the following (data can be different, of course):\n\n```json\n{\"currently_banned\": 11, \"total_banned\": 15, \"banned_ips\": [\"185.108.106.105\", \"193.46.255.195\", \"193.46.255.214\", \"196.196.203.86\", \"52.232.132.24\", \"103.145.13.81\", \"23.148.145.210\", \"103.145.13.247\", \"141.98.10.188\", \"45.34.5.54\", \"40.86.206.158\"]}\n```\n\n## Usage `unban.py`\n\nThis script tries to unban an IP address.\n\nYou can modify the IP address if you want to.\n\n```bash\npython ./unban.py 185.108.106.105\n```\n\nIn the response you will get JSON output with the following (data can be different, of course):\n\n```json\n{\"success\": true}\n```\n\nor this (if the IP address is incorrect):\n\n```json\n{\"error\": true, \"reason\": \"it seems IP does not exist\"}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorsmkv%2Ffail2ban-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegorsmkv%2Ffail2ban-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegorsmkv%2Ffail2ban-scripts/lists"}