I followed this excellent guide from danb35 from his familybrown wiki (cannot post links here).
There is only one part that had me going crazy: I am running an AdGuard instance where I wanted to use DNS Rewrites, so that the URL for an app resolves to the internal network IP of my TrueNAS (using Electric Eel latest non-nightly version). However, the nslookup for the URL on the client gave me an error: non-existent domain. After some trying out of different things, it seemed to me that AdGuard running as an app in TrueNAS with NGINX Proxy Manager both having the same IP didn’t work.
So I installed AdGuard in a VM running HomeAssistant and voilà the DNS rewrite works. But it still annoys me that I don’t know why I can’t just use the app within TrueNAS? Why isn’t the DNS Rewrite working? My client used the TrueNAS IP as DNS server…
heh - I was just searching for solutions to the exact same issue. I started moving the adguard instance to another system but realized that it too would have collisions on that ip that I don’t want to work around. My TrueNAS has multiple ethernet ports so I’m going to connect another one tomorrow to have a second IP. That should make this a breeze - but it is an unexpected annoyance.
FYI - I was being dumb… I ended up resolving this in a completely different manner than what’s relevant to this thread, but for the ip collision issue you should a) Not use two physical connections on the same subnet… its sketchy and doesn’t always work as expected. b) Just add an IP alias to the existing connection. See TrueNAS SCALE doc: truenas(dot)com/docs/scale/23.10/scaletutorials/network/interfaces/settingupstaticips/#one-static-ip-address-or-multiple-aliases
Unfortunately, this doesn’t help me in my case. I would like to assign its own IP to the container but have no clue how to do so and if it would help in my case.