# How do I install Pi-hole on a Synology NAS?

**URL:** <https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289>\
**Category:** Synology\
**Created:** [October 20, 2016, 5:06pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289 "2016-10-20T17:06:29Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![bakman2](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bakman2/32/1922_2.png) [@bakman2](https://discourse.pi-hole.net/u/bakman2)\
**Post date:** [March 3, 2017, 4:55pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/102 "2017-03-03T16:55:20Z")

</div>

You are not in chroot, or pihole didn't install properly.  
Read all comments.

---

<div class="post-metadata">

**Author:** ![tr53](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/t/c57346/32.png) [@tr53](https://discourse.pi-hole.net/u/tr53)\
**Post date:** [March 3, 2017, 6:37pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/103 "2017-03-03T18:37:23Z")

</div>

Thanks, all works now 🙂

---

<div class="post-metadata">

**Author:** ![whabash090](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/whabash090/32/754_2.png) [@whabash090](https://discourse.pi-hole.net/u/whabash090)\
**Post date:** [March 4, 2017, 11:14am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/104 "2017-03-04T11:14:26Z")

</div>

I also ran into this issue:

```
root@Synohh:/# cat /proc/mounts > /etc/mtab
cat: /proc/mounts: No such file or directory

```

Instead of running the mnt command to mount /proc I exited the chroot, restarted it, and re-entered and that solved it for me.

---

<div class="post-metadata">

**Author:** ![whabash090](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/whabash090/32/754_2.png) [@whabash090](https://discourse.pi-hole.net/u/whabash090)\
**Post date:** [March 4, 2017, 10:33pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/105 "2017-03-04T22:33:10Z")

</div>

Is this working in DSM 6.1 (specifically DSM 6.1-15047 Update 1)? I had it working on DSM 6.0-7321 Update 3 but then updated to 6.1 and it's no longer processing DNS and I can't access the web interface. I noticed the lighttpd web server port got changed back to the default port 80 (I had it setup to serve on 8080), and I updated that again and restarted the webserver but still no luck.

I also just reconfigured via `pihole -r` but that did not work either.

---

<div class="post-metadata">

**Author:** ![bakman2](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bakman2/32/1922_2.png) [@bakman2](https://discourse.pi-hole.net/u/bakman2)\
**Post date:** [March 5, 2017, 8:07am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/106 "2017-03-05T08:07:24Z")

</div>

Yes it is working.  
From chroot, do:

`service dnsmasq restart`

---

<div class="post-metadata">

**Author:** ![warsawday](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@warsawday](https://discourse.pi-hole.net/u/warsawday)\
**Post date:** [March 15, 2017, 9:02am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/107 "2017-03-15T09:02:47Z")

</div>

Hi All,

JFYI on QNAP NAS I just installed a ubuntu docker container and run the command piping the code to bash, that's it:)

---

<div class="post-metadata">

**Author:** ![AtomicLight](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@AtomicLight](https://discourse.pi-hole.net/u/AtomicLight)\
**Post date:** [April 21, 2017, 4:35pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/108 "2017-04-21T16:35:55Z")

</div>

Can you tell me how you installed on your QNAP NAS? I have one, installed Docker and then installed Pi-Hole via the repo's via the QNAP UI.

I get the error about port 80 and 53...but I don't know how to fix it ☹

---

<div class="post-metadata">

**Author:** ![warsawday](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@warsawday](https://discourse.pi-hole.net/u/warsawday)\
**Post date:** [April 21, 2017, 8:40pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/109 "2017-04-21T20:40:05Z")

</div>

I use "Container station", a piece of software default for qnap. I installed one of available containers - LXC ubuntu-trusty-1, run the script, maybe did some config to have it running after reboot (not sure what I did, something basic) and that's it. It got the IP from DHCP, which I then used. This IP is different from NAS IP.

---

<div class="post-metadata">

**Author:** ![AtomicLight](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@AtomicLight](https://discourse.pi-hole.net/u/AtomicLight)\
**Post date:** [April 21, 2017, 10:06pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/110 "2017-04-21T22:06:56Z")

</div>

Thanks I got container station installed and found Pi Hole in a repo. I just don't know how to send it commands. In a VM you open Terminal and SSL into the VM to issue commands. I have no idea how to do this on Docker.

---

<div class="post-metadata">

**Author:** ![warsawday](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@warsawday](https://discourse.pi-hole.net/u/warsawday)\
**Post date:** [April 21, 2017, 10:12pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/111 "2017-04-21T22:12:49Z")

</div>

You just go to container station, click on the name of the container, click on arrows next to Console.

---

<div class="post-metadata">

**Author:** ![AtomicLight](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@AtomicLight](https://discourse.pi-hole.net/u/AtomicLight)\
**Post date:** [April 21, 2017, 10:41pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/112 "2017-04-21T22:41:02Z")

</div>

Yea...I see that. The one I downloaded won't even start up unless I chance the IP etc. I'll stick w/ my running Pi Hole on my RP for now I guess.

---

<div class="post-metadata">

**Author:** ![ema](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/e/858c86/32.png) [@ema](https://discourse.pi-hole.net/u/ema)\
**Post date:** [April 30, 2017, 7:45am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/113 "2017-04-30T07:45:33Z")

</div>

Hi guys, instead of using the rc.script, if you prefer you can use debian chroot web interface to start all the needed services.  
Open Debian Chroot, go to services, and add this 4 entries:

1. sshd  
name: sshd  
launch script: /etc/init.d/ssh  
staus command: ps -p $(cat /var/run/sshd.pid)

2. lighttpd  
name: lighttpd  
lauch script: /etc/init.d/lighttpd  
status command: ps -p $(cat /var/run/lighttpd.pid)

3. Cron  
name: cron  
launch script: /etc/init.d/cron  
status command: ps -p $(cat /var/run/crond.pid)

4. dnsmasq  
name: dnsmasq  
lauch script: /etc/init.d/dnsmasq  
status command: ps -p $(cat /var/run/dnsmasq/dnsmasq.pid)

ciao  
ema

---

<div class="post-metadata">

**Author:** ![karel](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/d2c977/32.png) [@karel](https://discourse.pi-hole.net/u/karel)\
**Post date:** [May 2, 2017, 10:11am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/114 "2017-05-02T10:11:37Z")

</div>

Just updated to Pi-hole v3.0.  
When I go to the webinterface Pihole-FTL is not loaded. Also on the cli Pihole-FTL is not loaded.  
When I start it manually in Chroot with this command: "/usr/bin/pihole-FTL" it does load. The fix is to add 2 new lines to the S99pihole.sh script. It now looks like:

#!/bin/sh

. /etc.defaults/rc.subr

case $1 in  
start)  
/var/packages/debian-chroot/scripts/start-stop-status start  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq start  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start  
;;  
stop)  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service dnsmasq stop  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop  
chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop  
/var/packages/debian-chroot/scripts/start-stop-status stop  
;;  
restart)  
$0 stop  
sleep 1  
$0 start  
;;  
\*)  
echo "Usage: $0 start|stop|restart"  
;;  
esac

---

<div class="post-metadata">

**Author:** ![johnny2678](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/johnny2678/32/315_2.png) [@johnny2678](https://discourse.pi-hole.net/u/johnny2678)\
**Post date:** [May 3, 2017, 12:06am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/115 "2017-05-03T00:06:28Z")

</div>

Thanks karel. Can confirm this works.

---

<div class="post-metadata">

**Author:** ![bakman2](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bakman2/32/1922_2.png) [@bakman2](https://discourse.pi-hole.net/u/bakman2)\
**Post date:** [May 3, 2017, 8:17am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/116 "2017-05-03T08:17:31Z")

</div>

@DanSchaper - I have a Intel Atom - 64bit and pihole-FTL fails to run.

`lscpu` states:

`Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit`

Should be compatible ?  
github instructions: "Download some binaries and try which one work." - what does this mean ?

\*edit - got it, had to download the 32 bit:

In chroot

`cd /usr/bin`  
`wget https://github.com/pi-hole/FTL/releases/download/v2.6/pihole-FTL-linux-x86_32`  
`mv pihole-FTL-linux-x86_32 pihole-FTL`  
`chmod +x pihole-FTL`  
`pihole-FTL`

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [May 3, 2017, 5:32pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/117 "2017-05-03T17:32:42Z")

</div>

FTL should be automatically installed

---

<div class="post-metadata">

**Author:** ![bakman2](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bakman2/32/1922_2.png) [@bakman2](https://discourse.pi-hole.net/u/bakman2)\
**Post date:** [May 3, 2017, 6:01pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/118 "2017-05-03T18:01:26Z")

</div>

It did, but it was the incorrect version.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [May 3, 2017, 6:17pm UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/119 "2017-05-03T18:17:09Z")

</div>

Since Synology installs run in a chroot environment, the version detection may pick up the wrong linked libraries. This is a situation that we have no way to test for as none of us own Synology equipment to test.

I have a feeling that the FTL will not come up on reboot either as calls to the init system are chrooted and will not operate as in a normal installation.

---

<div class="post-metadata">

**Author:** ![k0ns0le](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/eb9ed0/32.png) [@k0ns0le](https://discourse.pi-hole.net/u/k0ns0le)\
**Post date:** [May 4, 2017, 1:42am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/120 "2017-05-04T01:42:24Z")

</div>

Followed the instructions and managed to get it mostly working... web interface is up. Got no action on the graphs etc just the spinning icons no traffic appears to be going through it. Worked out from the comments to start FTL manually then added it to the restart script which got the first graph up but still no connections going through it. I've done several full installs and then just did a repair but get the same thing every time. From my log it looks like maybe something to do with dnsmasq?

::: Installing scripts from /etc/.pihole... done.  
:::  
::: Installing configs from /etc/.pihole...  
::: Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!  
::: Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf... done.  
:::  
::: Creating log file and changing owner to dnsmasq... already exists!  
:::  
::: Installing pihole custom index page...  
::: Existing index.php detected, not overwriting  
::: Existing index.js detected, not overwriting  
::: Existing blockingpage.css detected, not overwriting  
:::  
::: Installing sudoer file... done!  
:::  
::: Installing latest Cron script... done!  
:::  
::: Installing latest logrotate script... done!  
:::  
::: Downloading latest version of FTL...  
::: Detected x86\_64 architecture  
::: Installing FTL... transferred... done.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [May 4, 2017, 1:46am UTC](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289/121 "2017-05-04T01:46:59Z")

</div>

Is that the entire install log contents?

[Previous page](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289.md?page=5)

[Next page](https://discourse.pi-hole.net/t/how-do-i-install-pi-hole-on-a-synology-nas/289.md?page=7)
