1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting up Pi-hole

Discussion in 'Linux & Open Source' started by NoNameNoNumber, 5 Nov 2016.

  1. sHo0sH

    Mobster

    Joined: 10 Apr 2011

    Posts: 3,219

    Location: London

    Updated this today - Guardian website is showing ads and so is youtube. Any ideas?
     
  2. mortals

    Mobster

    Joined: 17 Oct 2002

    Posts: 3,116

    As this seems really popular
    Does anyone notice a bottleneck with the raspberry pi?

    Most speed tests on the pi's eth0 seem to max at ~70Mbps download :confused: ref ref2
    Raspberrypi's still use internal ethernet over USB? (check dmesg | grep eth0)
    Code:
    smsc95xx v1.0.4
    smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet
     
  3. the-evaluator

    Mobster

    Joined: 24 Sep 2015

    Posts: 2,938

    The amount of traffic that DNS generates is tiny and it uses very little bandwidth. There's no issues at all with the ethernet port on the RPi.

    My Pi has been up for about 5 days and the total traffic on eth0 is 166Mb RX, 48.4Mb TX. That includes the traffic generated by a couple of 'apt-get update' and traffic to the Pi-Hole web interface.

    Code:
    [email protected]:~:$ ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr b8:27:eb:df:ba:ca  
              inet addr:192.168.8.2  Bcast:192.168.8.255  Mask:255.255.255.0
              inet6 addr: fe80::9e92:890d:ac63:b7db/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:1216829 errors:0 dropped:103422 overruns:0 frame:0
              TX packets:393919 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:174757388 (166.6 MiB)  TX bytes:50778894 (48.4 MiB)
    
    [email protected]:~:$ uptime
     17:28:15 up 5 days,  2:55,  1 user,  load average: 0.00, 0.00, 0.00
    [email protected]:~:$ 
     
  4. mortals

    Mobster

    Joined: 17 Oct 2002

    Posts: 3,116

    Ah cool

    I thought this project was one of the ones where you use the rpi as a gateway/proxy like SquidGuard. :)
     
  5. the-evaluator

    Mobster

    Joined: 24 Sep 2015

    Posts: 2,938

    Nah. Pi-Hole is DNS only so much, much ligher on the OS than any form of proxy server.
     
  6. Kol

    Capodecina

    Joined: 8 Jan 2003

    Posts: 13,995

    Location: London

    Haven't updated but am getting YouTube ads, too.
     
  7. Tomsk

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,205

    Location: Overground, underground..

    FYI a Raspberry Pi 3 Value Starter Kit is now £39.99 from Amazon
     
  8. Feek

    Commissario

    Joined: 16 Oct 2002

    Posts: 233,753

    Location: In the radio shack

    Thanks - Unfortunately personal circumstances mean I can't justify even that for another one at the moment :(
     
  9. the-evaluator

    Mobster

    Joined: 24 Sep 2015

    Posts: 2,938

    Ditto. I don't remember seeing once since installing Pi-Hole but yesterday and today I've had loads of ads.
     
  10. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    Are you guys manually running the pihole -up command or has anyone else stuck it into crontab?
    I've put it on both my servers as DNS 1 & 2 and running the command weekly
     
  11. the-evaluator

    Mobster

    Joined: 24 Sep 2015

    Posts: 2,938

    I run it manually when I do an apt-get update && apt-get upgrade. Personally I wouldn't do it unattended because a major version upgrade put password protection on the web interface and had I not seen mention of that at the consoel when doing the upgrade I'd be stuck for a while until I realised how to reset the password.

    I have shoved 'pihole -g' and 'pihole restartdns' into a cron job that fires at 2am every day,
     
  12. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    Aggravatingly I've just started to get adverts on YouTube and also on a website or 2 that I know pi-hole previously stopped them on.
     
  13. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    I've just changed mine from -up to -g. I didn't realise you could do the ad domain lists on their own. Nice one Thanks
     
  14. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    Triple post!!!
    I've just noticed when I updated the domains that there were 6 domains in whitelist which I certainly hadn't put there. May have been my issue.
     
  15. Evilpaul

    Wise Guy

    Joined: 20 Aug 2010

    Posts: 1,081

    Location: Not Coventry

    Pi-hole automatically whitelists the domains where it gets the ad-lists from; It's worth checking but they shouldn't be ad serving domains.
     
  16. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    I've started getting YouTube ads again. Only noticed it last night.
     
  17. SupraWez

    Wise Guy

    Joined: 17 Nov 2007

    Posts: 2,477

    Has anyone installed this on normal Linux VM like CentOS?
     
  18. Steveocee

    Soldato

    Joined: 5 Nov 2011

    Posts: 5,169

    Location: Derbyshire

    Normal classified as? Mine is running on both a "normal" Ubuntu Server bare metal and a second a a Ubuntu Server VM.
     
  19. SupraWez

    Wise Guy

    Joined: 17 Nov 2007

    Posts: 2,477

    Bad choice of words :D how about x86 vs ARM.

    Your reply answers my question, thanks, I will fire up a small CentOS VM ;)
     
  20. Feek

    Commissario

    Joined: 16 Oct 2002

    Posts: 233,753

    Location: In the radio shack

    Code:
    pihole -up
    There's been an update.