I am running both Bitwarden and Pi-hole in separate docker containers on my Synology nas. Pi-hole runs fine but when it is running, I cannot access Bitwarden when connected to my local network. If Pi-hole is running, I can only access Bitwarden when not connected to my local network (i.e. cellular network). When I stop the Pi-hole container, I am able to connect to Bitwarden again on my local network. This leads me to believe it is some setting in Pi-hole I have configured wrong or one I need to configure to access Bitwarden. Any help would be great. Am I missing something easy?
*After some further trouble shooting, I figured out that it is not just Pi-hole running that causes the issue. I configured a macvlan network for Pi-hole to use, that is where the issue begins. If I stop the container and delete the ph_network, then I am able to connect to Bitwarden again. The command I used to make the macvlan network is listed below.
sudo docker network create -d macvlan -o parent=eth1 --subnet=10.0.0.0/24 --gateway=10.0.0.1 --ip-range=10.0.0.198/32 ph_network
Debug token url: https://tricorder.pi-hole.net/OeRt4bkd/
Below is my compose.yaml file setup.
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
- "80:80/tcp"
networks:
- ph_network
- ph_bridge
environment:
TZ: 'America/Dallas'
WEBPASSWORD: '-Password-'
DNSMASQ_LISTENING: local
en container upgrades
volumes:
- '/volume1/docker/pihole/pihole:/etc/pihole'
- '/volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d'
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
networks:
ph_bridge:
driver: bridge
ipam:
config:
- subnet: 192.168.10.0/24
gateway: 192.168.10.1
ip_range: 192.168.10.2/32
ph_network:
name: ph_network
external: true