3,757
 

Lets talk about Pi-Hole anyone using it.



ADVERTISEMENT
 
topics gone triple plat - Number 1 spot 3X PLAT

most viewed right now
+21  94
54 replies  @sports



section  x1   |  0 bx goons and 1 bystanders Share this on Twitter       Share this on Facebook

section tech
  
 1 month ago '17        #1
1552 page views
14 comments


bxivz 
avatar
Props total: 538 538  Slaps total: 58 58
Lets talk about Pi-Hole anyone using it.
 

 
So I recently decided to mess around with Raspberry Pi even got my kids into it. Decided to make a Pi-hole I am enjoying the results.

Block ads on your network with Raspberry Pi and pi-hole
Hate seeing ads while browsing the web? Check out this tutorial on setting up pi-hole.

Got an old Raspberry Pi lying around? Hate seeing ads while browsing the web? Pi-hole is an open source software project that blocks ads for all devices on your home network by routing all advertising servers into nowhere. What's best is it takes just a few minutes to set up.

Pi-hole blocks over 100,000 ad-serving domains, blocks advertisements on any device (including mobiles, tablets, and PCs), and because it completely blocks ads rather than just hiding them, this improves overall network performance (because ads are never downloaded). You can monitor performance and statistics in a web interface, and there's even an API you can use.

What you will need
Raspberry Pi + SD card
USB power cable
Ethernet cable
Raspberry Pi
SD card with noobs
Power supply

You don't need a recent Raspberry Pi model—an older one will do the job, as long as it's got at least 512MB RAM—so a Pi 1 Model B (rev 2), a Model B+, or a Pi 2 or 3 would do. You could use a Pi Zero, but you'll need a USB micro Ethernet adapter too. You could use a Pi Zero W with WiFi rather than Ethernet, but as it's part of your network infrastructure, I'd recommend a good, solid, wired connection instead.

Prepare the SD card
First of all, you'll probably want to install Raspbian Stretch Lite onto an SD card. The card should be at least 4GB (the full desktop Raspbian image requires at least 8GB but the Lite image is, well, lighter). You can use the full Raspbian desktop image if you prefer, but as this is going to be running as a headless application, you don't need anything more.

Raspbian downloads
Using your main PC, download the Raspbian Stretch Lite image from the Raspberry Pi website. Now unzip it to extract the .img file within, and you'll write this image to your SD card. It doesn't matter if the SD card is blank or not, as everything on it will be wiped.

If you're using Linux, the easiest way to write the image is using the command-line tool dd. Alternatively, you can use cross-platform software Etcher (follow the guide "How to write SD cards for the Raspberry Pi" by Les Pounder).

An image showing the Etcher application running on Windows 10
Les Pounder, CC-BY-SA 4.0

Once your SD card image has burned, you can insert it into your Raspberry Pi, connect a keyboard, monitor, and Ethernet cable, and then plug in the power. After the initial setup, the Pi won't need the keyboard or monitor. If you're experienced in working with the Pi headless, you can enable SSH and set it up remotely.

Install Pi-hole
Once your Raspberry Pi boots up, log in with the default username (pi) and password (raspberry). Now you're at the command line, and you're ready to install Pi-hole. Simply type the following command and press Enter:

curl -sSL visit this link https://install.pi-hole.net | bash
This command downloads the Pi-hole installer script and executes it. You can take a look at the contents by browsing visit this link https://install.pi-hole.net in your browser and see what it's doing. It will generate an admin password for you, and print it to the screen along with other installer information.

That's it! In just a few minutes, your Pi will be ready to start blocking ads.

Before you disconnect the Pi, you need to know its IP address and your router's IP address (if you don't already know it). Just type hostname -I in the terminal for the Pi's IP address, and ip route | grep default to locate your router. It will look something like 192.168.1.1.

Configure your router
Your Raspberry Pi is now running a DNS server, and you can tell your router to use Pi-hole as its DNS server instead of your ISP's default. Log into your router's management console web interface. This can usually be found by typing your router's IP address into your web browser's address bar.

Look for DHCP/DNS settings under LAN settings and set your primary DNS server to the IP address of the Pi-hole. It should look something like this:


pi-hole DNS settings
See the Pi-hole discourse for more information on this step.

You'll also want to make sure your Pi-hole maintains the same IP address, so also look for DHCP IP reservations and add an entry for your Pi.

Test it out
Now shut down the Pi by running the command sudo halt and disconnecting the power. You can remove the monitor cable and the keyboard and place the Pi-hole in its permanent location—probably plugged in near your router. Ensure the Ethernet is connected and boot it back up by reconnecting the power.

Navigate to a website on your PC or a device on your WiFi (I highly recommend Opensource.com) to check that your internet access is working correctly (if not, you may have misconfigured your DNS settings). If web browsing seems to work as expected, it's set up correctly. Now, when you browse the web, it should be ad-free! Even ads served within apps on your mobile devices won't get through! Happy surfing!

If you really want to flex your new ad-blocking muscles, you can try browsing some of the ad-ridden websites listed on this test page.

Now access the Pi-hole's web interface by entering its IP address into your web browser's address bar (e.g. visit this link http://192.168.1.4/admin - or visit this link http://pi.hole/admin should work too). You should see the Pi-hole dashboard and some statistics (they will be very low at this stage). Once you login using the password you were given during installation, you'll see some pretty graphs too:


Pretty graphs in pi-hole
You can also tweak your Pi-hole's settings, like whitelist and blacklist domains, disable permanently or temporarily, access the stats for blocked queries, and more.

Occasionally, you'll want to upgrade your Pi-hole installation. The web interface includes an update notification when one is available. If you have enabled SSH, you can log in remotely, otherwise you'll have to reconnect the monitor and keyboard. When logged in, simply run the command pihole -up.

Updating pi-hole
Have you used Pi-hole or another open source ad blocker? Please share your experience in the comments.

Source:visit this link https://opensource.com/ar .. s-raspberry-pi
image
+9   



best
worst
14 comments
 

 1 month ago '16        #2
Sire  topics gone triple plat - Number 1 spot x3
Props total: 16498 16 K  Slaps total: 1265 1 K
pi hole sound like some pedophile dark web hangout.

+4   

 1 month ago '17        #3
bxivz  OP
Props total: 538 538  Slaps total: 58 58
 Sire said
pi hole sound like some pedophile dark web hangout.

LMFAO now I can't unsee that. Great thanks. But it's not its Ads worst nightmare. I don't see anymore Ads on boxden I think it's worth it.
+4   

 1 month ago '16        #4
Sire  topics gone triple plat - Number 1 spot x3
Props total: 16498 16 K  Slaps total: 1265 1 K
 bxivz said
LMFAO now I can't unsee that. Great thanks. But it's not its Ads worst nightmare. I don't see anymore Ads on boxden I think it's worth it.
lol have you used raspberry pi for any other purpose?

im not really big on media serving and live streaming and that typa sh*t that a lot of people use em for.

but i wanted to try rigging up one with neverware cloudready to see what kinda cheap chromeos-like i could use. something nice and compact like a chromebox or usff pc but for a fraction of the cost.

they are in the process of folding cloudready into the official google chromeos repo distribution...so it should be pretty close (it was already pretty close to begin with...minus stuff like android apps).
+1   

 1 month ago '04        #5
GUCCI C0ND0MS 
Props total: 12548 12 K  Slaps total: 11593 11 K
As a FYI, you can also install this on a Synology NAS
+1   

 1 month ago '18        #6
guizai 
Props total: 1139 1 K  Slaps total: 105 105
Yes, running it on a pi 1b that I didn't use in years. Wifey sometimes complains that she can't access certain sites. I tried to explain what pihole does, but she won't listen. So when she needs access to these sites I gotta whitelist em...

 1 month ago '17        #7
bxivz  OP
Props total: 538 538  Slaps total: 58 58
 guizai said
Yes, running it on a pi 1b that I didn't use in years. Wifey sometimes complains that she can't access certain sites. I tried to explain what pihole does, but she won't listen. So when she needs access to these sites I gotta whitelist em...
Yea I definitely going to put some of my wife's shopping sites on the blacklist just to fu*k with her.
+2   

 1 month ago '17        #8
bxivz  OP
Props total: 538 538  Slaps total: 58 58
 Sire said
lol have you used raspberry pi for any other purpose?

im not really big on media serving and live streaming and that typa sh*t that a lot of people use em for.

but i wanted to try rigging up one with neverware cloudready to see what kinda cheap chromeos-like i could use. something nice and compact like a chromebox or usff pc but for a fraction of the cost.

they are in the process of folding cloudready into the official google chromeos repo distribution...so it should be pretty close (it was already pretty close to begin with...minus stuff like android apps).
When I get some time I am going to have to mess around with the Pi and get into the coding aspects of it. For now I am happy with the Pihole because I previously had issues with the router my previous ISP provided before I got my own.
+1   

 1 month ago '16        #9
postemupndunkit 
Props total: 62158 62 K  Slaps total: 7616 7 K
I was literally reading about this last night. So trippy. Would be cool to be in complete control of what's going in and out of your network

 1 month ago '11        #10
Papa Shango 
Props total: 9511 9 K  Slaps total: 778 778
I've got a Pi 4 running Retro Pie, aint even used the sh*t after that first weekend. Thought about setting up a pi-hole but I don't have ads like that. AdBlock, Ublock, and Youtube Vanced been holding me down for years so the need really isn't there.

 1 month ago '05        #11
Crizzo82 
Props total: 816 816  Slaps total: 136 136
I've used pihole for a few years now. It's a game changer for sure. Love it.

 1 month ago '06        #12
Be Easy 
Props total: 15271 15 K  Slaps total: 1807 1 K
got mad pi’s laying around

might try it this weekend

 1 month ago '17        #13
bxivz  OP
Props total: 538 538  Slaps total: 58 58
 postemupndunkit said
I was literally reading about this last night. So trippy. Would be cool to be in complete control of what's going in and out of your network
I find it cool that I am able to see all the bullsh*t that apps and different sh*t phoning home.
+1   

 1 month ago '17        #14
bxivz  OP
Props total: 538 538  Slaps total: 58 58
 Be Easy said
got mad pi’s laying around

might try it this weekend
what else do you use the pi's for? I plan on putting a screen on the pi to constantly display the stats from the pi hole.

 1 month ago '06        #15
Be Easy 
Props total: 15271 15 K  Slaps total: 1807 1 K
 bxivz said
what else do you use the pi's for? I plan on putting a screen on the pi to constantly display the stats from the pi hole.
make arcades



Sign me up
 
 

yesterday...


most viewed right now
online now  70
Why can't these Chicago rappers let Tooka rest?
70 comments
1 day ago
@hiphop
most viewed right now
+395online now  29
Hell Yeah!!! After 3 Long Years Ya Boy Is A Gracie jiu jitsu Black Belt.
610 comments
1 day ago
@sports
most viewed right now
online now  22
Image(s) inside actors you thought would have blown up
146 comments
1 day ago
@movies
most viewed right now
+69online now  12
Chief Keef Goes Crazy On Young Buck's Classic Song Stomp
74 comments
2 days ago
@hiphop
back to top
register register Follow BX @ Twitter search BX privacyprivacy