Expected Behaviour:
I want to setup conditional forwarding, in the little box below the option I put true,192.168.50.0/24,192.168.50.1
192.168.50.1 Is my router gateway
Its running on a synology nas, with a 4 core cpu and 8 gigs of ram (DS1525+)
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "8090:80/tcp"
networks:
# Use ph_network (MacVLAN) to give Pi-hole an external-facing IP on your LAN
ph_network:
ipv4_address: 192.168.50.198
# priority: 1000
# Use ph_bridge (internal) for fast, secure communication with Unbound
ph_bridge:
ipv4_address: 192.168.100.2
# priority: 900 # Priority is not a standard Docker Compose network option
environment:
TZ: 'Europe/Sofia'
WEBPASSWORD: '13527861'
DNSMASQ_LISTENING: local
# *** CRITICAL FIX: Use the internal ph_bridge IP for Unbound ***
PIHOLE_DNS_: '192.168.100.3#53'
volumes:
- '/volume1/docker/pihole/pihole:/etc/pihole'
- '/volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d'
cap_add:
- NET_ADMIN
restart: unless-stopped
depends_on:
- unbound # Ensure Unbound starts before Pi-hole
unbound:
container_name: unbound
image: "mvance/unbound:latest"
# *** CRITICAL FIX: REMOVE HOST PORTS! Unbound only needs to talk to Pi-hole internally. ***
# ports:
# - "53:53/tcp"
# - "53:53/udp"
networks:
# Connect Unbound only to the internal bridge network
ph_bridge:
ipv4_address: 192.168.100.3
volumes:
- '/volume1/docker/unbound:/opt/unbound/etc/unbound/'
restart: unless-stopped
networks:
ph_bridge:
driver: bridge
ipam:
config:
- subnet: 192.168.100.0/24
gateway: 192.168.100.1
ip_range: 192.168.100.2/24
ph_network:
name: ph_network
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.50.0/24
ip_range: 192.168.50.0/24
gateway: 192.168.50.1
Actual Behaviour:
Its just spamming pi hole with a BUNCH of queries, like 5k q/s of
one of them were:
6.97.163.132.in-addr.arpa