Blocking unwanted traffic using a Raspberry Pi

Share Article

As the parent of two young children, and someone who loves removing ads and other “nasty” traffic entirely from my home network, I’d like to document some custom work I recently did with my router:

  1. First off, I noticed that my pi hole was blocking quite a bit of ad traffic and xxx stuff, but not all, so referencing https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245 I made sure to define Pi-hole’s IP address as the only DNS entry in my router.  So in my case, my primary DNS address is 192.168.0.56 and my secondary is 0.0.0.0
  2. In my case I can’t easily disable IPv6 coming from Comcast, so I instead went to my pi hole’s Settings –> DNS tab and configured 2 upstream custom IPV6 DNS servers: 2001:558:feed::1 and 2001:558:feed::2
  3. Finally, I disabled the DHCP server at the router level and instead enabled it via the Pi Hole, being sure to check the box for “Enable IPv6 support (SLAAC + RA)”
  4. Now, referencing https://mangolassi.it/topic/16905/add-porn-blocking-to-your-pi-hole, you can block all xxx content from your home router, in addition to all unwanted ads

PS – here’s a helpful post on how to override your DNS settings on the Mac (where they would otherwise be grayed out/determined by your router): https://superuser.com/questions/405892/where-can-i-force-a-specific-dns-server-to-be-used-on-os-x

You might also like

North Carolina
Travel

North Carolina Itinerary

North Carolina Itinerary Day 1: Arrival in Wilmington Arrive in Wilmington and check into your accommodation in the downtown area. Spend the afternoon exploring the

North Carolina
Travel

Redwood National Park

Portland/Redwood National Park Day 1: Arrival in Portland, Oregon Morning: Fly from Denver to Portland International Airport (PDX). Afternoon: Rent a car and drive to