Skip to content

Instantly share code, notes, and snippets.

@michaelgreenhill
Last active September 26, 2020 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelgreenhill/3cb7c46332d0c4f3ac251a3f65162971 to your computer and use it in GitHub Desktop.
Save michaelgreenhill/3cb7c46332d0c4f3ac251a3f65162971 to your computer and use it in GitHub Desktop.
Dockerised Pi-hole goodness
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Dnsmasq config for Pi-hole's FTLDNS
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
###############################################################################
# FILE AUTOMATICALLY POPULATED BY PI-HOLE INSTALL/UPDATE PROCEDURE. #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
# #
# IF YOU WISH TO CHANGE THE UPSTREAM SERVERS, CHANGE THEM IN: #
# /etc/pihole/setupVars.conf #
# #
# ANY OTHER CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE #
# WITHIN /etc/dnsmasq.d/yourname.conf #
###############################################################################
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=8.8.8.8
server=8.8.4.4
server=2001:44b8:1::1#53
server=2001:44b8:1::2#53
domain-needed
bogus-priv
interface=eth0
address=/fw02.my-secret-home-address.yeet/192.168.178.1
address=/.my-secret-home-address.yeet/192.168.178.37
address=/.content.steampowered.com/192.168.178.96
address=/content1.steampowered.com/192.168.178.96
address=/content2.steampowered.com/192.168.178.96
address=/content3.steampowered.com/192.168.178.96
address=/content4.steampowered.com/192.168.178.96
address=/content5.steampowered.com/192.168.178.96
address=/content6.steampowered.com/192.168.178.96
address=/content7.steampowered.com/192.168.178.96
address=/content8.steampowered.com/192.168.178.96
address=/cs.steampowered.com/192.168.178.96
address=/steamcontent.com/192.168.178.96
address=/client-download.steampowered.com/192.168.178.96
address=/.hsar.steampowered.com.edgesuite.net/192.168.178.96
address=/.akamai.steamstatic.com/192.168.178.96
address=/content-origin.steampowered.com/192.168.178.96
address=/clientconfig.akamai.steamtransparent.com/192.168.178.96
address=/steampipe.akamaized.net/192.168.178.96
address=/edgecast.steamstatic.com/192.168.178.96
address=/steam.apac.qtlglb.com.mwcloudcdn.com/192.168.178.96
address=/.cs.steampowered.com/192.168.178.96
address=/.cm.steampowered.com/192.168.178.96
address=/.edgecast.steamstatic.com/192.168.178.96
address=/.steamcontent.com/192.168.178.96
address=/cdn1-sea1.valve.net/192.168.178.96
address=/cdn2-sea1.valve.net/192.168.178.96
address=/.steam-content-dnld-1.apac-1-cdn.cqloud.com/192.168.178.96
address=/.steam-content-dnld-1.eu-c1-cdn.cqloud.com/192.168.178.96
address=/steam.apac.qtlglb.com/192.168.178.96
address=/edge.steam-dns.top.comcast.net/192.168.178.96
address=/edge.steam-dns-2.top.comcast.net/192.168.178.96
address=/steam.naeu.qtlglb.com/192.168.178.96
address=/steampipe-kr.akamaized.net/192.168.178.96
address=/steam.ix.asn.au/192.168.178.96
address=/steam.eca.qtlglb.com/192.168.178.96
address=/steam.cdn.on.net/192.168.178.96
address=/update5.dota2.wmsj.cn/192.168.178.96
address=/update2.dota2.wmsj.cn/192.168.178.96
address=/update6.dota2.wmsj.cn/192.168.178.96
address=/update3.dota2.wmsj.cn/192.168.178.96
address=/update1.dota2.wmsj.cn/192.168.178.96
address=/update4.dota2.wmsj.cn/192.168.178.96
address=/update5.csgo.wmsj.cn/192.168.178.96
address=/update2.csgo.wmsj.cn/192.168.178.96
address=/update4.csgo.wmsj.cn/192.168.178.96
address=/update3.csgo.wmsj.cn/192.168.178.96
address=/update6.csgo.wmsj.cn/192.168.178.96
address=/update1.csgo.wmsj.cn/192.168.178.96
address=/st.dl.bscstorage.net/192.168.178.96
address=/cdn.mileweb.cs.steampowered.com.8686c.com/192.168.178.96
address=/officecdn.microsoft.com/192.168.178.96
address=/.windowsupdate.com/192.168.178.96
address=/windowsupdate.com/192.168.178.96
address=/.dl.delivery.mp.microsoft.com/192.168.178.96
address=/dl.delivery.mp.microsoft.com/192.168.178.96
address=/.update.microsoft.com/192.168.178.96
address=/.do.dsp.mp.microsoft.com/192.168.178.96
address=/.microsoft.com.edgesuite.net/192.168.178.96
address=/amupdatedl.microsoft.com/192.168.178.96
address=/amupdatedl2.microsoft.com/192.168.178.96
address=/amupdatedl3.microsoft.com/192.168.178.96
address=/amupdatedl4.microsoft.com/192.168.178.96
address=/amupdatedl5.microsoft.com/192.168.178.96
address=/patches.rockstargames.com/192.168.178.96
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://tspprs.com/dl/crypto
https://raw.githubusercontent.com/HenningVanRaumle/pihole-ytadblock/master/ytadblock.txt
https://raw.githubusercontent.com/anudeepND/youtubeadsblacklist/master/domainlist.txt
https://hosts-file.net/grm.txt
https://reddestdream.github.io/Projects/MinimalHosts/etc/MinimalHostsBlocker/minimalhosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/KADhosts/hosts
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/add.Spam/hosts
https://v.firebog.net/hosts/static/w3kbl.txt
https://v.firebog.net/hosts/BillStearns.txt
https://www.dshield.org/feeds/suspiciousdomains_Low.txt
https://www.dshield.org/feeds/suspiciousdomains_Medium.txt
https://www.dshield.org/feeds/suspiciousdomains_High.txt
https://www.joewein.net/dl/bl/dom-bl-base.txt
https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt
https://adaway.org/hosts.txt
https://v.firebog.net/hosts/AdguardDNS.txt
https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
https://v.firebog.net/hosts/Easylist.txt
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts;showintro=0
https://raw.githubusercontent.com/StevenBlack/hosts/master/data/UncheckyAds/hosts
https://www.squidblacklist.org/downloads/dg-ads.acl
https://www.stopforumspam.com/downloads/toxic_domains_whole.txt
https://raw.githubusercontent.com/CHEF-KOCH/Audio-fingerprint-pages/master/AudioFp.txt
https://raw.githubusercontent.com/CHEF-KOCH/Canvas-fingerprinting-pages/master/Canvas.txt
https://raw.githubusercontent.com/CHEF-KOCH/WebRTC-tracking/master/WebRTC.txt
https://raw.githubusercontent.com/CHEF-KOCH/CKs-FilterList/master/Anti-Corp/hosts/NSABlocklist.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts
version: "3.3"
services:
pihole:
image: "pihole/pihole:latest"
container_name: "selby-pihole01"
restart: always
environment:
TZ: "Australia/Melbourne"
ServerIP: "192.168.178.50"
# ServerIPv6: "2001:abcd:face:3200::19:50"
WEBPASSWORD: "a super secure password yo"
volumes:
- "/share/Container/selby-pihole01/dnsmasq.d:/etc/dnsmasq.d:rw"
- "/share/Container/selby-pihole01/config:/etc/pihole:rw"
- "/share/Container/selby-pihole01/resolv.conf:/etc/resolv.conf:rw"
networks:
default:
ipv4_address: 192.168.178.50
# ipv6:
# ipv6_address: "2001:abcd:face:3200::19:50"
dns:
- 127.0.0.1
- 1.1.1.1
- 1.0.0.1
- 8.8.8.8
- 8.8.4.4
networks:
default:
external:
name: qnet-static-eth0-b03c93
# ipv6:
# external:
# name: selby_ipv6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment