From 4d9dcfcfc93ce12f274be9638d4000148f20b3f6 Mon Sep 17 00:00:00 2001 From: John D Date: Sun, 31 May 2020 06:54:46 -0700 Subject: [PATCH] Update on_boot.sh --- run-pihole/udm-files/on_boot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run-pihole/udm-files/on_boot.sh b/run-pihole/udm-files/on_boot.sh index 5874546..63495c8 100644 --- a/run-pihole/udm-files/on_boot.sh +++ b/run-pihole/udm-files/on_boot.sh @@ -15,3 +15,5 @@ podman start pihole #Adjust these rules to your setup and interfaces iptables -t nat -C PREROUTING -i br0 -p udp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3 || iptables -t nat -A PREROUTING -i br0 -p udp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3 iptables -t nat -C PREROUTING -i br0 -p tcp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3 || iptables -t nat -A PREROUTING -i br0 -p tcp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3 +iptables -t nat -C POSTROUTING -o br0 -d 10.0.5.3 -p tcp --dport 53 -j MASQUERADE || iptables -t nat -A POSTROUTING -o br0 -d 10.0.5.3 -p tcp --dport 53 -j MASQUERADE +iptables -t nat -C POSTROUTING -o br0 -d 10.0.5.3 -p udp --dport 53 -j MASQUERADE || iptables -t nat -A POSTROUTING -o br0 -d 10.0.5.3 -p udp --dport 53 -j MASQUERADE