Bridge for Jail and Problems

Hey guys, I’m not fully used to the UI and stuff of the new Forum but here we go.

Since the little comment I made on another Topic didn’t get much traction I’ll post this with more info here again.

So I want to host Pihole and a DHCP Server inside my docker jail that I created with the Stux Tutorial, but since I couldn’t create a Bridge I just went with the macvlan. Well I later learned that that means my Host aka Truenas won’t be able to communicate with the Jail. Luckily I still had my Truecharts Pihole running so that was still fine.

Since I wanted to Host a DHCP Server in the Docker Jail too I needed to figure out how to setup a Bridge interface. Well luckily there’s another Stux Tutorial that I followed. That’s where the Problems started…

I was getting an Error when creating the Bridge Interface because I didn’t unset my Pool for my Apps. (for some reason turning them off isn’t enough)
So then I unset the Pool for my Apps, then… Lights out
Couldn’t connect to TrueNas on the new Static IP not on the old DHCP IP… nothing. I tried waiting for a while, but nothing. So I called it a day.

Next day I hooked up a VGA Monitor and a Keyboard to my TrueNAS Server aaaand it showed nothing (Black screen). So I rebooted the NAS to make sure it works and yeah I saw TrueNas booting up, but then it went back to the Black screen again.

So I randomly checked the new static IP again and it worked again. (for some unknown reason)
I tried the Tutorial again but I couldn’t get it working.

Does anyone have an Idea on what’s happening and why?
Any guidance for a working Bridge interface?

And just to make sure: I want my TrueNas physical Interface and my Bridge connected Clients to use DHCP. → I do not want to set a static IP for any of them.

Appreciate any Help
Cornflake6441

@Stux

1 Like

do you happen to have some information for me?
It looks like this post won’t get any interactions either…

I have little knowledge of SCALE and almost zero knowledge of docker, truecharts, and SCALE’s jail.

Historically we have discouraged the use of TN systems as DHCP servers, but from your post the issue doesn’t seem to be simply a network interface misconfiguration. My first objective would be to access TN CLI via VGA/IPMI, then likely resetting the network interface from there.

I’m assuming that’s something to do with a resolution incompatibility or something.

So. Right now you can connect to your TrueNAS?

What does the network tab show?

Running DHCP in a jail is pretty strange. Normally would be done on your router. But can probably work.

PiHole requires disabling the built in dns service on the jail as it will conflict. There are lots of posts describing how to fix this issue.

FWIW, you may want to consider running pfSense or OpnSense in a VM instead…

I do this and pass through two Ethernet ports for LAN/WAN.

thanks for the reply
yes I can connect to TrueNas right now. I changed everything back to DHCP since my backup services rely on the DHCP IP.

yeah the Problem is my Router is the ISP Router and it can’t tell my Clients which DNS to use over DHCP. (I know it sucks)

Pihole in the Jail works fine, but it’s just a bit weird when I have to find another way just for this one client bc I can’t get a bridge running.

Sounds good but it would probably introduce it’s own Problems since I only have two RJ45 Ports to use and I’ve read countless comments on r/homelab etc. saying that a Router should always be bare metal in a home user env.