# Iptables bouncer error on apt upgrade

**URL:** <https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584>\
**Category:** Uncategorized\
**Created:** [January 25, 2022, 10:29pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584 "2022-01-25T22:29:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![baudneo](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/baudneo/32/186_2.png) [@baudneo](https://discourse.crowdsec.net/u/baudneo)\
**Post date:** [January 25, 2022, 10:29pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/1 "2022-01-25T22:29:13Z")

</div>

I have been told to not post questions in the discourse and also ask question in the discord sever so I am removing all my posts from discourse.

---

<div class="post-metadata">

**Author:** ![baudneo](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/baudneo/32/186_2.png) [@baudneo](https://discourse.crowdsec.net/u/baudneo)\
**Post date:** [January 25, 2022, 10:34pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/2 "2022-01-25T22:34:11Z")

</div>

I have been told to not post questions in the discourse and also ask question in the discord sever so I am removing all my posts from discourse.

---

<div class="post-metadata">

**Author:** ![baudneo](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/baudneo/32/186_2.png) [@baudneo](https://discourse.crowdsec.net/u/baudneo)\
**Post date:** [January 25, 2022, 10:59pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/3 "2022-01-25T22:59:35Z")

</div>

I have been told to not post questions in the discourse and also ask question in the discord sever so I am removing all my posts from discourse.

---

<div class="post-metadata">

**Author:** ![discword](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@discword](https://discourse.crowdsec.net/u/discword)\
**Post date:** [January 26, 2022, 1:47pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/4 "2022-01-26T13:47:12Z")

</div>

I just got the same exact error on Ubuntu 20.04, restarting the crowdesc and crowdsec-firewall-bouncer service and doing `dpkg --configure -a` seems to have fixed the issue.

---

<div class="post-metadata">

**Author:** ![thibault](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/thibault/32/2_2.png) [@thibault](https://discourse.crowdsec.net/u/thibault)\
**Post date:** [January 26, 2022, 3:41pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/5 "2022-01-26T15:41:54Z")

</div>

From the error logs, it seems that the API key used by your bouncer is invalid :

```auto
Jan 25 15:55:18 debian crowdsec-firewall-bouncer[2258]: time="25-01-2022 15:55:18" level=fatal msg="API error: access forbidden"

```

Can you try to generate a new one (`cscli bouncers add MyBouncer`) and put the API key in the configuration file of your bouncer ?

---

<div class="post-metadata">

**Author:** ![discword](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@discword](https://discourse.crowdsec.net/u/discword)\
**Post date:** [January 26, 2022, 4:24pm UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/6 "2022-01-26T16:24:49Z")

</div>

You’re right, `dpkg --configure -a` regenerated my api key and it works again since.  
But I’ve also noticed I have multiple FirewallBouncer-XXXXXXXX in my bouncers list, is this normal?

 ![bouncers](https://europe1.discourse-cdn.com/flex013/uploads/crowdsec/original/1X/896ff000dab75f81606455c49cda3710f8c8caf0.png)

Can I safely delete all those bouncers except for the first one?

---

<div class="post-metadata">

**Author:** ![baudneo](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/baudneo/32/186_2.png) [@baudneo](https://discourse.crowdsec.net/u/baudneo)\
**Post date:** [February 6, 2022, 11:32am UTC](https://discourse.crowdsec.net/t/iptables-bouncer-error-on-apt-upgrade/584/7 "2022-02-06T11:32:28Z")

</div>

I have been told to not post questions in the discourse and also ask question in the discord sever so I am removing all my posts from discourse.
