Cannot reach docker container over macvlan


fratrue

Recommended Posts

Hi!

 

I have set up a Pi-hole docker with a macvlan custom network. The ultimate goal is to reach the Pi-hole instance both from my local LAN and from Wireguard clients connected to the unRAID server.

 

Network details:

unRAID IP: 192.168.0.3

Pi-hole IP: 192.168.0.129

Gateway: 192.168.0.1

 

The issue is that, while macvlan appears to work and I can reach the Pi-hole instance from my LAN, I can't access it from unRAID or any Wireguard clients connected to it.

 

root@unRAID:/mnt# ping 192.168.0.129
PING 192.168.0.129 (192.168.0.129) 56(84) bytes of data.
From 192.168.0.3 icmp_seq=1 Destination Host Unreachable
From 192.168.0.3 icmp_seq=2 Destination Host Unreachable
From 192.168.0.3 icmp_seq=3 Destination Host Unreachable

 

I have enabled Host access to custom networks under Docker settings and even turned it on and off a few times but no differences.

 

Thanks!

Link to comment

Looks like this was due to Host access to custom networks not working immediately with user-defined custom networks. I had to enable a "br0" custom network in the GUI and then the server started to reach the containers with custom IP.

 

l0Ts4De.png

 

However, now I have the issue that Wireguard clients can no longer reach LAN IPs. I have set NAT to Off and added the requested static route in my router but unfortunately if doesn't work.

 

jAMNIvl.png

 

Any tips? Is this kind of setup supposed to work?

 

Thanks!

Edited by fratrue
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.