mirror of
https://github.com/pi-hole/docs.git
synced 2024-12-06 19:27:12 +01:00
+19
-21
@@ -1,20 +1,18 @@
|
||||
**Dies ist eine inoffizielle Anleitung die durch die Community gepflegt wird**
|
||||
|
||||
Diese Anleitung wurde für FRITZ!OS 07.21 geschrieben, sollte jedoch auch mit anderen Firmware-Versionen funktionieren. Ziel ist es, grundlegende Prinzipien für ein reibungsloses Zusammenspiel zwischen Fritz!Box und Pihole zu verdeutlichen.
|
||||
Diese Anleitung wurde für FRITZ!OS 07.21 geschrieben, sollte jedoch auch mit anderen Firmware-Versionen funktionieren. Ziel ist es, grundlegende Prinzipien für ein reibungsloses Zusammenspiel zwischen Fritz!Box und Pi-hole zu verdeutlichen.
|
||||
|
||||
> Hinweis:
|
||||
Es gibt nicht nur **die eine Art**, eine funktionierende DNS System aufzusetzen. Konfiguriert euer Netzwerk nach euren Bedürfnissen.
|
||||
Diese Anleitung wurde für IPv4 geschrieben und muss für IPv6 Netwerke entsprechend angepasst werden.
|
||||
|
||||
## 1) Pihole als Upstream DNS Server der Fritz!Box (WAN Seite)
|
||||
## 1) Pi-hole als Upstream DNS Server der Fritz!Box (WAN Seite)
|
||||
|
||||
Mit dieser Konfiguration, wird Pihole für alle Geräte im Netzwerk, incl. der Fritz!Box genutzt. DNS Anfragen nehmen folgenden Weg
|
||||
Mit dieser Konfiguration, wird Pi-hole für alle Geräte im Netzwerk, incl. der Fritz!Box genutzt. DNS Anfragen nehmen folgenden Weg
|
||||
|
||||
```bash
|
||||
Client -> Fritz!Box -> Pihole -> Upstream DNS Server
|
||||
Client -> Fritz!Box -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
Zum Einstellen muss die IP des Pihole als "Bevorzugter DNS-Server" **und** "Alternativer DNS-Server" in
|
||||
Zum Einstellen muss die IP des Pi-hole als "Bevorzugter DNS-Server" **und** "Alternativer DNS-Server" in
|
||||
|
||||
```bash
|
||||
Internet/Zugangsdaten/DNS-Server
|
||||
@@ -22,28 +20,28 @@ Internet/Zugangsdaten/DNS-Server
|
||||
|
||||

|
||||
|
||||
eingertagen werden.
|
||||
eingetragen werden.
|
||||
|
||||
!!! warning
|
||||
Die Fritz!Box darf nicht als upstream DNS Server im Pihole eingestellt werden. Dies würde zu einem DNS Loop führen, da Pihole dann die Anfragen an dieFritz!Box senden würde, welche sie wiederum an Pihole senden würde.
|
||||
Die Fritz!Box darf nicht als upstream DNS Server im Pi-hole eingestellt werden. Dies würde zu einem DNS Loop führen, da Pi-hole dann die Anfragen an die Fritz!Box senden würde, welche sie wiederum an Pi-hole senden würde.
|
||||
|
||||
Mit dieser Konfiguration sind im Pihole Dashboard keine individuellen Clients sichtbar. Für Pihole scheinen alle Anfragen von der Fritz!Box zu kommen. Dadurch können nicht alle Funktionen von Pihole genutzt werden, z.B. die Möglichkeit, Clients individuell zu filtern (Group Management). Wenn dies gewünscht ist, muss die Konfiguration #2 verwendet werden.
|
||||
Mit dieser Konfiguration sind im Pi-hole Dashboard keine individuellen Clients sichtbar. Für Pi-hole scheinen alle Anfragen von der Fritz!Box zu kommen. Dadurch können nicht alle Funktionen von Pi-hole genutzt werden, z.B. die Möglichkeit, Clients individuell zu filtern (Group Management). Wenn dies gewünscht ist, muss die Konfiguration #2 verwendet werden.
|
||||
|
||||
|
||||
## 2) Pihole als DNS Server via DHCP an Clients verteilen (LAN Seite)
|
||||
## 2) Pi-hole als DNS Server via DHCP an Clients verteilen (LAN Seite)
|
||||
|
||||
Mit dieser Konfiguration wird allen Clients die IP des Pihole als DNS Server angeboten, wenn sie einen DHCP Lease vom der Fritz!Box anfordern.
|
||||
Mit dieser Konfiguration wird allen Clients die IP des Pi-hole als DNS Server angeboten, wenn sie einen DHCP Lease vom der Fritz!Box anfordern.
|
||||
DNS Anfragen nehmen folgenden Weg
|
||||
|
||||
```bash
|
||||
Client -> Pihole -> Upstream DNS Server
|
||||
Client -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
> Hinweis:
|
||||
Die Fritz!Box selbst wird den unter Internet/Zugangsdaten/DNS-Server eingestellten DNS Server nutzen.
|
||||
Die Fritz!Box kann der Upstream Server von Pihole sein, solange Pihole nicht der Upstream Server der Fritz!Box ist. Dies würde zu einem DNS Loop führen.
|
||||
Die Fritz!Box kann der Upstream Server von Pi-hole sein, solange Pi-hole nicht der Upstream Server der Fritz!Box ist. Dies würde zu einem DNS Loop führen.
|
||||
|
||||
Um diese Konfiguration zu nutzen, muss die IP des Pihole als "Lokaler DNS-Server" in
|
||||
Um diese Konfiguration zu nutzen, muss die IP des Pi-hole als "Lokaler DNS-Server" in
|
||||
|
||||
```bash
|
||||
Heimnetz/Netzwerk/Netzwerkeinstellungen/IP-Adressen/IPv4-Konfiguration/Heimnetz
|
||||
@@ -56,20 +54,20 @@ eingetragen werden.
|
||||
>Hinweis:
|
||||
Clients bemerken Änderungen an den DHCP Einstellungen erst, wenn der DHCP Lease erneuert wird. Der einfachste Weg dies zu erzwingen ist ein Unterbrechen und Wiederherstellen der Netzwerkverbindung.
|
||||
|
||||
Nun sollen einzelne Clients in Piholes Dashboard auftrauchen.
|
||||
Nun sollen einzelne Clients in Pi-hole Dashboard auftrauchen.
|
||||
|
||||
## 3) Kombination aus 1) und 2)
|
||||
|
||||
Durch die Kombination von 1) und 2) senden alle Clients und die Fritz!Box selbst DNS Anfragen direkt an Pihole.
|
||||
Durch die Kombination von 1) und 2) senden alle Clients und die Fritz!Box selbst DNS Anfragen direkt an Pi-hole.
|
||||
|
||||
```bash
|
||||
Client (incl. Fritz!Box) -> Pihole -> Upstream DNS Server
|
||||
Client (incl. Fritz!Box) -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
!!! warning
|
||||
Die Fritz!Box darf nicht als Upstream DNS Server des Pihole gesetzt werden. Dies würde zu einem DNS Loop führen, da Pihole die Anfragen an die Fritz!Box senden würde, welche sie wiederum an Pihole weitergeben würde.
|
||||
Die Fritz!Box darf nicht als Upstream DNS Server des Pi-hole gesetzt werden. Dies würde zu einem DNS Loop führen, da Pi-hole die Anfragen an die Fritz!Box senden würde, welche sie wiederum an Pi-hole weitergeben würde.
|
||||
|
||||
## Pihole im Gastnetzwerk nutzen
|
||||
## Pi-hole im Gastnetzwerk nutzen
|
||||
|
||||
Es gibt in der Fritz!Box keine Möglichkeit unter
|
||||
|
||||
@@ -79,4 +77,4 @@ Heimnetz/Netzwerk/Netzwerkeinstellungen/IP-Adressen/IPv4-Konfiguration/Gastnetz
|
||||
|
||||
den DNS Server des Gastnetzwerks einzustellen.
|
||||
|
||||
Die Fritz!Box wird immer ihre eigene IP als DNS Server des Gastnetzes einstellen. Um die DNS Anfragen dennoch über den Pihole zu senden, muss der als Upstream DNS für die Fritz!Box (siehe #1) eingetragen werden. Da es keine andere Option gibt, werden alle Anfragen aus dem Gastnetz für Pihole so erscheinen, als ob sie direkt von der Fritz!Box kommen. Eine individuelle Filterung je nach Client innerhalb des Gastnetzwerks ist deshalb nicht möglich.
|
||||
Die Fritz!Box wird immer ihre eigene IP als DNS Server des Gastnetzes einstellen. Um die DNS Anfragen dennoch über den Pi-hole zu senden, muss der als Upstream DNS für die Fritz!Box (siehe #1) eingetragen werden. Da es keine andere Option gibt, werden alle Anfragen aus dem Gastnetz für Pi-hole so erscheinen, als ob sie direkt von der Fritz!Box kommen. Eine individuelle Filterung je nach Client innerhalb des Gastnetzwerks ist deshalb nicht möglich.
|
||||
|
||||
+19
-21
@@ -1,20 +1,18 @@
|
||||
**This is an unsupported configuration created by the community**
|
||||
|
||||
This guide was developed using FRITZ!OS 07.21 but should work for others too. It aims to line out a few basic prinicples to have a seemless DNS experience with Pihole and Fritz!Boxes .
|
||||
This guide was developed using FRITZ!OS 07.21 but should work for others too. It aims to line out a few basic principles to have a seamless DNS experience with Pi-hole and Fritz!Boxes .
|
||||
|
||||
> Note:
|
||||
There is no single way to do it right. Choose the one best fitting your needs.
|
||||
This guide is IPv4 only. You need to adjust for IPv6 accordingly
|
||||
|
||||
## 1) Using Pihole as upstream DNS server for your Fritz!Box
|
||||
## 1) Using Pi-hole as upstream DNS server for your Fritz!Box
|
||||
|
||||
Using this configuration, Pihole is used for all devices within your network including the Fritz!Box itself. DNS requests are send in this order
|
||||
Using this configuration, Pi-hole is used for all devices within your network including the Fritz!Box itself. DNS requests are sent in this order
|
||||
|
||||
```bash
|
||||
Client -> Fritz!Box -> Pihole -> Upstream DNS Server
|
||||
Client -> Fritz!Box -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
To set it up, enter Pihole's IP as "Preferred DNS server" **and** "Alternative DNS server" in
|
||||
To set it up, enter Pi-hole's IP as "Preferred DNS server" **and** "Alternative DNS server" in
|
||||
|
||||
```bash
|
||||
Internet/Account Information/DNS server
|
||||
@@ -23,25 +21,25 @@ Internet/Account Information/DNS server
|
||||

|
||||
|
||||
!!! warning
|
||||
Don't set the Fitz!Box as upstrem DNS server for pihole! This will lead to a DNS loop as the Pihole will send the queries to the Fritz!Box which in turn will send the to Pihole.
|
||||
Don't set the Fitz!Box as upstrem DNS server for Pi-hole! This will lead to a DNS loop as the Pi-hole will send the queries to the Fritz!Box which in turn will send the to Pi-hole.
|
||||
|
||||
With this configuration, you won't see individual clients in pihole's dashboard. For pihole, all queries will appear as if they are comming from your Fritz!Box. You will therefore miss out some features, e.g. Group Management. This can be solved using method #2.
|
||||
With this configuration, you won't see individual clients in Pi-hole's dashboard. For Pi-hole, all queries will appear as if they are coming from your Fritz!Box. You will therefore miss out on some features, e.g. Group Management. This can be solved using method #2.
|
||||
|
||||
|
||||
## 2) Distribute Pihole as DNS server via DHCP
|
||||
## 2) Distribute Pi-hole as DNS server via DHCP
|
||||
|
||||
Using this configuration, all clients will get Pihole's IP offered as DNS server when they request a DHCP lease from your Fritz!Box.
|
||||
DNS requests are send in this order
|
||||
Using this configuration, all clients will get Pi-hole's IP offered as DNS server when they request a DHCP lease from your Fritz!Box.
|
||||
DNS requests are sent in this order
|
||||
|
||||
```bash
|
||||
Client -> Pihole -> Upstream DNS Server
|
||||
Client -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
> Note:
|
||||
The Fritz!Box itself will use whatever is configured in Internet/Account Information/DNS server.
|
||||
The Fritz!Box can be Pihole's upstream DNS server, as long Pihole itself is not the the upstream server for the Fritz!Box. This would cause a DNS loop.
|
||||
The Fritz!Box can be Pi-hole's upstream DNS server, as long Pi-hole itself is not the upstream server for the Fritz!Box. This would cause a DNS loop.
|
||||
|
||||
To set it up, enter Pihole's IP as "Local DNS server" in
|
||||
To set it up, enter Pi-hole's IP as "Local DNS server" in
|
||||
|
||||
```bash
|
||||
Home Network/Network/Network Settings/IP Adresses/IPv4 Configuration/Home Network
|
||||
@@ -52,20 +50,20 @@ Home Network/Network/Network Settings/IP Adresses/IPv4 Configuration/Home Networ
|
||||
>Note:
|
||||
Clients will notice changes in DHCP settings only after they acquire a new DHCP lease. The easiest way to force a renewal is to dis/reconnect the client from the network.
|
||||
|
||||
You should see individual clients in Pihole's web dashboard.
|
||||
You should see individual clients in Pi-hole's web dashboard.
|
||||
|
||||
## 3) Combining 1) and 2)
|
||||
|
||||
You can combine 1) and 2) which will let all clients send DNS requests to your Pihole **and** the Fritz!Box itself as well.
|
||||
You can combine 1) and 2) which will let all clients send DNS requests to your Pi-hole **and** the Fritz!Box itself as well.
|
||||
|
||||
```bash
|
||||
Client (incl. Fritz!Box) -> Pihole -> Upstream DNS Server
|
||||
Client (incl. Fritz!Box) -> Pi-hole -> Upstream DNS Server
|
||||
```
|
||||
|
||||
!!! warning
|
||||
Don't set the Fritz!Box as upstrem DNS server for pihole! This will lead to a DNS loop as the Pihole will send the queries to the Fritz!Box which in turn will send the to Pihole
|
||||
Don't set the Fritz!Box as upstrem DNS server for Pi-hole! This will lead to a DNS loop as the Pi-hole will send the queries to the Fritz!Box which in turn will send the to Pi-hole
|
||||
|
||||
## Using Pihole within the Guest Network
|
||||
## Using Pi-hole within the Guest Network
|
||||
|
||||
You may have noticed, that there is no option to set the DNS server for the guest network in
|
||||
|
||||
@@ -73,4 +71,4 @@ You may have noticed, that there is no option to set the DNS server for the gues
|
||||
Home Network/Network/Network Settings/IP Adresses/IPv4 Configuration/Guest Network
|
||||
```
|
||||
|
||||
The Fritz!Box always set its own IP as DNS server for the guest network. To filter its traffic, you have to setup Pihole as upstream DNS server for your Fritz!Box (see #1). As there is no other option, all DNS requests from your guest network will appear as coming from your Fritz!Box.
|
||||
The Fritz!Box always sets its own IP as DNS server for the guest network. To filter its traffic, you have to setup Pi-hole as upstream DNS server for your Fritz!Box (see #1). As there is no other option, all DNS requests from your guest network will appear as coming from your Fritz!Box.
|
||||
|
||||
Reference in New Issue
Block a user