Pi-hole on ASUS RT-AC68U not working

Hi there everyone,

I just tried installing pihole on my asus RT-AC68U but failed with several problems:

I tried with this script (after installing Entware Entware · RMerl/asuswrt-merlin Wiki · GitHub on Asus RT-AC68U) but I got sed errors and some non existing files errors (as whitelist.sh and blacklist.sh do not exist anymore as someone mentioned here already)

::: Installing scripts to /opt/pihole...
cp: can't stat '/opt/etc/.pihole/advanced/Scripts/whitelist.sh': No such file or directory
cp: can't stat '/opt/etc/.pihole/advanced/Scripts/blacklist.sh': No such file or directory
cp: can't stat '/opt/etc/.pihole/advanced/Scripts/whitelist.sh': No such file or directory
sed: -e expression #1, char 21: unknown option to `s'
sed: -e expression #1, char 26: unknown option to `s'
sed: -e expression #1, char 23: unknown option to `s'
sed: -e expression #1, char 18: unknown option to `s'
sed: -e expression #1, char 15: unknown option to `s'

And when accessing the admin URL I get php errors

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /tmp/mnt/sda1/entware/share/www/admin/scripts/pi-hole/php/header.php:9) in /tmp/mnt/sda1/entware/share/www/admin/scripts/pi-hole/php/password.php on line 10

Warning: parse_ini_file(/opt/etc/pihole/setupVars.conf): failed to open stream: No such file or directory in /tmp/mnt/sda1/entware/share/www/admin/scripts/pi-hole/php/password.php on line 13

Warning: parse_ini_file(/opt/etc/pihole/setupVars.conf): failed to open stream: No such file or directory in /tmp/mnt/sda1/entware/share/www/admin/scripts/pi-hole/php/auth.php on line 25

When I try to click e.g. Enable in Admin GUI it just doesn't do anything.

Can I provide you guys with some logs/whatever so that we can figure it out together :slight_smile: ?

I moved your comment to a new thread since it was out of scope for the feature request.

We don't officially support Pi-hole on any router at the moment (hence the reason for the feature request). We're happy to help figure stuff out; just keep in mind we are all volunteers on the project.

You'll probably have the most luck within the community itself as we have many users who are active in the forums.

1 Like

A couple things I’ve noticed trying to run scripts on the same router and have worked around with:

  1. Install bash
    2 install the version of every command from the opkg command. The stock versions of curl, sed, etc are lacking a lot of options. I wont be around my ac68 for a few days but can post when I am all the Linux utils ive installed to make running various scripts easier.

No idea if this will solve your issue, but its sure made things a lot easier for me to install entware versions of commands instead of using the gimped ones on there by default.

I use pi-hole at home, but on the network i have my ac-68 Ive been using ab-solution + pixelserv-tls to control ads and tracking. It is possible to install lighttpd through entware though, I use it for various things.

addrwatch - 0.8-2
bash - 4.3.42-1b
curl - 7.54.1-1
dstat - 0.7.3-1
entware-opt - 222108-5
findutils - 4.6.0-1
findutils-locate - 4.6.0-1
htop - 2.0.2-1
ldconfig - 2.23-6
libbz2 - 1.0.6-3
libc - 2.23-6
libcurl - 7.54.1-1
libdb47 - 4.7.25.4.NC-5
libevent2 - 2.0.22-1
libexpat - 2.2.4-1
libffi - 3.2.1-3
libgcc - 6.3.0-6
libgdbm - 1.11-1
libncurses - 6.0-1c
libncursesw - 6.0-1c
libopenssl - 1.0.2k-1
libpcap - 1.8.1-1
libpcre - 8.41-2
libpthread - 2.23-6
librt - 2.23-6
libsqlite3 - 3190300-1
libssp - 6.3.0-6
libstdcpp - 6.3.0-6
libxml2 - 2.9.5-1
lighttpd - 1.4.45-7
lighttpd-mod-fastcgi - 1.4.45-7
locales - 2.23-6
lsof - 4.89-1
net-tools-netstat - 1.60-4
nmap - 7.60-1
openssh-keygen - 7.5p1-1
openssh-server - 7.5p1-1
openssh-sftp-server - 7.5p1-1
opkg - 2011-04-08-9c97d5ec-17a
php7 - 7.1.9-1
php7-cgi - 7.1.9-1
pixelserv-tls - V35.HZ12.Kj-1
psmisc - 23.1-1
python - 2.7.13-7
python-base - 2.7.13-7
python-codecs - 2.7.13-7
python-compiler - 2.7.13-7
python-ctypes - 2.7.13-7
python-db - 2.7.13-7
python-decimal - 2.7.13-7
python-distutils - 2.7.13-7
python-email - 2.7.13-7
python-gdbm - 2.7.13-7
python-light - 2.7.13-7
python-logging - 2.7.13-7
python-multiprocessing - 2.7.13-7
python-ncurses - 2.7.13-7
python-openssl - 2.7.13-7
python-pydoc - 2.7.13-7
python-sqlite3 - 2.7.13-7
python-unittest - 2.7.13-7
python-xml - 2.7.13-7
screen - 4.6.1-1
sed - 4.4-1
terminfo - 6.0-1c
zlib - 1.2.11-1
zsh - 5.2-1

old thread I know, but for anyone else that stumbles across it here is what I have installed via opkg to make it easier to run scripts on this router