Skip to main content

Synology - PiHole Configuration

This is to create a MAC vlan on you synology to bridge interfaces

My testing vlan uses 192.168.253.0/24

sudo docker network create -d macvlan -o parent=eth3 --subnet=192.168.253.0/24 --gateway=192.168.253.1 --ip-range=192.168.253.44/32 ph_network

YAML Configurations

version: 

Install"3" Portainer

services:

sudopihole: dockercontainer_name: runpihole image: pihole/pihole:latest ports: --name= "portainer"53:53/tcp" -d "53:53/udp" --restart=always "67:67/udp" -p 9000:9000"80:80/tcp" networks: -v /var/run/docker.sock:/var/run/docker.sockph_network -v ph_bridge environment: TZ: 'America/Montreal' FTLCONF_webserver_api_password: '[Your_Password_Here]' DNSMASQ_LISTENING: local volumes: - '/volume1/docker/portainer:pihole/pihole:/dataetc/pihole' -v '/usr/syno/volume1/docker/pihole/dnsmasq.d:/etc/certificate/system/default:/certsdnsmasq.d' portainer/portainer-cecap_add: - NET_ADMIN restart: unless-stopped networks: ph_bridge: driver: bridge ipam: config: - subnet: 192.168.100.0/24 gateway: 192.168.100.1 ip_range: 192.168.100.2/32 ph_network: name: ph_network external: true

Accessing the pi-hole remotely

https://github.com/prt1999/Synology_model_upgrade

https://xpenology.com/forum/topic/69328-converting-ds1515-into-ds1517-dsm-72/page/3/

https://archive.synology.com/download/Os/DSM/7.2.2-72806

sh-4.4# sudo ./patch.sh
----------------------------------------
Synology Avoton model upgrade v1.0 - pRT
----------------------------------------

Check NAS device : OK
  Found: DS1515+-j
Check running DSM version: OK
  Found: (7.1.1 42962-8)
Download the necessary files.
DS1517+.sql                              100%[================================================================================>]   3.52K  --.-KB/s    in 0s      
disableBD.sql                            100%[================================================================================>]     397  --.-KB/s    in 0s      
DSM_DS1515+_42962.pat                    100%[================================================================================>] 341.96M  17.9MB/s    in 24s     
sae.py                                   100%[================================================================================>]   6.35K  --.-KB/s    in 0s      
Unpack DSM: DSM_DS1515+_42962.pat
Synology Archive Extractor v1.1 - K4L0
--------------------------------------
Success:  True

Backup bios.ROM to bios.ROM.original
Patch bios.ROM
Upgrade BIOS
./patch.sh: line 69: ./tmp/updater: Permission denied

Change synoinfo.conf in synology_avoton_1515+ to synology_avoton_1517+
Change synoinfo.conf in DS1515+ to DS1517+

192.1638.253.44/admin


Create Task Schedulers

Done.

Then manually update to DS1517+ DSM 7.2.x from the web interface.