{"id":29978836,"url":"https://github.com/knylbyte/cs-firewall-bouncer","last_synced_at":"2026-02-09T05:01:49.084Z","repository":{"id":300047362,"uuid":"1005026379","full_name":"knylbyte/cs-firewall-bouncer","owner":"knylbyte","description":"This repository creates a crowdsec firewall bouncer into a docker container and secures your host system. ","archived":false,"fork":false,"pushed_at":"2025-12-03T14:12:13.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T13:40:53.067Z","etag":null,"topics":["container","crowdsec","crowdsec-bouncer","crowdsec-firewall-bouncer","cs-firewall-bouncer","docker","ipset","iptables","nftables","security"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/knylbyte.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-19T14:48:18.000Z","updated_at":"2025-12-03T14:12:16.000Z","dependencies_parsed_at":"2025-06-19T16:36:34.894Z","dependency_job_id":"03523020-6f06-49b4-8cef-ce66e095116c","html_url":"https://github.com/knylbyte/cs-firewall-bouncer","commit_stats":null,"previous_names":["knylbyte/cs-firewall-bouncer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/knylbyte/cs-firewall-bouncer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knylbyte%2Fcs-firewall-bouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knylbyte%2Fcs-firewall-bouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knylbyte%2Fcs-firewall-bouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knylbyte%2Fcs-firewall-bouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knylbyte","download_url":"https://codeload.github.com/knylbyte/cs-firewall-bouncer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knylbyte%2Fcs-firewall-bouncer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29257506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["container","crowdsec","crowdsec-bouncer","crowdsec-firewall-bouncer","cs-firewall-bouncer","docker","ipset","iptables","nftables","security"],"created_at":"2025-08-04T12:13:16.918Z","updated_at":"2026-02-09T05:01:49.062Z","avatar_url":"https://github.com/knylbyte.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrowdSec Firewall Bouncer Docker Image\n\nThis repository provides a Dockerfile to build a minimal container for running the [CrowdSec firewall bouncer](https://github.com/crowdsecurity/cs-firewall-bouncer). The bouncer updates the host's iptables rules according to decisions from a CrowdSec Local API (LAPI).\n\n## Build\n\n```bash\ndocker build -t crowdsec-firewall-bouncer .\n```\n\n## Usage\n\nThe container expects at least the following environment variables:\n\n- `CROWDSEC_API_KEY` – API key used by the bouncer\n- `CROWDSEC_PORT` – port where the CrowdSec LAPI is reachable (default: `8080`)\n- `CROWDSEC_LAPI_URL` can specify the full URL to the LAPI (default: `127.0.0.1`)\n- `PROMETHEUS_ENABLED` – set to `true` to enable the Prometheus endpoint (default: `false`)\n- `PROMETHEUS_PORT` – port for the Prometheus metrics endpoint (default: `60601`)\n\nConfiguration lives in `/etc/crowdsec`. If `crowdsec-firewall-bouncer.yaml` is missing, the entrypoint copies a default file on first start. To persist changes, mount the directory as a volume:\n\n```bash\ndocker run -d \\\n  --name cs-firewall-bouncer \\\n  --cap-add=NET_ADMIN --cap-add=NET_RAW \\\n  -e CROWDSEC_API_KEY=\u003cAPI_KEY\u003e \\\n  -e CROWDSEC_PORT=8080 \\\n  -e CROWDSEC_LAPI_URL=http://127.0.0.1:8080 \\\n  -e PROMETHEUS_ENABLED=false \\\n  -e PROMETHEUS_PORT=60601 \\\n  -v /path/to/config:/etc/crowdsec \\\n  --network=host \\\n  crowdsec-firewall-bouncer\n```\n\nThe image exposes no ports and is based on a minimal Alpine system.\n\nDuring build a self-signed certificate valid for ten years is generated in\n`/etc/crowdsec/tls`. HTTPS remains disabled by default; uncomment the relevant\noptions in the configuration if you want to use it. Logs are written to\n`/var/log/crowdsec`.\n\n## Notes\n\n- Modifying firewall rules requires elevated privileges (`--cap-add=NET_ADMIN --cap-add=NET_RAW` or `--privileged`).\n- Ensure the CrowdSec LAPI is already running and reachable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknylbyte%2Fcs-firewall-bouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknylbyte%2Fcs-firewall-bouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknylbyte%2Fcs-firewall-bouncer/lists"}