{"id":27293899,"url":"https://github.com/solvik/cs-exabgp-bouncer","last_synced_at":"2026-03-15T22:41:12.289Z","repository":{"id":148034673,"uuid":"488592746","full_name":"Solvik/cs-exabgp-bouncer","owner":"Solvik","description":"Crowdsec bouncer to be used with exabgp to blackhole IP addresses","archived":false,"fork":false,"pushed_at":"2022-05-04T15:14:12.000Z","size":3,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-11T04:52:30.027Z","etag":null,"topics":["bgp","crowdsec","crowdsec-bouncer","exabgp","rtbh"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Solvik.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,"zenodo":null}},"created_at":"2022-05-04T13:08:38.000Z","updated_at":"2025-07-28T16:16:34.000Z","dependencies_parsed_at":"2023-05-28T06:45:35.937Z","dependency_job_id":null,"html_url":"https://github.com/Solvik/cs-exabgp-bouncer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Solvik/cs-exabgp-bouncer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvik%2Fcs-exabgp-bouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvik%2Fcs-exabgp-bouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvik%2Fcs-exabgp-bouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvik%2Fcs-exabgp-bouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Solvik","download_url":"https://codeload.github.com/Solvik/cs-exabgp-bouncer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvik%2Fcs-exabgp-bouncer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30553307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bgp","crowdsec","crowdsec-bouncer","exabgp","rtbh"],"created_at":"2025-04-11T22:45:16.724Z","updated_at":"2026-03-15T22:41:12.285Z","avatar_url":"https://github.com/Solvik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cs-exabgp-bouncer\nCrowdsec bouncer to be used with exabgp to blackhole IP addresses\n\n# Description\n\nThis repository is an example of how to integrate [CrowdSec](https://doc.crowdsec.net/) with [Exabgp](https://github.com/Exa-Networks/exabgp) to blackhole IP to a BGP Peer within your network.\n\nThis has been tested to dynamicly blackhole prefix when the [log4j](https://crowdsec.net/blog/detect-block-log4j-exploitation-attempts/) vulnerability came out and prevent potential exploits.\n\n# Usage\n\nWarning: if you use both ipv4 and both ipv6, you need to register 2 bouncers.\nCrowdsec use the API key to track decisions report while pulling the API\n\n```\n$ cscli bouncer add cs-exabgp-bouncer-ipv4\nApi key for 'cs-bgp-bouncer-v4':\n\n   b183089790450bc888dcb07e9cb13e51\n\nPlease keep this key since you will not be able to retrieve it!\n```\n\n\nYou can copy this script in your `/etc/exabgp/scripts/` directory and use the following configuration as an example:\n\n```\nprocess dynamic_routes_v4 {\n    run python3 /etc/exabgp/script/cs-exabgp-bouncer.py -4 --api-key b183089790450bc888dcb07e9cb13e51 --next-hop 192.0.2.1;\n    encoder text;\n}\n\n# ipv4 example\nneighbor 192.168.0.253 {\n    family {\n     ipv4 unicast;\n    }\n    announce {\n     ipv4\n    }\n    router-id 192.168.0.30;\n    local-address 192.168.0.30;\n    local-as 65001;\n    peer-as 65000;\n\n    api {\n        processes [dynamic_routes_v4];\n    }\n}\n```\n\n# Example\n\n```\nusage: cs-exabgp-bouncer.py [-h] [-6 | -4] --lapi-url LAPI_URL --api-key API_KEY --next-hop NEXT_HOP [-c COMMUNITY [COMMUNITY ...]] [-i INTERVAL]\ncs-exabgp-bouncer.py: error: the following arguments are required: --lapi-url, --api-key, --next-hop\n```\n\nThis script provide the ability to set BGP communities to your announce if your setup needs it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvik%2Fcs-exabgp-bouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolvik%2Fcs-exabgp-bouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvik%2Fcs-exabgp-bouncer/lists"}