Pi-hole HA and LXC

Hi all,
This is probably off Turris topic , but maybe someone can help me out.
I’m using a Pi-hole in an LXC container on Turris ( and VIP But I would like to start using second Pi-hole server ( in HA (High Availability) & in-sync. For this I found great manual gravity-sync . This sync is working great for me.
Second Pi-hole is running on mi RaspberryPi 4 ( also in LXC container.
But here starting my problems.
To keep LXC container in same IP range like my home network I used followed manual for configuration of LXC container: LXC containers on host’s lan
There is no issue with main Pi-hole server running on Turris.
After failover I’m able open pihole GUI on second server true IP but not via VIP and name resolving of web pages is not working (VIP is used like DNS IP).
I’m not so familiar with networking but I expecting that issue is between RaspberryPi and LXC container (traffic is not forwarding correctly, some ports are not opened,…).
Network configuration of RaspberryPi server:

root@raspberrypi:~# arp -a
? ( at 00:26:5e:11:c1:83 [ether] on veth0
? ( at 04:f0:21:c3:23:c5 [ether] on eth0
? ( at 00:26:5e:11:c1:83 [ether] on veth0
? ( at 32:65:a3:7a:91:ec [ether] on eth0
? ( at 32:65:a3:7a:91:ec [ether] on eth0
? ( at <from_interface> PERM PUB on eth0

root@raspberrypi:~# ip route
default via dev eth0 proto static metric 100 dev eth0 proto kernel scope link src metric 100 dev veth0 scope link

LXC network config:

root@Pihole2:~# arp -a
? ( at fe:30:e3:9b:d5:d0 [ether] on eth0
? ( at on eth0

root@Pihole2:~# ip route
default via dev eth0 dev eth0 scope link

A possible simple question is how to set up LXC container in Raspberry Pi to use like second Pi-hole server?

This topic was automatically closed after 60 days. New replies are no longer allowed.