Skip to content

crowdsec-firewall-bouncer: fix config file conflict with crowdsec package#28991

Open
leow149 wants to merge 4 commits intoopenwrt:masterfrom
leow149:master
Open

crowdsec-firewall-bouncer: fix config file conflict with crowdsec package#28991
leow149 wants to merge 4 commits intoopenwrt:masterfrom
leow149:master

Conversation

@leow149
Copy link
Copy Markdown

@leow149 leow149 commented Mar 26, 2026

📦 Package Details

Maintainer: @erdoukki

Description:
crowdsec-firewall-bouncer was installing its UCI config to /etc/config/crowdsec,
which is the same path owned by the crowdsec package. When both packages are
installed together, apk fails with:

ERROR: crowdsec-firewall-bouncer-0.0.34-r1: trying to overwrite etc/config/crowdsec owned by crowdsec-1.6.2-r1.

The two config files have completely different contents (crowdsec configures the
main agent; crowdsec-firewall-bouncer configures the bouncer), so the collision
is purely a naming issue. This PR resolves it by moving the bouncer config to its
own file /etc/config/crowdsec-firewall-bouncer and updating all references in the
init script accordingly.

Fixes: #28615

⚠️ Breaking change for existing users: Anyone who has customized the bouncer
settings in /etc/config/crowdsec will need to move their config bouncer section
to /etc/config/crowdsec-firewall-bouncer after upgrading.


🧪 Run Testing Details

  • OpenWrt Version: 25.12.0-rc5
  • OpenWrt Target/Subtarget: mediatek/filogic
  • OpenWrt Device: BananaPi BPI-R4

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

leow149 added 4 commits March 26, 2026 14:18
Signed-off-by: leow149 <47112821+leow149@users.noreply.github.com>
Signed-off-by: leow149 <47112821+leow149@users.noreply.github.com>
Signed-off-by: leow149 <47112821+leow149@users.noreply.github.com>
Signed-off-by: leow149 <47112821+leow149@users.noreply.github.com>
@dwardor
Copy link
Copy Markdown
Contributor

dwardor commented Mar 26, 2026

Have you checked if luci-app_crowdsec-firewall-boucdr also need what config file it ises ?

@leow149
Copy link
Copy Markdown
Author

leow149 commented Mar 26, 2026

Have you checked if luci-app_crowdsec-firewall-boucdr also need what config file it ises ?

Good catch, just filed a PR for that to. Check openwrt/luci#8472

Copy link
Copy Markdown
Contributor

@systemcrash systemcrash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK

leow149 pushed a commit to leow149/luci that referenced this pull request Mar 27, 2026
…ewall-bouncer

The UCI config file for crowdsec-firewall-bouncer is being renamed from
`crowdsec` to `crowdsec-firewall-bouncer` to avoid a file ownership
conflict with the crowdsec package (openwrt/packages#28991). Update
form.js and the rpcd ACL file accordingly.

Signed-off-by: Leo <git@lucidmail.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crowdsec-firewall-bouncer: Installing fails as it tries to overwrite etc/config/crowdsec owned by crowdsec

3 participants