One of the major ways that ISP's gather information on users is by gathering information from their dns queries. This information can be useful for tracking a users shopping habits, their hobbies, etc. Encrypting these requests is actually pretty easy to accomplish, and solves a plethera of issues such as blocking malicious advertisements, and keeping internet service providers from monitoring your activities.
Download the Raspian Buster Lite Image
You can use whatever software you like, i go between:
After flashing the microsd insert it into the Raspberry Pi, and plug in the power
Once the OS is installed, change the username pi password
Download the cloudflared binary, depending on which raspberry pi you use you have some issues. The Raspberry Pi 2 seems to have a problem with never versions of CloudFlared. If this version of cloudflared seg faults for you then try the RPI 2 option
Raspberry Pi 2 Download if above seg faults
If successful you should see something like this
Make the Cloudflared User
Make the default file
Permission the the Files
Make the Systemd File
Copy this to the service file
Enable the Service and set it to autostart if device loses power or is restarted
Download the installer and run it
Run through the installer making these selections
Please Make sure you Select eth0
Select cloudFlare for now, it will be changed in the Gui after install
Make sure all are selected
Select both, or at least IPv4. Depending on your setup
This will show whatever IP address you are currently set as. For most of you this wont need to be changed, however if for any reason you need to change this.
Install the WebGui
Ignore this for now, we are going to change the WebGui from Command line
Once the script is done running, run this to change the webgui Password as root
UnCheck the Cloudflare section, and enter in the custom dns options below Also, make sure to select the Advanced DNS Settings Below.
Wherever you are doing DHCP/Static entries update your DNS to the PiHole's Ip Address And that is it, you have setup the PiHole and your DNS queries should be private
For issues with PiHole, run this command which will reconfigure the pihole instance
If you need to set a static ip address for the Pi, please do this:
Edit /etc/network/interfaces. Change the address,network,netmask,broadcast,gateway to match you network
run 'service networking restart', minus the ', to complete your change. Note: This wont disconnect you from ssh.
For issues with cloudflared, you might need to do some googling to find a cloudflared binary that works with your pi
Latest update February 05, 2020
Related posts :