Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


peejayw

1393 posts

Uber Geek


#277310 7-Oct-2020 11:07
Send private message quote this post

Can Pi-hole be set up to just block ads to one device on a network or does it affect the whole network?

 

I have got it installed and running on a Pi 3 and now I want to try to block ads going to my Nvidia Shield.

 

I have set a static IP for the Pi but now I am confused :-)

 

Do I need to make any changes on the router or can I just change the DNS on the Shield to point to the Pi?

 

Does the Pi need an ethernet connection or is WiFi OK?

 

The router is an HG659.

 

Many thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2

xpd

xpd
Im a pirate
10795 posts

Uber Geek

Mod Emeritus
Trusted
Lifetime subscriber

  #2580560 7-Oct-2020 11:17
Send private message quote this post

Set the DNS on the Shield to the PiHole - leave your router DHCP DNS alone. So only systems with the DNS pointing to the PiHole will be affected. Everything else will run as usual.

 

Use ethernet where possible.

 

 





XPD^ / DemiseNZ

 

Blog         Free Games        Twitter      My TradeMe Goodies

 

Pirating in Sea Of Thieves

 

Coming Soon - BBS door games - all the classics!

 

 


Rodders1nz
9 posts

Wannabe Geek


  #2580565 7-Oct-2020 11:24
Send private message quote this post

You can run it for the whole network or just selected devices

 

On you shield go to your ip configs and enter the ip for the dns to the address of the pi-hole

 

If your make a change to your router it will apply to your whole network.

 

I would recommend using wired over wifi  


 
 
 
 


Gurezaemon
403 posts

Ultimate Geek

Lifetime subscriber

  #2580568 7-Oct-2020 11:27
Send private message quote this post

Agreed with just setting it on the Shield. Definitely the simplest option. 

 

Another option, that is more future-looking, is to set the Pihole on the router, and then use the Group Management function in Pihole to configure all the other devices to have no protection. This would let you gradually introduce blocking to other devices if you so wished at a later point.





Get your business seen overseas - Nexus Translations


timmmay
16513 posts

Uber Geek

Trusted
Subscriber

  #2580590 7-Oct-2020 11:57
Send private message quote this post

The new version of Pi Hole can have profiles for different devices, so you can easily target who has full access and who has ad blocking. I find it best to have Pi Hole doing DHCP, delegated from the router.


CB_24
309 posts

Ultimate Geek


  #2580636 7-Oct-2020 13:31
Send private message quote this post

Why not Pi-Hole everything?


peejayw

1393 posts

Uber Geek


  #2580637 7-Oct-2020 13:32
Send private message quote this post

Thanks everyone. So I set the Pi up on Ethernet and set the DNS on the Shield to point to the Pi but now the Shield says that Wifi has no internet connection. All my other devices connect just fine.

 

Any ideas on what I may have done wrong?

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


timmmay
16513 posts

Uber Geek

Trusted
Subscriber

  #2580643 7-Oct-2020 13:50
Send private message quote this post

Does say a laptop work on the same ethernet connection? What about if it's configured to use Pi Hole as DNS? What's doing DHCP, your router or the Pi Hole?


 
 
 
 


peejayw

1393 posts

Uber Geek


  #2580650 7-Oct-2020 13:59
Send private message quote this post

Yes laptop works on same ethernet even when using Pi for DNS. Router is doing DHCP.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


Rodders1nz
9 posts

Wannabe Geek


  #2580662 7-Oct-2020 14:12
Send private message quote this post

Did you set the wired port to a static ip? can you access your pi by http://(your ip here)/admin/


peejayw

1393 posts

Uber Geek


  #2580670 7-Oct-2020 14:14
Send private message quote this post

Yes I set it to static and I can access via the admin page.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


timmmay
16513 posts

Uber Geek

Trusted
Subscriber

  #2580701 7-Oct-2020 15:21
Send private message quote this post

I wonder if the Shield is using a site to test connectivity that is blocked by Pi Hole. Go into the Pi Hole UI, disable for 15 minutes, reboot Shield and try again.


peejayw

1393 posts

Uber Geek


  #2580798 7-Oct-2020 18:28
Send private message quote this post

Thanks for everyone's help. I finally connected the Shield via Ethernet, should have done that at the start. I now have the Shield ethernet connection using the Pi-hole as DNS server and I set up a few relevant ad lists but I still get Youtube ads and the Pi-hole does not show any blocking from many queries. Was I mistaken in thinking Pi-Hole could block Youtube ads?

 

Thanks.





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


fearandloathing
259 posts

Ultimate Geek

Lifetime subscriber

  #2580868 7-Oct-2020 19:12
Send private message quote this post

peejayw:

Was I mistaken in thinking Pi-Hole could block Youtube ads?


Thanks.



Largely yes, as youtube adds are served from the same host as the videos.

peejayw

1393 posts

Uber Geek


  #2580869 7-Oct-2020 19:15
Send private message quote this post

<Swears under breath>





 I'm supposed to respect my elders, but it's getting harder and harder for me to find one now.


fe31nz
596 posts

Ultimate Geek


  #2581687 9-Oct-2020 02:09
Send private message quote this post

If you want to be able to block ads from the same domain name or IP address, you could try a web proxy such as Privoxy:

 

https://www.privoxy.org/

 

You have to have a PC (Windows or Linux) to run it on - a Pi should work too.  With Privoxy you can set a block on any URL and I have also used it to edit the data on a web page to cut out some code that did ads.  I run my mobile and tablet through Privoxy also and I get surprised when I see ads when I am on mobile data (which is fairly infrequent).  When on mobile data I can also enable an OpenVPN connection back to home and get to use the home network (including Privoxy) when out and about.

 

Privoxy provides a web page to use to edit the blocking rules, and you can set particular web sites to not be blocked by each rule if necessary, so you do not need to disable any general rules to get one particular site to work.   For example, there is a rule blocking all URLs that match ad*. so if you are trying to access a site that has a name starting with "ad", you may need to add an unblock rule for it.

 

The downside of using a proxy is that you have to enable use of it individually on each device or even at the web browser level.  A DNS blocker just catches the DNS traffic and the device will use it without changing any configuration.  And Privoxy will only block web traffic, not things on other ports or protocols.


 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic





News »

Nanoleaf enhances lighting line with launch of Triangles and Mini Triangles
Posted 17-Oct-2020 20:18


Synology unveils DS16211+
Posted 17-Oct-2020 20:12


Ingram Micro introduces FootfallCam to New Zealand channel
Posted 17-Oct-2020 20:06


Dropbox adopts Virtual First working policy
Posted 17-Oct-2020 19:47


OPPO announces Reno4 Series 5G line-up in NZ
Posted 16-Oct-2020 08:52


Microsoft Highway to a Hundred expands to Asia Pacific
Posted 14-Oct-2020 09:34


Spark turns on 5G in Auckland
Posted 14-Oct-2020 09:29


AMD Launches AMD Ryzen 5000 Series Desktop Processors
Posted 9-Oct-2020 10:13


Teletrac Navman launches integrated multi-camera solution for transport and logistics industry
Posted 8-Oct-2020 10:57


Farmside hits 10,000 RBI customers
Posted 7-Oct-2020 15:32


NordVPN starts deploying colocated servers
Posted 7-Oct-2020 09:00


Google introduces Nest Wifi routers in New Zealand
Posted 7-Oct-2020 05:00


Orcon to bundle Google Nest Wifi router with new accounts
Posted 7-Oct-2020 05:00


Epay and Centrapay partner to create digital gift cards
Posted 2-Oct-2020 17:34


Inseego launches 5G MiFi M2000 mobile hotspot
Posted 2-Oct-2020 14:53









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.