Create a new bridge and configure it as below:
- Networkname: Pi-Hole_NET
- Set manual configuration
- Subnet: 172.18.0.0/30
- Network: 172.18.0.0/30
- Gateway: 172.18.0.1
#Note: This network configuration gives your host always IP 172.18.0.2.
Access your router GUI/CLI and create a static route (destination: network bridge interface docker) from your router to the synology node. Example: route add -net 172.18.0.2 netmask 255.255.255.252 gw 172.16.4.5.
#Note: 172.16.4.5 = IP Synology NAS.
#Add Container with the following options:
- "Execute container using high privilege"
- "Limit System Resources" (Low CPU and 256MB RAM)
- "Restart automatically" (Restart after a Synology host reboot)
- Advanced options: Select your Pi-Hole "Network"
#Change the following IP 172.18.0.6 in:
#Add your own IP.
Run the commands as test user:
<password = test>
#To manual update your Pi Hole blacklist (cron job is already activated):
sudo /usr/local/bin/pihole -g
#To update your Pi Hole version:
sudo /usr/local/bin/pihole -up
#To change your password:
sudo pihole -a -p <my_password>
#To change Pi Hole setting run:
sudo /usr/sbin/service dnsmasq stop
sudo /usr/sbin/service lighttpd stop
sudo /usr/local/bin/pihole -r