Skip to content

dmetzler1988-org/pi-hole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi-hole config

Installation Introduction

  1. Install Raspbian Stretch Lite on SD-Card.
  2. Create a file ssh in /boot folder, if not exist for enable ssh.
  3. Connect Raspberry Pi with the network, search the IP of it and try to login via ssh.
    • Default login credentials are
      Username: pi
      Password: raspberry
  4. Change password with command passwd.
  5. Install updates and upgrades with command sudo apt-get update && sudo apt-get upgrade.
  6. Run installation script for Pi-hole curl -sSL https://install.pi-hole.net | bash.
    • Don't forget to write down your password, which was shown after installation.
  7. After installation steps, take a look, if admin site is reachable.
  8. Configure the autoupdater for Pi-hole via cronjob.
    • Open the cronjob file sudo nano /etc/cron.d/pihole
    • Add entry (if not available) 30 2 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updatePihole (every seventh day on 2:30 AM)
    • Save and close file
    • Restart the cronjob service sudo service cron restart
  9. Set up a new password for your admin interface via pihole -a -p p4ssW0rd#.
  10. Go to your router and configure the Pi-hole as DNS Server (only this one, no second one is allowed. It will not work correctly, if you add 8.8.8.8 or similar as second DNS Server). Use the IP-Address if your Pi-hole as DNS Server.
  11. Restart all your devices (router, smartphones, pc, ...) to make sure, that all receives an IP update with the new settings.
  12. Test, if all works fine with a page like this https://blockads.fivefilters.org/?pihole.
    • Don't forget to disable the browser extensions which will block ad's also.
  13. Add additional blocklists and whitelists to your Pi-hole configuration.

Manual update

To trigger a manual update, connect with your SSH client to your pihole and type in the command pihole -up.

Repair/Reinstall (if something was wrong during update)

Use command pihole reconfigure for repair or reinstall after something was broken during installation or update.

Additional info

The install log and all custom configurations (like blacklists, whitelists, ...) will be saved under /etc/pihole.

Blocklist

Currently only my Pi-hole blocklist is available which you can configure under the Pi-hole blocklist setting page.
It includes all the lists from https://firebog.net/.
With this you may add a lot of websites to your whitelist.

Whitelist

A whitelist is hosted here on bottom https://firebog.net/.
A more detailed whitelist you can find here https://discourse.pi-hole.net/t/commonly-whitelisted-domains/212.
If you will not fill in all manually, you can use this method over an script https://github.com/anudeepND/whitelist.

I also had added my current whitelist as backup.

Pi-hole documentation

A documentation with also a detailed command list can be found here.

A command list with examples for Pi-hole can be found here.

Additional links

Releases

No releases published

Packages

No packages published

Languages