# PiHole directly on Routers (Tomato, MerlinWRT, DD-WRT, openWRT)

**URL:** https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314
**Category:** Feature Requests
**Created:** [January 15, 2017, 11:55pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314 "2017-01-15T23:55:02Z")
**Posts on this page:** 20
**Page:** 4

<div class="post-metadata">

### Author: ![ender84](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/e/94ad74/32.png) [@ender84](https://discourse.pi-hole.net/u/ender84)
#### Post date: [July 11, 2017, 5:56pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/61 "2017-07-11T17:56:59Z")

</div>

OK, I thought there would be a lot of dependencies that just aren't in DDWRT.  
If someone was willing to list the dependencies/sources, I could try manually.

I forgot that I also have a Linksys AC1900 also sitting in a box not doing anything in addition to the WRT1900AC. Seems like another potential test box to me.

---

<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: [July 11, 2017, 6:53pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/62 "2017-07-11T18:53:15Z")

</div>

Major ones are `dnsmasq` and `lighttpd` but you can check the basic install script for all of the dependencies. They are listed at the top of the installer script.

> <https://github.com/pi-hole/pi-hole/blob/master/automated%20install/basic-install.sh#L84>

---

<div class="post-metadata">

### Author: ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)
#### Post date: [July 12, 2017, 8:32pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/63 "2017-07-12T20:32:18Z")

</div>

A post was split to a new topic: [Pi-hole on ASUS RT-AC68U not working](https://discourse.pi-hole.net/t/pi-hole-on-asus-rt-ac68u-not-working/4042)

---

<div class="post-metadata">

### Author: ![mrkno](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mrkno/32/1685_2.png) [@mrkno](https://discourse.pi-hole.net/u/mrkno)
#### Post date: [July 16, 2017, 2:32am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/64 "2017-07-16T02:32:16Z")

</div>

I actually had a go at getting pi-hole working on LEDE 17.01.2 a while back (on a TP-Link Archer C7v2) [https://github.com/mrkno/pi-hole-lede-openwrt](https://github.com/mrkno/pi-hole-lede-openwrt) ([changes made here](https://github.com/pi-hole/pi-hole/compare/master...mrkno:master))

It was fairly easy to get most of it working, with two notable exceptions:

- whiptail does not exist in the standard opkg packages and there is no suitable replacement. I know using optware instead would be a solution here, but I was trying to minimise the changes I needed to make to the standard installation
- git as a dependency takes up an inordinate amount of space on the device

---

<div class="post-metadata">

### Author: ![dannyboy](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@dannyboy](https://discourse.pi-hole.net/u/dannyboy)
#### Post date: [August 12, 2017, 7:25am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/65 "2017-08-12T07:25:45Z")

</div>

Hi. I do not wish to spam this developers post, but I have a big interest in what you managed to get working on a TP-Link Archer C7 v2 running LEDE, since I am running the exact same setup.  
how do I use what you've created to install it on my current LEDE setup?  
thanks!

---

<div class="post-metadata">

### Author: ![mrkno](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mrkno/32/1685_2.png) [@mrkno](https://discourse.pi-hole.net/u/mrkno)
#### Post date: [August 12, 2017, 10:18pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/66 "2017-08-12T22:18:32Z")

</div>

Note that although I got it working, through subsequent reflashes of the firmware I no longer have this setup. Additionally the changes I made were just enough to get it running but were by no means complete.

1. [extroot](https://wiki.openwrt.org/doc/howto/extroot) to have enough space for the git dependency.
2. Compile [newt](https://pagure.io/newt) for MIPS and install it onto the device (this gives you whiptail).
3. [Migrate luci to lighttpd](https://wiki.openwrt.org/doc/howto/luci.on.lighttpd). Note that configuration should be put in an external.conf file not the main configuration file and luci should not be on port 80.
4. Run the modified install script from my fork: [https://raw.githubusercontent.com/mrkno/pi-hole-lede-openwrt/master/automated%20install/basic-install.sh](https://raw.githubusercontent.com/mrkno/pi-hole-lede-openwrt/master/automated%20install/basic-install.sh)
5. Manually debug the multitude of problems it will cause - I can't remember what they all were.

---

<div class="post-metadata">

### Author: ![sprocket](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/bcef8e/32.png) [@sprocket](https://discourse.pi-hole.net/u/sprocket)
#### Post date: [September 4, 2017, 10:57am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/67 "2017-09-04T10:57:27Z")

</div>

LEDE / OpenWRT has a package for ad blocking. Have folks looked at that?

> <https://github.com/openwrt/packages/blob/master/net/adblock/files/README.md>

This package also has a GUI component via LEDE's LuCI UI.

I haven't tried it (I run PiHole on a Pi3), but it might do what people want.

---

<div class="post-metadata">

### Author: ![deathbybandaid](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/deathbybandaid/32/893_2.png) [@deathbybandaid](https://discourse.pi-hole.net/u/deathbybandaid)
#### Post date: [September 11, 2017, 12:36pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/68 "2017-09-11T12:36:38Z")

</div>

From our Hardware/Software requirements page:

* * *

We officially support the following:

- Raspbian: Jessie (lite / with pixel)
- Ubuntu: 14.04 / 16.04 / 16.10
- Fedora: 24 / 25
- Debian: 8.6
- CentOS: 7.2.1511 / 7.3.1611

* * *

There are already a few threads that relate to this topic.

This appears to be the "big thread" relating to it.

> [@PiHole directly on Routers (Tomato, MerlinWRT, DD-WRT, openWRT)](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314):
>
> Starting a feature request to spread PiHole to routers. Many users of powerful routers run modified firmware such as Tomato, MerlinWRT, DD-WRT or OpenWRT. Many of the supported routers have enough processing power available to run piHole and some testing has been done (see here [https://discourse.pi-hole.net/t/run-pihole-directly-on-asus-merlin-dd-wrt-router/182/5](https://discourse.pi-hole.net/t/run-pihole-directly-on-asus-merlin-dd-wrt-router/182/5)). These firmwares use Entware-NG as a packet manager and software can be installed easily via the opkg commands. Self developed insta…

* * *

I believe as of now, it was deemed "out-of-scope"

> [@PiHole directly on Routers (Tomato, MerlinWRT, DD-WRT, openWRT)](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/35):
>
> It may be out-of-scope at the moment, but it's definitely something to look into.

* * *

I'm also assuming there are alot of various factors involved with routers, OS, and being able to officially support one router versus another.

But don't let anything I say hinder you from trying!

---

<div class="post-metadata">

### Author: ![piOPEN](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piopen/32/1925_2.png) [@piOPEN](https://discourse.pi-hole.net/u/piOPEN)
#### Post date: [September 11, 2017, 12:50pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/69 "2017-09-11T12:50:56Z")

</div>

Ok, sorry, I had not seen. However, would be amazing to be offered for them firmwares.

Some of the above firmwares basically run GNU/Linux, right? Are so many problems that arise?

Think about it. Thank you!

---

<div class="post-metadata">

### Author: ![piOPEN](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piopen/32/1925_2.png) [@piOPEN](https://discourse.pi-hole.net/u/piOPEN)
#### Post date: [September 11, 2017, 1:06pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/70 "2017-09-11T13:06:15Z")

</div>

First of all, congratulations on your amazing project. Ιs a very good project and I personally think his need is more imperative than ever!

It can be installed on [OpenWrt](https://openwrt.org) ?  
I have the [Asus RT-N66 router](https://wiki.openwrt.org/toh/asus/rt-n66u) to which I have installed the OpenWrt firmware.  
The features that your software offers are awesome, hey are really amazing! I thought it would be even more flexible and easy to use ( & user friendly ) if it is possible to install it on router.

Is this possible?  
What is your point of view?

Thank you.

---

<div class="post-metadata">

### Author: ![Chalouder](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/chalouder/32/11209_2.png) [@Chalouder](https://discourse.pi-hole.net/u/Chalouder)
#### Post date: [September 29, 2017, 11:00pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/71 "2017-09-29T23:00:47Z")

</div>

IMO an AD blocker like PiHole would be a great addition to open router OS's like DD-WRT, openWRT etc, that being said, I think PiHole itself should stay focused on the single-board computers of its roots. Maybe a new project for an open router ad blocker....

---

<div class="post-metadata">

### Author: ![iManuB](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/bc8723/32.png) [@iManuB](https://discourse.pi-hole.net/u/iManuB)
#### Post date: [September 30, 2017, 1:36pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/72 "2017-09-30T13:36:44Z")

</div>

Hello everyone and congratulations for the realization of the script.

For the owners of an Asus router (With MerlinWRT), it would be very much a guide (even a video tutorial) with the steps to be taken.

Example:

1. bla bla bla
2. bla bla bla
3. bla bla bla

Thanks so much!

---

<div class="post-metadata">

### Author: ![voltagex](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/v/51bf81/32.png) [@voltagex](https://discourse.pi-hole.net/u/voltagex)
#### Post date: [April 6, 2018, 1:14am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/73 "2018-04-06T01:14:02Z")

</div>

Did this project go anywhere? Was there a fork? Were some of the assumptions in the Pi-Hole scripts removed (out to variables)?

---

<div class="post-metadata">

### Author: ![Matt](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/matt/32/3179_2.png) [@Matt](https://discourse.pi-hole.net/u/Matt)
#### Post date: [April 19, 2018, 4:34pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/74 "2018-04-19T16:34:41Z")

</div>

Just an aside, there is an existing adblock system for MerlinWRT routers - [https://github.com/decoderman/AB-Solution](https://github.com/decoderman/AB-Solution)

So this is all well within the realm of technically feasible, but it may require significant changes to the codebase. I wouldn't expect anything for a while unless someone outside of the core dev team decides to pick this up as a pet project.

---

<div class="post-metadata">

### Author: ![takezo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/t/919ad9/32.png) [@takezo](https://discourse.pi-hole.net/u/takezo)
#### Post date: [June 22, 2018, 12:42pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/75 "2018-06-22T12:42:22Z")

</div>

@mrkno  
finally have you installed pihole in router with lede..?  
could you let me knwo how you have done to install newt..?  
thanks!

---

<div class="post-metadata">

### Author: ![CyberBlaed](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/c/c77e96/32.png) [@CyberBlaed](https://discourse.pi-hole.net/u/CyberBlaed)
#### Post date: [November 30, 2018, 11:59am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/76 "2018-11-30T11:59:12Z")

</div>

while dated in 2015, it seems Debian on your router is a thing;

[https://wiki.debian.org/DebianWRT](https://wiki.debian.org/DebianWRT)

the hiccup being so many steps, and not the most efficient setup as its run ontop of other firmware, but its a start I think..

Pihole on a router would be sweet, but also debian on a router would be sweeter as!

---

<div class="post-metadata">

### Author: ![Bob\_John](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/b/e56c9b/32.png) [@Bob\_John](https://discourse.pi-hole.net/u/Bob_John)
#### Post date: [December 23, 2018, 3:26pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/77 "2018-12-23T15:26:40Z")

</div>

Dnsmasq is included by default in DD-WRT and lightttpd can be installed via opkg.

---

<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: [December 23, 2018, 3:32pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/78 "2018-12-23T15:32:42Z")

</div>

[https://docs.pi-hole.net/ftldns/compatibility/](https://docs.pi-hole.net/ftldns/compatibility/) is a list of the platforms that are currently known to be compatible with FLTDNS. You can try to compile FTL for your router but as we do not offer binaries not currently compiled by our own CI/CD process we would not be able to provide binaries. We also are not currently able to package for repository deployment via apt/yum/opkg/etc...

---

<div class="post-metadata">

### Author: ![Bob\_John](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/b/e56c9b/32.png) [@Bob\_John](https://discourse.pi-hole.net/u/Bob_John)
#### Post date: [December 24, 2018, 10:59pm UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/79 "2018-12-24T22:59:48Z")

</div>

I didn't say anything about FTLDNS. I only replied with information about DD-WRT.

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [December 25, 2018, 12:03am UTC](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314/80 "2018-12-25T00:03:07Z")

</div>

FTLDNS takes the place of dnsmasq (has dnsmasq embedded), so would need to be installed to run Pi-Hole on the router.

[Previous page](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314.md?page=3)

[Next page](https://discourse.pi-hole.net/t/pihole-directly-on-routers-tomato-merlinwrt-dd-wrt-openwrt/1314.md?page=5)
