c2theg / managed_pihole

managed pihole

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

managed_pihole

Managed Pihole for Version 5.x

for the initial setup run this.

sudo wget https://raw.githubusercontent.com/c2theg/managed_pihole/main/update_lists.sh && chmod u+x update_lists.sh && ./update_lists.sh && ./initial_setup.sh

Install Pi-Hole

Configure Raspberry PI using: sudo raspi-config

Install pi-hole as usual ( curl -sSL https://install.pi-hole.net | bash )

To configure it to maintain extra block and white lists, use the following script

wget https://raw.githubusercontent.com/c2theg/srvBuilds/master/raspi/update_pihole_lists.sh && chmod u+x update_pihole_lists.sh && sudo ./update_pihole_lists.sh

Static IP

wget https://raw.githubusercontent.com/c2theg/srvBuilds/master/configs/01-netcfg.yaml && mv 01-netcfg.yaml /etc/netplan/00-installer-config.yaml cd /etc/netplan/

DoH on Pi Hole

wget https://raw.githubusercontent.com/c2theg/srvBuilds/master/install_doh_pihole.sh && chmod u+x install_doh_pihole.sh && sudo ./install_doh_pihole.sh

OpenDNS account, linux updater

wget https://raw.githubusercontent.com/c2theg/srvBuilds/master/raspi/install_opendns.sh && chmod u+x install_opendns.sh && sudo ./install_opendns.sh




Update Gravity

-- Update 5 mins past every hour ---

5 * * * * pihole updateGravity




Better for Business hours

(At minute 5 past every hour from 7 through 19 on every day-of-week from Monday through Friday.)

5 7-19 * * 1-5 pihole updateGravity





Update PiHole everything

30 4 * * * pihole -up

About

managed pihole

License:Apache License 2.0


Languages

Language:Python 50.7%Language:Shell 49.3%