Hi people. I am running pihole under podman and its dedicated system account on my NAS. Now, from the NAS, I get a connection refused on ip.of.the.nas:53 but everywhere else in my network, pihole works perfectly. To run pihole as a rootless container, i made it listen on 1053 and I have a firewall redirection from 53 to 1053 for both udp and tcp. Any pointer to where (and how) I can debug this ?

Edit: Small precision about my current setup : ISP router (so I can’t really do anything on it) and NAS running opensuse leap

  • JASN_DE@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    26 days ago

    The request from the other machines go through the firewall and are being redirected, the requests from the NAS are basically trying to connect to localhost, so no redirection here as the requests aren’t leaving the machine.

    • BluescreenOfDeath@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      26 days ago

      I agree.

      So the solution, OP, is to set the DNS settings on your NAS to your router’s internal IP so the firewall can redirect the traffic to your new port.

  • oranki@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    26 days ago

    Have you considered lowering the unprivileged port limit instead?

    sudo sysctl -w net.ipv4.ip_unprivileged_port_start=53 | sudo tee -a /etc/sysctl.conf  
    

    Then remove the firewall rule and bind to port 53.

    Edit: typo