I just remarked that i cannot create a new network witth IPv6 addresses in the OMV GUI using the compose plugin because the respective fields are missing. There are only fields for IPv4.
I will now create it with Portainer that has these fields.
I just remarked that i cannot create a new network witth IPv6 addresses in the OMV GUI using the compose plugin because the respective fields are missing. There are only fields for IPv4.
I will now create it with Portainer that has these fields.
The Compose plugin in OMV GUI currently lacks IPv6 fields for network creation for IPv6, check using Portainer, which provides the necessary fields.
The Compose plugin in OMV GUI currently lacks IPv6 fields for network creation for IPv6, check using Portainer, which provides the necessary fields.
ChatGPT? Bot?
You can create it with docker-compose at the same time as a stack
Yes that should work!
I am adding to this thread because i can confirm now that this works.
I managed to get my pihole up and running for IPv4 and IPv6.
Here is the compose file i used to get this working, if anyone wonders:
version: "3.6"
services:
pihole:
container_name: "pihole"
networks:
pihole2: # same as network specified below
ipv4_address: 192.168.1.222 # the IP of the pihole container
ipv6_address: fd00::2222:2222
dns:
- "127.0.0.1"
- "192.168.1.1" # router
- "fd00::2e91:abff:fe9e:798e" # router
environment:
- "TZ=Europe/Berlin"
- "WEBPASSWORD=xxx"
- "IPv6=True"
- "FTLCONF_LOCAL_IPV4=192.168.1.222" # the IP of the pihole container
- "FTLCONF_LOCAL_IPV6=fd00::2222:2222"
hostname: "pihole_docker"
image: "pihole/pihole:latest"
ports:
- "443:443/tcp"
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
restart: "always"
volumes:
- "/srv/dev-disk-by-label-SSD_Data/appdata/piholeDocker:/etc/pihole" # pihole persistent config
- "/srv/dev-disk-by-label-SSD_Data/appdata/piholeDocker/dnsmasq.d:/etc/dnsmasq.d"
- "/etc/localtime:/etc/localtime"
networks:
pihole2:
name: pihole2
enable_ipv6: true
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.1.0/24
ip_range: 192.168.1.0/24
gateway: 192.168.1.1 # router
- subnet: fd00::/64
gateway: fd00::2e91:abff:fe9e:798e # router
Alles anzeigen
I managed to get my pihole up and running for IPv4 and IPv6.
And this is exactly why I like compose so much. You can add the features you need without adding a million features to the plugin.
Actually no i dont want to assign adresses manually. In the case of pihole though i have done it like this.
I dont necessarily need it to be honest. But i did an excercise and switched my network to be IPv4 and IPV6 capable.
Then i switched my ISP connection to "IPv6 native" mode and wanted to make sure that every IPv6 DNS query can also be processed by pihole.
I did it also out of curiosity.
Here is a bit of the story how i got there: RE: New ISP with IPv6 internet reachable only
Thanks to @monsen's compose file, I got Pihole working in Docker. However, whenever I try to add an adlist, I receive an error "While executing: attempt to write a readonly database." I can fix this error by running: docker exec pihole chown -R www-data:pihole /etc/pihole. After running that command, I can add adlists. However, I cannot get these changes to persist. If I restart the container or if I reboot the system, I'm back to the readonly error and I have to run docker exec pihole chown -R www-data:pihole /etc/pihole again. Has anyone figured out how to fix this permanently?
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!