diff --git a/nextdns/README.md b/nextdns/README.md index 5605f43..c0d38aa 100644 --- a/nextdns/README.md +++ b/nextdns/README.md @@ -50,3 +50,4 @@ If you have already installed PiHole, skip right to step 6. ``` Note: 8. Update your DNS Servers to 10.0.5.3 (or your custom ip) in all your DHCP configs. +9. Uncomment ```podman start nextdns``` in on_boot.sh diff --git a/nextdns/install-cni-plugins.sh b/nextdns/install-cni-plugins.sh index 881881d..21a924f 100644 --- a/nextdns/install-cni-plugins.sh +++ b/nextdns/install-cni-plugins.sh @@ -1,6 +1,5 @@ #!/bin/sh -cd /tmp -curl -L https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-arm64-v0.8.6.tgz -o cni.tgz - +curl -L https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-arm64-v0.8.6.tgz -o /tmp/cni.tgz mkdir -p /mnt/data/podman/cni/ -tar xf cni.tgz -C /mnt/data/podman/cni/ +tar xf /tmp/cni.tgz -C /mnt/data/podman/cni/ +rm /tmp/cni.tgz diff --git a/nextdns/udm-files/on_boot.sh b/nextdns/udm-files/on_boot.sh index 32881f2..ec686f6 100644 --- a/nextdns/udm-files/on_boot.sh +++ b/nextdns/udm-files/on_boot.sh @@ -12,7 +12,8 @@ ip link set br5.mac promisc on ip addr add 10.0.5.2/24 dev br5.mac ip link set br5.mac up ip route add 10.0.5.3/32 dev br5.mac proto static scope link -podman start nextdns +# Remove the # on the line below when Docker container is deployed. +#podman start nextdns # optional if you dont want to force everything through nextdns. also add anymore bridges for other networks (br5, 10 etc) 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 diff --git a/on-boot-script/examples/udm-files/on_boot.sh b/on-boot-script/examples/udm-files/on_boot.sh index 9a98f78..2287082 100644 --- a/on-boot-script/examples/udm-files/on_boot.sh +++ b/on-boot-script/examples/udm-files/on_boot.sh @@ -1,3 +1,5 @@ #!/bin/sh + +## example command to run, please replace with your own. podman start wpa_supplicant-udmpro diff --git a/run-pihole/README.md b/run-pihole/README.md index 7664b43..8ad0c00 100644 --- a/run-pihole/README.md +++ b/run-pihole/README.md @@ -46,3 +46,4 @@ podman exec -it pihole pihole -a -p YOURNEWPASSHERE ``` 8. Update your DNS Servers to 10.0.5.3 (or your custom ip) in all your DHCP configs. 9. Access the pihole like you would normally. +9. Uncomment ```podman start pihole``` in on_boot.sh diff --git a/run-pihole/install-cni-plugins.sh b/run-pihole/install-cni-plugins.sh index 881881d..43cd50c 100644 --- a/run-pihole/install-cni-plugins.sh +++ b/run-pihole/install-cni-plugins.sh @@ -1,6 +1,5 @@ #!/bin/sh -cd /tmp -curl -L https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-arm64-v0.8.6.tgz -o cni.tgz - +curl -L https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-arm64-v0.8.6.tgz -o /tmp/cni.tgz mkdir -p /mnt/data/podman/cni/ -tar xf cni.tgz -C /mnt/data/podman/cni/ +tar xf /tmp/cni.tgz -C /mnt/data/podman/cni/ +rm /tmp/cni.tgz \ No newline at end of file diff --git a/run-pihole/udm-files/on_boot.sh b/run-pihole/udm-files/on_boot.sh index 7d9b329..5fd7d53 100644 --- a/run-pihole/udm-files/on_boot.sh +++ b/run-pihole/udm-files/on_boot.sh @@ -13,7 +13,8 @@ ip link set br5.mac promisc on ip addr add 10.0.5.2/24 dev br5.mac ip link set br5.mac up ip route add 10.0.5.3/32 dev br5.mac proto static scope link -podman start pihole +# Remove the # on the line below when Docker container is deployed. +#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