Unable to install crowdsec-firewall-bouncer-iptables

Trying to install crowdsec-firewall-bouncer-iptables on Ubuntu 22.04, have a docker crowdsec installed as a container. I am getting the fiollowing when I try & install:
johnt@jsthomes:~$ sudo apt install crowdsec-firewall-bouncer-iptables
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
ipset libipset13
The following NEW packages will be installed:
crowdsec-firewall-bouncer-iptables ipset libipset13
0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/4,126 kB of archives.
After this operation, 12.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libipset13:amd64.
(Reading database … 119361 files and directories currently installed.)
Preparing to unpack …/libipset13_7.15-1build1_amd64.deb …
Unpacking libipset13:amd64 (7.15-1build1) …
Selecting previously unselected package ipset.
Preparing to unpack …/ipset_7.15-1build1_amd64.deb …
Unpacking ipset (7.15-1build1) …
Selecting previously unselected package crowdsec-firewall-bouncer-iptables.
Preparing to unpack …/crowdsec-firewall-bouncer-iptables_0.0.27_amd64.deb …
Unpacking crowdsec-firewall-bouncer-iptables (0.0.27) …
Setting up libipset13:amd64 (7.15-1build1) …
Setting up ipset (7.15-1build1) …
Setting up crowdsec-firewall-bouncer-iptables (0.0.27) …
INFO[0000] crowdsec-firewall-bouncer v0.0.27-debian-pragmatic-8d09f19d69e92a63e63888794af3a57c6ade3489
FATA[0000] unable to read config file: while reading yaml file: open /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml: no such file or directory
Failed to get unit file state for crowdsec-firewall-bouncer.service: No such file or directory
Unit crowdsec-firewall-bouncer.service does not exist, proceeding anyway.
Failed to enable unit: Unit file crowdsec-firewall-bouncer.service does not exist.
dpkg: error processing package crowdsec-firewall-bouncer-iptables (–configure):
installed crowdsec-firewall-bouncer-iptables package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-1) …
Processing triggers for libc-bin (2.35-0ubuntu3.1) …
Errors were encountered while processing:
crowdsec-firewall-bouncer-iptables
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have triedf apt remove crowdsec-firewall-bouncer-iptables, left the docker container on & shutdown all with no success. Any thoughts & help would be appreciated.

Try sudo mkdir -p /etc/crowdsec/bouncers/ then install the firewall bouncer believes it being installed where crowdsec is installed and since CrowdSec is within the container it doesnt know where to create configuration files.

Thanks for helping iiAmLoz, I am afraid it did not change the problem. To me it seems that it is doing an UPGRADE as opposed to a full INSTALL.

If it was doing an INSTALL then it would create the files needed etc?

I found my problem an incorrect port number & a clash of port number. All up & running now. It was iiAmLoz that set me off in the right direction. Thank you.

1 Like

Perfect! glad you managed to resolve it