Skip to content

Instantly share code, notes, and snippets.

@NikGro
Last active March 31, 2025 11:26
Show Gist options
  • Select an option

  • Save NikGro/1314acaf1f09ef82011d987e4b265d94 to your computer and use it in GitHub Desktop.

Select an option

Save NikGro/1314acaf1f09ef82011d987e4b265d94 to your computer and use it in GitHub Desktop.
CS-Unifi-Bouncer - Unraid Template
<?xml version="1.0"?>
<Container version="2">
<Name>Crowdsec-Unifi-Bouncer</Name>
<Repository>ghcr.io/teifun2/cs-unifi-bouncer:latest</Repository>
<Registry/>
<Network>bridge</Network>
<MyIP/>
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support/>
<Project/>
<Overview>This repository aim to implement a CrowdSec bouncer for the routers of Unifi to block malicious IP to access your services. For this it leverages Unifi API to populate a dynamic Firewall Address List. Specically the Go Library go-unifi is used.&#xD;
&#xD;
</Overview>
<Category>Security: Network:Management Status:Stable</Category>
<WebUI/>
<TemplateURL/>
<Icon>https://github.com/teifun2/cs-unifi-bouncer/raw/main/docs/assets/crowdsec_unifi_logo.png</Icon>
<ExtraParams/>
<PostArgs/>
<CPUset/>
<DateInstalled>1743420245</DateInstalled>
<DonateText/>
<DonateLink/>
<Requires/>
<Config Name="Corwdsec Bouncer API-Key" Target="CROWDSEC_BOUNCER_API_KEY" Default="Enter Crowdsec API-Key Here" Mode="" Description="As provided by Crowdsec via: &#13;&#10;&#13;&#10;CSCLI Bouncers add [NAME]" Type="Variable" Display="always" Required="true" Mask="false">Enter Crowdsec API-Key Here</Config>
<Config Name="Crowdsec URL" Target="CROWDSEC_URL" Default="http://crowdsec:8080/" Mode="" Description="Format: http://XXX.XXX.XXX.XXX:PPPP/" Type="Variable" Display="always" Required="false" Mask="false">http://crowdsec:8080/</Config>
<Config Name="Unifi IP" Target="UNIFI_HOST" Default="none" Mode="" Description="Format: https://XXX.XXX.XXX.XXX" Type="Variable" Display="always" Required="false" Mask="false">https://192.168.1.1</Config>
<Config Name="Skip SSL" Target="UNIFI_SKIP_TLS_VERIFY" Default="false" Mode="" Description="Change to " Type="Variable" Display="always" Required="true" Mask="false">false</Config>
<Config Name="Unifi API Key" Target="UNIFI_API_KEY" Default="Enter Unifi API-Key Here" Mode="" Description="As provided by: Settings &amp;gt; Control Plane &amp;gt; Integrations" Type="Variable" Display="always" Required="false" Mask="false">Enter Unifi API-Key Here</Config>
<TailscaleStateDir/>
</Container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment