Hi zusammen,
ich hab Docker Piholev6 (6.2.2) am laufen und auch bei der Fritzbox IPv6 eingestellt wie hier beschrieben mit ULA Präfix:
Laufen tut das auch soweit, jetzt hab ich aber eine Frage. Im Pihole Webinterface wird unter Settings→ System bei Primary IP addresses angezeigt:
IPv4:
172.x.x.x @ eth0
IPv6:
fe80::x:x:x:x
fe80:x:x:x::x @ eth0
Wieso werden bei IPv6 2 Adressen angezeigt ?
Die untere ist die korrekte vergebene vom Docker Compose Script für das Netzwerk, die obere ist mir unbekannt.
Eine 2te Frage wäre das im Docker jeder Container eine IPv6 Adresse hat die einzeln beim Pihole DNS Abfragen starten. Das Netzwerk im Docker läuft im Bridged Mode. Das heißt ich habe DNS Anfragen von den Containern z.b. EPG für TV und zusätzlich die Anfragen von den Clients außerhalb des Docker die dann auch IPV4 Adressen haben.
Ist das so korrekt ?
Hi,
meins ist leider immer noch nicht gelöst bzw. unklar. Hat irgendjemand ein funktionierendes Docker IPV6 Compose ?
Docker und IPv6 sind nicht kompatibel. Seit über sieben Jahren gibt es bei Moby offene Probleme mit der mangelhaften IPv6-Unterstützung von Docker, und das Unternehmen zeigt kein Interesse an einer Verbesserung.
(Translated from English, hopefully translated correctly.)
Hmm das ist schade, dann heißt es wohl doch wieder Pihole nativ installieren ohne Docker.
Docker hat halt den Vorteil das es so einfach zu sichern ist und auf einem neuen System 1:1 wiederhergestellt werden kann ohne viel zu konfigurieren.
Ich hab aktuell ein compose Script das läuft mit IPV6 aber ob es richtig läuft weiß ich nicht:
version: "3.0"
name: "pihole"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
hostname: pihole
depends_on:
- unbound
ports:
# DNS Ports
- "53:53/tcp"
- "53:53/udp"
# Default HTTP Port
- "80:80/tcp"
# Default HTTPs Port. FTL will generate a self-signed certificate
- "443:443/tcp"
# Uncomment the below if using Pi-hole as your DHCP Server
#- "67:67/udp"
# Uncomment the line below if you are using Pi-hole as your NTP server
#- "123:123/udp"
environment:
# Set the appropriate timezone for your location from
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones, e.g:
TZ: "Europe/Berlin"
FTLCONF_webserver_api_password: "pihole" # Set a password to access the web interface. Not setting one will result in a random password being assigned
FTLCONF_dns_listeningMode: "all" # If using Docker's default `bridge` network setting the dns listening mode should be set to 'all'
FTLCONF_misc_etc_dnsmasq_d: "true"
FTLCONF_dns_upstreams: unbound
volumes: # Volumes store your data between container upgrades
- /home/pihole:/etc/pihole # For persisting Pi-hole's databases and common configuration file
#- /etc/dnsmasq.d:/etc/dnsmasq.d # Uncomment the below if you have custom dnsmasq config files that you want to persist. Not needed for most starting fresh with Pi-hole v6. If you're upgrading from v5 you and have used this directory before, you should keep it enabled for the first v6 container start to allow for a complete migration. It can be removed afterwards. Needs environment variable FTLCONF_misc_etc_dnsmasq_d: 'true'
- /home/pihole/logs:/var/log/pihole #Log Files
cap_add:
# See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
#- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
- SYS_TIME # Required if you are using Pi-hole as your NTP client to be able to set the host's system time
- SYS_NICE # Optional, if Pi-hole should get some more processing time
logging:
driver: none
restart: unless-stopped
networks:
dns_net:
ipv4_address: 17x.x.x.2
unbound:
image: klutchell/unbound:main
container_name: unbound
hostname: unbound
environment:
- UID=1000 #Replace with your UID
- GID=1000 #Replace with your GID
- TZ=Europe/Berlin
- ServerIP=17x.x.x.3
ports:
- "53/tcp"
- "53/udp"
volumes:
- /home/unbound:/etc/unbound/custom.conf.d
- /home/unbound/root.hints:/etc/unbound/root.hints
- /home/unbound/root.key:/etc/unbound/root.key
cap_add:
- NET_ADMIN
logging:
driver: none
restart: unless-stopped
networks:
dns_net:
ipv4_address: 17x.x.x.3
networks:
dns_net:
driver: bridge
enable_ipv4: true
enable_ipv6: true
ipam:
config:
- subnet: 17x.x.x.0/16
gateway: 17x.x.x.1