Hey all

Updating to 2025-03a on Ubuntu 20.04.6 I hit this problem: mailcow/mailcow-dockerized Icon 2025-3 netfilter crashes

### Contribution guidelines - [x] I've read the [contribution guidelines](https://github.com/mailcow/mailcow-dockerized/blob/master/CONTRIBUTING.md) and wholeheartedly agree ### I've found a bug and checked that ... - [x] ... I understand that not following the below instructions will result in
Contribution guidelines I've read the contribution guidelines and wholeheartedly agree I've found a bug and checked that ... ... I understand that not following the below instructions will result i...
8

What is this iptables chain protecting us against?

Chain MAILCOW (2 references)
target     prot opt source               destination
DROP       tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 3306,6379,8983,12345

I canโ€™t seem to find anything in my mailcow that is listening on these ports

3306 would be the mariadb server in the mysql-mailcow container, but that port number is not bound to anything that is accessible. The mariadb instance is bound to port 13306 on localhost.

The other ports donโ€™t seem to have any relevance.

Thanks

  • 3306 - MariaDB
    6379 - Redis
    8983 - Solr (previous full-text search, now removed since ?2025-01?)
    12345 - Dovecot

    About purpose you will need to see full iptables i would guess somewhere before this iptables accept those ports from specific source aka from within mailcow and rest are dropping (0.0.0.0/0) from envywhere else.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

ETNyx

GitHub Icon 3306 - MariaDB
GitHub Icon 6379 - Redis
8983 - Solr (previous full-text search, now removed since ?2025-01?)
GitHub Icon 12345 - Dovecot

Thanks, I should have looked more deeply into my docker-compose.yml file. I was just focused on the open ports.

About purpose you will need to see full iptables i would guess somewhere before this iptables accept those ports from specific source aka from within mailcow and rest are dropping (0.0.0.0/0) from envywhere else.

Correct, the DOCKER chain enables some of them for the relevant container destination (no solr, assume deprecated) and drops everything else:

Chain DOCKER (2 references)
target     prot opt source               destination
[snip]
ACCEPT     tcp  --  0.0.0.0/0            172.22.1.250         tcp dpt:12345
ACCEPT     tcp  --  0.0.0.0/0            172.22.1.5           tcp dpt:3306
ACCEPT     tcp  --  0.0.0.0/0            172.22.1.249         tcp dpt:6379
[snip]
DROP       all  --  0.0.0.0/0            0.0.0.0/0
DROP       all  --  0.0.0.0/0            0.0.0.0/0

And then the DROP rule previously mentioned discards access from any other source to any other destination on those ports.

Thanks for the pointer. ๐Ÿ‘๏ธ

No one is typing