From 2d76497a03f29756565c4d245183dbd325b7ae75 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 20 Jul 2024 04:05:05 +0000 Subject: [PATCH] Add working pihole container At least, it responds to DNS requests --- quinn/containers/pihole.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 quinn/containers/pihole.sh diff --git a/quinn/containers/pihole.sh b/quinn/containers/pihole.sh new file mode 100755 index 0000000..cb0e32b --- /dev/null +++ b/quinn/containers/pihole.sh @@ -0,0 +1,18 @@ +#!/run/current-system/sw/bin/env bash +podman run -it --rm \ + --env TZ=America/Phoenix \ + --env DNSMASQ_LISTENING=all \ + --name pihole \ + -p 192.168.1.5:53:53/tcp \ + -p 192.168.1.5:53:53/udp \ + -p 192.168.1.5:67:67 \ + -p 127.0.0.1:10000:80 \ + -v /etc/pihole/config:/etc/pihole \ + -v /etc/pihole/dnsmasq.d:/etc/dnsmasq.d \ + docker.io/pihole/pihole:latest + #--add-host postgresql:192.168.1.1 \ + #--conmon-pidfile /opt/run/gitea.pid \ + #-v /etc/timezone:/etc/timezone:ro \ + #-v /etc/localtime:/etc/localtime:ro \ + #-d \ + #--net slirp4netns:allow_host_loopback=true \