Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
debian:other-debian:pi-hole-debian [2018/11/06 16:10] – [Installation / Deployment von Pi-hole] michael | debian:other-debian:pi-hole-debian [2018/11/08 16:59] – [Weiteres] michael |
---|
---- | ---- |
| |
''<wrap em>Optionales:</wrap> blackGATE custom design!'' <wrap hi>**Achtung:** falls das custom-design nicht gewünscht wird, die ERSTE markierte Zeile im docker_compose.yml WEGLASSEN sowie auch nachfolgende File und den Ordner nicht erstellen.</wrap> | ''<wrap em>Optional:</wrap> blackGATE custom design!'' <wrap hi>**Achtung:** falls das custom-design nicht gewünscht wird, die ERSTE markierte Zeile im docker_compose.yml WEGLASSEN sowie auch nachfolgende File und den Ordner nicht erstellen.</wrap> |
| |
<code># mkdir /opt/docker-pihole/adminCMS | <code># mkdir /opt/docker-pihole/adminCMS |
| |
| |
/* ---------------------------START of Default RULES (minified)-----------------------------------*/ | /* --------------------------- START of Default RULES (minified) -----------------------------------*/ |
.small-box{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.skin-blue .list-group-item:hover{background:#ddd}@-webkit-keyframes Pulse{from,to{color:#630030;-webkit-text-shadow:0 0 2px transparent}50%{color:#e33100;-webkit-text-shadow:0 0 5px #e33100}}@keyframes Pulse{from,to{color:#630030;text-shadow:0 0 2px transparent}50%{color:#e33100;text-shadow:0 0 5px #e33100}}a.lookatme{-webkit-animation-name:Pulse;animation-name:Pulse;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.table-responsive{-webkit-overflow-scrolling:touch}#all-queries td:nth-of-type(1),#all-queries td:nth-of-type(5){white-space:nowrap}#all-queries td:nth-of-type(3){min-width:200px;word-break:break-all;white-space:pre-wrap}#all-queries_info{white-space:unset}#all-queries_wrapper .pagination>li>a{padding-left:6px;padding-right:6px;min-width:34px;text-align:center}@media screen and (max-width:500px),screen and (min-width:767px) and (max-width:1000px){#all-queries_wrapper .pagination>li.next,#all-queries_wrapper .pagination>li.previous{display:none}#all-queries_wrapper .pagination>li:nth-of-type(2) a{border-top-left-radius:4px;border-bottom-left-radius:4px}#all-queries_wrapper .pagination>li:nth-last-of-type(2) a{border-top-right-radius:4px;border-bottom-right-radius:4px}}.main-header>.navbar{height:50px}#resetButton{color:red;font-weight:700}.vertical-alignment-helper{display:table;width:100%;height:100%;pointer-events:none}.vertical-alignment-helper>.vertical-align-center{display:table-cell;vertical-align:middle}.vertical-alignment-helper>.vertical-align-center>.modal-content{width:250px;margin-left:auto;margin-right:auto;word-wrap:break-word;pointer-events:all}.alSpinner{top:.1em;left:.1em;width:.8em;height:.8em;border-radius:50%;border:4px solid silver;border-right-color:transparent;-webkit-animation:fa-spin 1s infinite linear;animation:fa-spin 1s infinite linear} | .small-box{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.skin-blue .list-group-item:hover{background:#ddd}@-webkit-keyframes Pulse{from,to{color:#630030;-webkit-text-shadow:0 0 2px transparent}50%{color:#e33100;-webkit-text-shadow:0 0 5px #e33100}}@keyframes Pulse{from,to{color:#630030;text-shadow:0 0 2px transparent}50%{color:#e33100;text-shadow:0 0 5px #e33100}}a.lookatme{-webkit-animation-name:Pulse;animation-name:Pulse;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.table-responsive{-webkit-overflow-scrolling:touch}#all-queries td:nth-of-type(1),#all-queries td:nth-of-type(5){white-space:nowrap}#all-queries td:nth-of-type(3){min-width:200px;word-break:break-all;white-space:pre-wrap}#all-queries_info{white-space:unset}#all-queries_wrapper .pagination>li>a{padding-left:6px;padding-right:6px;min-width:34px;text-align:center}@media screen and (max-width:500px),screen and (min-width:767px) and (max-width:1000px){#all-queries_wrapper .pagination>li.next,#all-queries_wrapper .pagination>li.previous{display:none}#all-queries_wrapper .pagination>li:nth-of-type(2) a{border-top-left-radius:4px;border-bottom-left-radius:4px}#all-queries_wrapper .pagination>li:nth-last-of-type(2) a{border-top-right-radius:4px;border-bottom-right-radius:4px}}.main-header>.navbar{height:50px}#resetButton{color:red;font-weight:700}.vertical-alignment-helper{display:table;width:100%;height:100%;pointer-events:none}.vertical-alignment-helper>.vertical-align-center{display:table-cell;vertical-align:middle}.vertical-alignment-helper>.vertical-align-center>.modal-content{width:250px;margin-left:auto;margin-right:auto;word-wrap:break-word;pointer-events:all}.alSpinner{top:.1em;left:.1em;width:.8em;height:.8em;border-radius:50%;border:4px solid silver;border-right-color:transparent;-webkit-animation:fa-spin 1s infinite linear;animation:fa-spin 1s infinite linear} |
/* --------------------------- END of Default RULES (minified)-----------------------------------*/ | /* --------------------------- END of Default RULES (minified) -----------------------------------*/ |
</sxh> | </sxh> |
''<wrap em>END of Optional</wrap>'' | ''<wrap em>END of Optional</wrap>'' |
| |
<WRAP center box 100%> | <WRAP center box 100%> |
==== Anlegen des docker-compose files für Pi-hole ==== | ==== Anlegen des docker-compose file für Pi-hole ==== |
| |
Das verwendete Image ist ausschlisslich für x86_x64 Systeme geeignet. Soll Pi-hole auf einem ARM basierten System dokerisiert installiert werden, kann [[debian:other-debian:pi-hole-debian-arm|HIER]] geschaut werden. | Das verwendete Image ist ausschlisslich für x86_x64 Systeme geeignet. Soll Pi-hole auf einem ARM basierten System dokerisiert installiert werden, kann [[debian:other-debian:pi-hole-debian-arm|HIER]] geschaut werden. |
</sxh> | </sxh> |
| |
**Erklärung zu den Parametern:** | __Erklärung zu den Environment Variablen:__ |
* ''**VIRTUAL_HOST**'': Die FQND von welcher später via Web-GUI auf das Pi-hole zugegriffen werden soll. | * ''**VIRTUAL_HOST**'': Die FQND von welcher später via Web-GUI auf das Pi-hole zugegriffen werden soll. |
* ''**ServerIP**'': Die Server IP-Adresse des Docker-Hosts. (Ausserhalb des Containers) | * ''**ServerIP**'': Die Server IP-Adresse des Docker-Hosts. (Ausserhalb des Containers) |
* ''**DNS1**'': Standard Upstream-DNS-Server von Pi-hole. | * ''**DNS1**'': Standard Upstream-DNS-Server von Pi-hole. |
* | * ''**WEBPASSWORD**'': Repräsentiert das admin-Passwort welches benötigt wird um sich am Web-GUI anzumelden. |
| * ''**WEB_PORT**'': Der Port auf welchem der Server das Admin-GUI ausliefert. |
| * ''**INTERFACE**'': Das Host-Interface. (<wrap em>Wichtig wenn Standard nicht eth0</wrap>) |
</WRAP> | </WRAP> |
| |
# vim /opt/docker-pihole/dnsmasq.d/01-pihole.conf | # vim /opt/docker-pihole/dnsmasq.d/01-pihole.conf |
</code> | </code> |
| |
| <hidden 01-pihole.conf><sxh bash;> |
| # Pi-hole: A black hole for Internet advertisements |
| # (c) 2015, 2016 by Jacob Salmela |
| # Network-wide ad blocking via your Raspberry Pi |
| # http://pi-hole.net |
| # dnsmasq config for Pi-hole |
| # |
| # Pi-hole is free software: you can redistribute it and/or modify |
| # it under the terms of the GNU General Public License as published by |
| # the Free Software Foundation, either version 2 of the License, or |
| # (at your option) any later version. |
| |
| ############################################################################### |
| # 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 SEPERATE CONFIG FILE # |
| # OR IN /etc/dnsmasq.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=extra |
| log-facility=/var/log/pihole.log |
| |
| local-ttl=2 |
| |
| log-async |
| server=127.0.0.1#5353 |
| domain-needed |
| bogus-priv |
| interface=enp1s0 |
| server=/fritz.box/192.168.1.1 |
| server=/1.168.192.in-addr.arpa/192.168.1.1 |
| </sxh> |
| </hidden> |
| |
| ---- |
| |
<code> | <code> |
# vim /opt/docker-pihole/pihole/blacklist.txt | # vim /opt/docker-pihole/pihole/blacklist.txt |
</code> | </code> |
| |
| <hidden blacklist.txt><sxh plain;> |
| bvadtgs.scdn1.secure.raxcdn.com |
| 4b6994dfa47cee4.com |
| metrics.plex.tv |
| gebadu.com |
| pl4518712.puserving.com |
| analytics.ff.avast.com |
| p5-3os3pimkl6tg2-ixzsvd47ghupqap6-659208-i1-v6exp3.ds.metric.gstatic.com |
| </sxh> |
| </hidden> |
| |
| ---- |
| |
<code> | <code> |
# vim /opt/docker-pihole/pihole/whitelist.txt | # vim /opt/docker-pihole/pihole/whitelist.txt |
</code> | </code> |
| |
| <hidden whitelist.txt><sxh plain;> |
| raw.githubusercontent.com |
| mirror1.malwaredomains.com |
| sysctl.org |
| zeustracker.abuse.ch |
| s3.amazonaws.com |
| hosts-file.net |
| serials.ws |
| www.serials.ws |
| www.googleadservices.com |
| platform.linkedin.com |
| cdn.ravenjs.com |
| public-assets.envato-static.com |
| ipm-provider.ff.avast.com |
| www.smartredirect.de |
| |
| </sxh> |
| </hidden> |
| |
| ---- |
| |
<code> | <code> |
# vim /opt/docker-pihole/pihole/setupVars.conf | # vim /opt/docker-pihole/pihole/setupVars.conf |
</code> | </code> |
| |
| <hidden setupVars.conf><sxh plain;> |
| DHCP_START=192.168.1.180 |
| DHCP_END=192.168.1.250 |
| DHCP_ROUTER=192.168.1.1 |
| DHCP_LEASETIME=48 |
| PIHOLE_DOMAIN=local |
| DHCP_IPv6=true |
| DHCP_ACTIVE=false |
| DNS_FQDN_REQUIRED=true |
| DNS_BOGUS_PRIV=true |
| DNSSEC=false |
| CONDITIONAL_FORWARDING=true |
| CONDITIONAL_FORWARDING_IP=192.168.1.1 |
| CONDITIONAL_FORWARDING_DOMAIN=fritz.box |
| CONDITIONAL_FORWARDING_REVERSE=1.168.192.in-addr.arpa |
| PIHOLE_DNS_1=127.0.0.1#5353 |
| PIHOLE_DNS_2= |
| QUERY_LOGGING=true |
| INSTALL_WEB_SERVER=true |
| INSTALL_WEB_INTERFACE=true |
| LIGHTTPD_ENABLED= |
| IPV4_ADDRESS=192.168.1.2 |
| IPV6_ADDRESS= |
| WEBPASSWORD=d295e1c88d5494f1f40cce9be08428e73a79792d37f4ffa6100ac283901479aa |
| PIHOLE_INTERFACE=enp1s0 |
| |
| </sxh> |
| </hidden> |
| |
| ---- |
| |
<code> | <code> |