Skip to content
Permalink
Browse files

updated client/README to reflect pihole 3.2 (dnsmasq) changes /etc/et…

…hers
  • Loading branch information...
keithpjolley committed Dec 18, 2017
1 parent 23b05d0 commit 1302f0c62453e3553ded99e7c41b87cbc9f8a38c
Showing with 28 additions and 10 deletions.
  1. +4 −5 README.md
  2. +24 −5 client/README.md
@@ -30,8 +30,7 @@ Again, please let me know if you find this useful and how to improve.
Keith

p.s. Current works in progress:
1. web interface
2. graphing of bandwidth usage
3. throttling of bandwidth (I'm very bandwidth constrained - monthly quotas kill me)
4. documentation!

* web interface
* graphing of bandwidth usage
* throttling of bandwidth (I'm very bandwidth constrained - monthly quotas kill me)
* documentation!
@@ -3,9 +3,9 @@
This is a router, gateway, dns server, ad blocker, dhcp server, and soon-to-be vpn server.

##PHYSICAL SETUP:
1. An original model RPi with a 4GB SD card. I don't think this is important
2. eth0 (builtin) connects to modem - uses dhcp from modem
3. eth1 (usb dongle) connects to lan `ip: 192.168.99.1 bcast:192.168.99.255 mask:255.255.255.0`
1. An original model RPi with a 4GB SD card. I don't think this is important
2. eth0 (builtin) connects to modem - uses dhcp from modem
3. eth1 (usb dongle) connects to lan `ip: 192.168.99.1 bcast:192.168.99.255 mask:255.255.255.0`

Your network probably does not look like this. The config for eth0 is from dhcp. It changes.

@@ -147,13 +147,32 @@ Choose whatever IPv4 address/network you want. I use 192.168.99.1/24 (netmask: 2

This *is* the gateway so the gateway's IP address is the same as above.

%%%%%%%%%%%%%%%%%%%%%%%%%

I recently upgraded pi-hole, pi-hole-FTL, and the web interface and a few things seem to have changed
a little. The two that knocked me offline for a bit had to do with two different startup scripts
doing a 'chmod user[AB] /var/log/pihole.log; chown 0600 /var/log/pihole.log' which meant that the
second script run locked out the first script. I fixed that by making it so dnsmasq runs as user
"pihole".


The second thing that changed was the ethers file. I'm not exactly sure if the program (dnsmasq)
changed or I couldn't find the documentation that showed how I'd made it it work the first time
but, regardless, the "new" format is the standard /etc/ethers file. I updated "makedhcphostsfile.py"
to use the new format (by swapping " " and "," in the print statement) and, since /etc is read-only,
I linked /etc/ethers to the rw file.

With the filesystem in "rw" mode:

% sudo vi /etc/dnsmasq.conf
Change "user=dnsmasq" to "user=pihole"

% sudo ln -s /usr/local/opt/pirouter/tmp_rw/dhcp-hostsfile.txt /etc/ethers

with the filesystem in "rw" mode:
% sudo pihole -a -p 'My Password' # this gets reset with config sync
//% sudo vi /etc/dnsmasq.conf
//to include the following (match your network to what you chose above) in the appropriate places:


% sudo vi /etc/dnsmasq.d/01-pihole.conf
addn-hosts=/usr/local/opt/pirouter/tmp_rw/hosts.local
log-facility=/var/log/pihole.log

0 comments on commit 1302f0c

Please sign in to comment.
You can’t perform that action at this time.