2025-05-25 17:27:33 +02:00
2024-11-10 14:27:32 +01:00
2025-01-16 15:44:56 +01:00
2024-11-10 14:27:32 +01:00
2025-05-25 17:27:33 +02:00
2024-11-10 13:40:13 +01:00
2025-01-16 15:44:56 +01:00
2024-11-10 14:27:32 +01:00
2024-12-18 22:33:13 +01:00

crowdsec-legacy-firrewall-bouncer

A Crowdsec firewall bouncer based on crowdsec-custom-bouncer aimed at systems without support for ipset.

Tags :

Environment variables :

  • IPTABLES_COMMENT : if set, iptables will load the comment module and use the reason argument passed by crowdsec-custom-bouncer as the comment
  • IPTABLES_INSERT : insert new firewall rules at a fixed position
  • API_KEY : crowdsec api key
  • IPTABLES_CHAIN : chain to use

Configuration :

Set your custom configuration in the crowdsec-custom-bouncer.yaml.local file and mount it as a volume at the root of the container. See Overriding values or bouncers/custom for information about the configuration.

Example configuration :

log_mode: stdout
scenarios_containing: ["ssh"]
origins: ["cscli", "crowdsec"]
supported_decisions_types:
  - ban

Docker compose :

services:
    cs-firewall-bouncer:
        image: gitea.ar2000.me/ar2000/crowdsec-legacy-firewall-bouncer:legacy
        restart: unless-stopped
        environment:
            - IPTABLES_INSERT=3
            - IPTABLES_COMMENT=true
        cap_add:
            # allow modification of host's iptable
            - NET_ADMIN
            - NET_RAW
        network_mode: "host"
        volumes:
            - ./crowdsec-custom-bouncer.yaml.local:/crowdsec-custom-bouncer.yaml.local #load custom config values
Description
Crowdsec firewall bouncer for systems that does not support ipset. Base on crowdsec-custom-bouncer
Readme MIT 54 KiB
Languages
Shell 66.7%
Dockerfile 33.3%