Here is my setup. Client network: 10.0.0.0/24. Management network: 10.0.10.0/24.
TrueNAS has 2 interfaces that each connect to an individual network. The GUI is bound to the 10.0.10.5 IP. And SMB/NFS is bound to the 10.0.0.5 IP.
Scenario 1:
Device with IP 10.0.0.2 on the client network connects to SMB via 10.0.0.5. Connection work.
Scenario 2:
Device with IP 10.0.0.2 on the client network connects GUI via 10.0.10.5. Connection work.
Scenario 3:
Device with IP 10.0.10.10 from the management network connects GUI via 10.0.10.5. Connection work.
Scenario 4:
Device with IP 10.0.10.10 from the management network connects SMB via 10.0.0.5. Connection time out.
It seems that if a device is on the same network as any of the TrueNAS interfaces and tries to connect to a service that is on a different network on TrueNAS, the traffic will NOT return correctly. (The responding packets are sent out from the interface that is on the same network as the client device instead of the interface where the request comes in originally.)
I woiuld still need a lot more info.
Can you do a network diagram please
Will also need the gateways on the TN device AND the remote devices. Are you using the TN as the default gateway for all devices as it looks to me that the 10.0.10.10 does not have a route to 10.0.0.0/24 and probably has a gateway elsewhere
There is a little exercise you can follow to be able to post pictures here. Unfortunately I don’t know what it is. Maybe someone else who knows can post it so the OP can follow it and post a picture
Also, if I delete the client network interface on TN and unbind all services, SMB would work. This also can confirm the networking side outside of the TN is working properly.
That is correct behavior for the network stack. If the destination IP is on a network that is directly attached to the host then the traffic is routed out via that interface. Various anti-spoofing features will see the traffic as not coming in from the network it should and block it.
I am not sure if there is a simple fix for this behavior.