Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ufw-docker not stopping Docker from opening ports #125

Open
rickard1133 opened this issue Nov 16, 2024 · 0 comments
Open

ufw-docker not stopping Docker from opening ports #125

rickard1133 opened this issue Nov 16, 2024 · 0 comments

Comments

@rickard1133
Copy link

rickard1133 commented Nov 16, 2024

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.

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

No branches or pull requests

1 participant