Replies: 2 comments 5 replies
-
SummaryI can observe something Similar (Fedora 40 with all Updates installed as of Today). But I CANNOT / DO NOT ALWAYS observe EXACTLY the same behavior. I have the issue in both cases to be honest ... Using Loopback Address on the Podman Host:
Using the "wrong" IP Address that is NOT registered in Container's
Using the "right" IP Address that IS registered registered in Container's
Using VolumesI tried only using
Funnily enough TCP works in my case using Host Address (192.168.8.13). Another Note: for whatever reason the Podman Host (Virtual Machine) is getting 2 IPv4 Addresses (1 Static, 1 via DHCP). 192.168.8.13 (Static) and 192.168.13.161 (DHCP). For poking around I did a
NOTE that only ONE IP address is pointing to the Container ! Indeed now both UDP and TCP work, if I use the right IP:
Using Bind MountsI tried with both
Or
The Now I try the same Inspection of /etc/hosts from within the container:
And doing the
|
Beta Was this translation helpful? Give feedback.
-
@MrSSvard could you capture some traffic so that we can understand where those DNS queries end up? There are basically two ways:
If you don't want to share the resulting captures because they contain confidential details, you can use |
Beta Was this translation helpful? Give feedback.
-
Hi!
I have a weird behavior that I'm trying to figure out.
I'm setting up Pihole in rootless podman but I'm having issues with timeouts and other errors with exposing ports while using bind mounted folders.
Connecting via the loopback address works fine for both tcp and udp but connecting via the host address (e.g. 192.168.1.53) either from the same machine or from another computer, I get a timeout on udp and an error over tcp.
Both work fine with regular volume though.
Steps to reproduce:
Working setup with regular volumes
podman run --rm -e WEBPASSWORD=123 -p 8153:53/tcp -p 8153:53/udp -p 8180:80 -v etc:/etc/pihole/:Z -v masq:/etc/dnsmasq.d/:Z docker.io/pihole/pihole:latest
dig @127.0.0.1 -p 8153 google.com
# works finedig @127.0.0.1 -p 8153 +tcp google.com
# works finedig @192.168.1.53 -p 8153 google.com
# works finedig @192.168.1.53 -p 8153 +tcp google.com
# works fineNon-working setup with bind mounted volumes
mkdir -p ~/volumes/pihole-etc ~/volumes/pihole-etc-dnsmasq.d
podman run --rm -e WEBPASSWORD=123 -p 8153:53/tcp -p 8153:53/udp -p 8180:80 -v ~/volumes/pihole-etc/:/etc/pihole/:Z -v ~/volumes/pihole-etc-dnsmasq.d/:/etc/dnsmasq.d/:Z docker.io/pihole/pihole:latest
dig @127.0.0.1 -p 8153 google.com
# works finedig @127.0.0.1 -p 8153 +tcp google.com
# works finedig @192.168.1.53 -p 8153 google.com
# communications error to 192.168.1.53#8153: timed outdig @192.168.1.53 -p 8153 +tcp google.com
# communications error to 192.168.1.53#8153: end of fileFiles are created in both volume types and they look fine.
About my system:
Fedora Silverblue 40
podman-5.2.2-1.fc40.x86_64
passt-0^20240906.g6b38f07-1.fc40.x86_64
I have stopped firewalld
I ran
setenforce 0
I also confirmed the issue on a separate system:
Fedora IoT 40
podman-5.2.2-1.fc40.x86_64
passt-0^20240906.g6b38f07-1.fc40.x86_64
Am I misunderstanding something or doing something incorrectly?
If it were a misconfiguration of pihole, I think it would have failed on the loopback interface too.
Any insight is welcome, thanks!
Beta Was this translation helpful? Give feedback.
All reactions