Seitenleiste

Navigation


tweaks:pihole

Pi-hole®

Install: https://pi-hole.net/ & https://github.com/pi-hole/pi-hole/#one-step-automated-install

  1. curl -sSL https://install.pi-hole.net | bash
  2. more OK or Accept for pihole
  3. use ipv4 and 6
  4. Webadmin interface: ON, for later use of Blacklists and more
  5. Use Webserver lighttpd YES
    • BREAK! If you use Apache2 type here NO and after Step 7 goto Step 10, than 13
  6. Wait for installation (next 2 cups of coffee?)
  7. Your Admin Webpage login password is „READ IT ON YOUR SCREEN!“
    • for passwordchange use
      sudo pihole -a -p
  8. Change the Pihole Webadmin Interface Port from 80 to 8080
    • sudo vim /etc/lighttpd/lighttpd.conf
  9. edit
    • sudo vim /var/www/html/pihole/index.php
    • change
      $serverName = htmlspecialchars($_SERVER["HTTP_HOST"]);

      with

      $serverName = htmlspecialchars($_SERVER["SERVER_ADDR"]);
  10. usermod -a -G pihole www-data
  11. restart lighttpd
    • sudo /etc/init.d/lighttpd restart
  12. For APACHE2-User use http://NASIPADRESS/admin
  13. Add your personal Blocklists or use only the PiholeDefault-Lists
    1. Navigate to PiholeWebadmin → Settings → Blocklist
    2. add these lines
    • https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt	
      https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/android-tracking.txt	
      https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt	
      https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt	
      https://v.firebog.net/hosts/Prigent-Ads.txt	
      https://v.firebog.net/hosts/Easyprivacy.txt	
      https://raw.githubusercontent.com/StevenBlack/hosts/master/data/UncheckyAds/hosts	
      https://v.firebog.net/hosts/Easylist.txt	
      https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt	
      https://v.firebog.net/hosts/AdguardDNS.txt	
      https://adaway.org/hosts.txt
    1. Navigate to Whitelist and add
    • aax-eu.amazon-adsystem.com
      activity.windows.com
      adf.ly
      ads.google.com
      adwords.google.com
      analytics.google.com
      analytics.twitter.com
      android.clients.google.com
      api.facebook.com
      api.ipify.org
      api.mixpanel.com
      api.vungle.com
      app-measurement.com
      b.stats.paypal.com
      bit.ly
      c.amazon-adsystem.com
      cdn-gl.imrworldwide.com
      cdn.augur.io
      cdn.mxpnl.com
      cdn.optimizely.com
      client-event-reporter.twitch.tv
      clients1.google.com
      clients2.google.com
      clients3.google.com
      clients4.google.com
      clients5.google.com
      connect.facebook.net
      countess.twitch.tv
      crashlytics.com
      crossout.net
      csi.gstatic.com
      decide.mixpanel.com
      dev.appboy.com
      device-metrics-us-2.amazon.com
      dl.dropbox.com
      dpm.demdex.net
      e.crashlytics.com
      ea.com
      events.evie.com
      fls-eu.amazon.com
      fls-eu.amazon.de
      fonts.googleapis.com
      goo.gl
      googleads.g.doubleclick.net
      graph.facebook.com
      graph.instagram.com
      gravatar.com
      hosts-file.net
      id.google.com
      imasdk.googleapis.com
      imgs.xkcd.com
      keystone.mwbsys.com
      m.exactag.com
      msftncsi.com
      netflix.com
      ow.ly
      partners.webmasterplan.com
      pixel.bild.de
      pixel.facebook.com
      prophet.heise.de
      pstmrk.it
      pubsub-edge.twitch.tv
      quantcast.mgr.consensu.org
      raw.githubusercontent.com
      rcm-eu.amazon-adsystem.com
      rem-track.bild.de
      reports.crashlytics.com
      res.cloudinary.com
      rover.ebay.com
      rum-collector.wpm.neustar.biz
      s.amazon-adsystem.com
      s.shopify.com
      s.youtube.com
      s3.amazonaws.com
      sb.scorecardresearch.com
      secure-ds.serving-sys.com
      settings-win.data.microsoft.com
      settings.crashlytics.com
      spade.twitch.tv
      ssl.google-analytics.com
      stats.g.doubleclick.net
      sync.search.spotxchange.com
      syndication.twitter.com
      sysctl.org
      t.co
      t23.intelliad.de
      tags.tiqcdn.com
      teredo.ipv6.microsoft.com
      tinyurl.com
      tomshardware.com
      track.adform.net
      tracking.epicgames.com
      twitch.tv
      twitter.com
      txxx.com
      uidbox.uimserv.net
      v10.events.data.microsoft.com
      v10.vortex-win.data.microsoft.com
      v20.events.data.microsoft.com
      vendorlist.consensu.org
      watson.telemetry.microsoft.com
      www.bit.ly
      www.ecdinterface.philips.com
      www.google-analytics.com
      www.googleadservices.com
      www.googletagmanager.com
      www.gstatic.com
      www.msftncsi.com
      www.smartredirect.de
      zattoo.com
      zeustracker.abuse.ch
    • Number of domains being pulled in by gravity: 231132
    • Removing duplicate domains
    • Number of unique domains trapped in the Event Horizon: 184651
    • Number of whitelisted domains: 128
    • Number of blacklisted domains: 3
    • Number of regex filters: 1
  14. Reboot your NAS
  15. Howto Pihole Update?
    • goto SSH and use
      sudo pihole -up

TODO: PiHole 5 adds better BlacknWhitelists: Domain Wildcards, RegEx Filter

tweaks/pihole.txt · Zuletzt geändert: 2020/06/07 04:28 von donzi