Excellent tutorial, I got a lot further than I thought I would. But I'm stuck at the final hurdle.
I've edited the port of lighttpd, to be 999, per instructins and it serves up the standard 'welcome' index.html page at my Synology IP http://192.168.1.158:999 but when I try http://192.168.1.158:999/admin I get a 403 (Forbidden)
Actually the port number should be anything between 1024-65535, as 1-1023 are so called well-known ports and are reserved in the network stack. Not sure if that is causing your issue, but good to know
I read that someone had luck by entering (in chroot):
Found my mistake. My Synology has four network ports. I must have gone through the pi hole installer too fast. I selected the wrong interface. Now things are working as they should.
New problem with your auto restart script.
I get an error
nano /usr/local/etc/rc.d/S99pihole.sh
I paste in your text
press ctrl x
type y enter and get the below error.
Error writing /usr/local/etc/rc.d/S99pihole.sh: No Such file or directory
root@DSDS1813:/# cd /usr/
root@DSDS1813:/usr# ls
bin games include lib local sbin share src
root@DSDS1813:/usr# cd local
root@DSDS1813:/usr/local# ls
bin etc games include lib man sbin share src
root@DSDS1813:/usr/local# cd etc
root@DSDS1813:/usr/local/etc# ls
root@DSDS1813:/usr/local/etc#
I am using DSM 6.0.2-8451 Update 2 and this works as bakman2 says.
bakman2 does the formatting need to be changed for vi? I have never used it before and when I pasted in your code the formatting is very different from your code on the webpage. I am using putty and right click to paste. Then follow your commands. I rebooted the synology and waiting about 20 min and pihole never started. chroot was started and running.
Yeah I tried again, following each step exactly on a DS1813+ (using sudo instead of su),
Doesn't work for me, during the pi-hole install i get;
::: Configuring iptables for httpd and dnsmasq..
modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open mo ddep file '/lib/modules/3.10.77/modules.dep.bin'
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
I also noticed the chmod stopped at some point and I needed to start it again.
All good must be an issue on my end, I will edit my previous post. thx.
Did you uninstall chroot and reinstalled it ?
The previous mentioned changes could have done something unwanted.
When I google your error, I find things related to missing CPU/kernel support, not sure if this is the case.
FYI you can also directly connect as root@nas