Need help getting VM networking to work (Docker ports)

Reaperberri

Cadet
Joined
Oct 7, 2022
Messages
2
Hi everyone. I installed TrueNAS Scale on my machine, and set up an Ubuntu VM.
I followed the guide in the docs to get access to the NAS from the VM by settings up a bridge interface, and everything works fine. I can access the NFS shares without a problem.
The issue is, I can't access any Docker containers that I expose with ports when I'm using this bridge interface.

My setup is:
TrueNAS
enp4s0: DHCP off, no IP
br0: DHCP off, IP is 192.168.1.186/24

Global configuration
Default gateway: 192.168.1.1
Nameservers: 1.1.1.1 1.0.0.1

VM
Connected to br0, has static ip 192.168.1.100
/etc/network/interfaces:
Code:
iface ens3 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 1.1.1.1 1.0.0.1


I can ping between TrueNAS and the VM, and I can ssh into the VM from my PC on the network.
I just can't access anything in the browser (as simple as an nginx container, that worked without the bridge interface)

What am I doing wrong?
Thanks!
 

Reaperberri

Cadet
Joined
Oct 7, 2022
Messages
2
For anyone who might be seeing this post after Googling (or DuckDuckGoing it), I think the issue was that the VM IP (.100) was before the TrueNAS (.186) IP.
After changing TrueNAS to 192.168.1.80 and restarting everything, it's working as intended.
 

inman.turbo

Contributor
Joined
Aug 27, 2019
Messages
149
It was probably just the restart itself that fixed it. Scale networking seems to get messed up in strange and mysterious ways between changes, pending a reboot.
 
Top