Posts

Showing posts with the label Pihole

How to install Pi-Hole on Docker and Synology with MacVlan + Auto Update

Image
 How to install Pi-Hole on Docker and Synology with MacVlan We can create s special 'MacVlan' network, this will allow the pi-hole container to get a dedicated IP on our network. This will solve: no port clashes with Synology as all ports will run only on dedicated IP Client IP's visible as we are part of the real network pi-hole has its own IP we can reach -> almost like a VM but still a container few items you need for this. You need to install Docker from the Package Center. You need to enable "Open vSwitch" under Control panel > Network > Network interface > Select LAN then click Manage. Networking Login SSH as root and identify the ovs switch name use the following command. ip route |grep default the output will look like this: default via 192.168.1.1 dev  ovs_eth0  src 192.168.1.3 so in my case  ovs_eth0  is what I will use. Next, create the macvlan network name  pi-hole-LAN , you need the know the following items: Gateway of your network...

How To upgrade Pi-hole On a Synology NAS Docker

How To upgrade Pi-hole On a Synology NAS Docker Run this under SSH root, it will update the Pi-hole container on Synology Docker Update the latest image for pi-hole docker pull pihole/pihole  Stop the Pi-hole container docker stop pihole-pihole1  Remove the Pi-hole container docker rm pihole-pihole1 You can run all three command once docker pull pihole/pihole && docker stop pihole-pihole1  && docker rm pihole-pihole1 Add the Pi-hole container with high privilege, auto-start, same docker host network, web password, web port, and default mount paths. https://eric-poon.blogspot.com/2021/03/how-to-setup-pi-hole-on-synology-nas.html docker run --name  pihole-pihole1 -v /volume1/docker/pihole/pihole:/etc/pihole -v /volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d --network="host" -e TZ='America/New_York' -e WEBPASSWORD='password' -e DNSMASQ_LISTENING='local' -eWEB_PORT='8080' --privileged --restart always -d pihole/pihole

How To Setup Pi-hole On a Synology NAS Docker

Image
 I found this post " How To Setup Pi-hole On A Synology NAS"  https://kevq.uk/how-to-setup-pi-hole-on-a-synology-nas/ Using a  Pi-hole   on your network is a great way of blocking adverts and protecting you from tracking at a network level. In this post I’m going to take you through setting up Pi-hole on a   Synology NAS   using Docker. I’ve been using Pi-hole on my network for a few weeks now and things are going great. I’m sure you can gather than from the name, Pi-hole was originally designed to run on the Raspberry Pi. But I don’t like the idea of having something as crucial as DNS running on a RPi, so I run Pi-hole on my Synology ( I have a DS218+ ). To get Pi-hole up and running, you  could  download the image, spin a container with the default settings and it  will  work. However, you will end up seeing all the clients on your network bundled under a single  172.x.x.x  IP address, which is the Docker gateway IP.  Th...

Commonly white listed domains for Pi-Hole.

https://github.com/anudeepND/whitelist Commonly white listed domains for Pi-Hole. A robust collection of commonly white listed websites borrowed from various sources including Pi-Hole subreddit, Pi-Hole forum, Pi-Hole github repository and more! Add these domains to your Pi-Hole setup by running a script or manually and make your setup  trouble-free! Description The repository has 3 different files containing different domains. whitelist.txt This file contain domains that are safe to whitelist i.e it does not contain any tracking or advertising sites. Adding this file fixes many problems like YouTube watch history, videos on news sites and so on... referral-sites.txt People who use services like Slickdeals and Fatwallet needs a few sites (most of them are ads) to be whitelisted to work properly. This file contains some analytics and ad serving sites, if you don't know what these services are stay away from this list. optional-list.txt This file contain domains that ...

Pihole - Move Query Logging to RAM – Protects SD Card

Move Query Logging to RAM – Protects SD Card Extensive writing can damage SD card. For this reason, I suggested turning off query logging. But what if you want to leave it on? A good option, in this case, is to move your logs to RAM instead of SD card. So all your logs on Raspbian Lite will be written to RAM instead of SD card, thereby prolonging the life of SD card. Log2Ram Like ramlog for systemd (on debian 8 jessie for example). Usefull for  RaspberryPi  for not writing on the SD card all the time. You need it because your SD card doesn't want to suffer anymore! Explanations: The script creates a  /var/log  mount point in RAM. So any writing of the log to the  /var/log  folder will not actually be written to disk (in this case to the sd card for a raspberry card) but directly to RAM. By default, every hour, the CRON will launch a synchronization of the RAM to the folder located on the physical disk. The script will also make this copy of RAM t...