Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
en:howtos:pi-hole [2022/02/18 08:09] – Externe Bearbeitung 127.0.0.1 | en:howtos:pi-hole [2022/02/18 08:25] (aktuell) – morquai | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Pi-Hole | + | ====== Pi-Hole |
- | Wer kennt das nicht, bei Google | + | Who does not know that, clicked on a link on Google |
- | Die Möglichkeiten sind vielfältig und beginnen mit der Installation von Ad-Blockern im Browser, mit Black Lists im Router. Dabei kann man es sich auf einfach machen.... Die Werbung muss ja irgendwo herkommen, dies geschieht nicht wie früher, wo ich in einer Zeitung ein Inserat aufgegeben habe und diese es dann veröffentlichte. Damals war die Werbung Bestandteil der Zeitung und Webseiten sehen so aus, als wäre die Werbung ebenfalls ihr Bestandteil. Glücklicherweise ist dem aber nicht so, denn die Werbung wird aus externen Quellen, sogenannten Werbenetzwerken, erst dann heruntergeladen wenn ihr Euch die Webseite anzeigt. Dadurch wird erst eine "personalisierte" | + | The possibilities are many and start with installing ad blockers in the browser, with black lists in the router. You can make it easy on yourself.... The advertising has to come from somewhere, it doesn' |
- | Und genau hier ist der Ansatzpunkt um ca. 80% aller Werbung zu verbannen. Die Idee ist, alle Werbung, die nicht Bestandteil der Webseite selbst ist, gar nicht erst zu laden. Nicht nur die Ladezeiten der Webseiten wird verringert, im Zusammenspiel mit [[.: | + | And this is exactly where the starting point is to ban about 80% of all advertising. The idea is to not load any ads that are not part of the website itself. Not only the loading times of the websites are reduced, in combination with [[.: |
====== Installation ====== | ====== Installation ====== | ||
curl -sSL https:// | curl -sSL https:// | ||
| | ||
- | Wie bei [[.: | + | As with [[.: |
- | * Select Upstream DNS Provider - 192.168.178.1 (meine Fritz Box) | + | * Select Upstream DNS Provider - 192.168.178.1 (my Fritz Box) |
- | * Select Protocols - hier habe ich Ipv6 abgewählt, aber nur weil ich mein Provider mir kein IPv6 anbietet. | + | * Select Protocols - I deselected IPv6 here, but only because my provider doesn' |
- | * Do you want to use your current network settings as a static address? - | + | * Do you want to use your current network settings as a static address? - |
- | * Ip Address: 192.168.178.30 (IP des Raspberry Pi im Heimnetz) | + | * Ip Address: 192.168.178.30 (IP of the Raspberry Pi in the home network) |
- | * Gateway: 192.168.178.1 (IP der Fritz Box im Heimnetz | + | * Gateway: 192.168.178.1 (IP of the Fritz Box in the home network |
- | * Do you want to log queries? - Yes, um Statistiken sehen zu können. Wer darauf verzichten möchte um die SD-Karte des Pi zu schonen, kann hier auch " | + | * Do you want to log queries? - Yes to be able to see statistics. If you want to do without it to protect the Pi's SD card, you can also select |
- | Im Laufe der Installation wird die URL des [[http:// | + | In the course of the installation, |
- | Zu diesem Zeitpunkt ist Pi-Hole | + | At this point Pi-Hole |
- | | + | |
| | ||
- | Wenn Euch das nicht gelingt, oder ihr den Werbeblocker nur für einzelne Geräte nutzen wollt, müsst Ihr die DNS Einstellungen auf jedem einzelnen Gerät anpassen. | + | If you don't succeed, or you only want to use the ad blocker for individual devices, you have to adjust the DNS settings on each individual device. |
- | ====== | + | ====== |
- | Es ist für das Blocken der Werbung nichts weiter zu konfigurieren, solltet Ihr aber etwas ändern wollen kann dies entweder durch ändern der Datei / | + | There is nothing else to configure for blocking ads, but if you want to change something, you can either change the / |
sudo service dnsmasq restart | sudo service dnsmasq restart | ||
Zeile 44: | Zeile 44: | ||
Apropos: in einer /etc/hosts Datei wird alles, was hinter dem Zeichen "#" | Apropos: in einer /etc/hosts Datei wird alles, was hinter dem Zeichen "#" | ||
+ | ====== For experts ====== | ||
+ | You want more, e.g. because your home router does not offer DNS service or you want to redirect your own addresses? Of course, this is not a problem, because Pi-Hole uses the dnsmasq service, a small, simple DNS server, for its functions. The configuration of the DNS server can be found under / | ||
+ | * naming home IPs | ||
+ | * Redirects external addresses to internal addresses. What for? You certainly operate your own cloud in the home network in order to have data available on all devices. Of course, this cloud must also be accessible from the Internet, which means that you have to use two names for the cloud. The name in the internal network is therefore different from the name that must be used from the Internet. To avoid this, dnsmasq can redirect the external name in the home network to the internal address. | ||
+ | First we create our own configuration file / | ||
+ | | ||
+ | addn-hosts=/ | ||
+ | | ||
+ | This is a friendly way of telling dnsmasq that there is a / | ||
+ | | ||
+ | 192.168.178.30 raspberrypi raspberrypi.fritz.box # PI for PiHole | ||
+ | 192.168.178.40 pi3 pi3.fritz.box onkelhartwig.myfirewall.org onkelhartwig.myfirewall.org # PI for owncloud and OpenVPN client | ||
+ | | ||
+ | As you can see, I have entered two Raspberry Pis for which dnsmasq translates the names into IP addresses (and vice versa). When I'm online, " | ||
+ | Speaking of which: in an /etc/hosts file, everything after the "#" | ||