-
Notifications
You must be signed in to change notification settings - Fork 480
Description
I do not get ufw-docker to work on both a Raspberry Pi (Debian 11) or a VPS (Debian 12).
This is what I do:
Install Docker without starting any containers
Stop Docker
Install ufw-docker
Restart UFW
Start Docker
Verify /etc/ufw/after.rules
Reboot server
Start containers using Portainer stacks (Docker Compose)
Containers are automatically accessible outside localhost
Taking Pi-Hole as an example, DNS is accessible, GUI is accessible and iptables lists this:
iptables -L | grep pi.hole
ACCEPT tcp -- anywhere pi.hole tcp dpt:domain
ACCEPT udp -- anywhere pi.hole udp dpt:domain
ACCEPT tcp -- anywhere pi.hole tcp dpt:http
This is not expected behaviour, and I do not know how to fix it.