Pihole docker container exposed 8080 to internet

Expected Behaviour:

[I am running pihole on raspberry pi ubuntu server 20.04 on a docker image, docker exposed my ports to the internet, I am running pihole web interface on port 8080 which should be accessible only on the local network, but it got exposed to the internet, and container ignoring my UFW rules, I tried adding **iptables -I DOCKER-USER -i ext_if ! -s 192.168.1.0/24 -j DROP** to my IP tables but this killed pi-hole]

Actual Behaviour:

[port 8080 exposed to the internet]

Debug Token:

[ https://tricorder.pi-hole.net/l2x84vuyge]

The container cannot control how your router handles port 8080 visibility to the internet.

Is that a typo?

Sorry I edited my question,

I am using a router and port 8080 is blocked in router.

I am not very good at networking. It's going top of my head how exactly my server opened port 8080 to the world

Sorry this happened due to i configured my server as DMZ zone which exposed all ports.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.