i finally masde the move from core to scale with a fresh install and trying to figure out the new apps on 24.10.1
the fact that it doesn’t use dedicated IP for each apps is very upsetting for ease of use in my setup. from autofilling password to port not being open on the main IP of the host mean i can’t adopt anything.
how to i force truenas apps to use dedicated IP like it was in CORE?
You can either handle this with custom apps manually using macvlan to create IP aliases, or you wait for Fangtooth 25.04 expected in late April that will implement GUI support for this.
…but the real answer is to change the question. You don’t (with rare exceptions) need distinct IPs for each app; you need to put them behind a reverse proxy and access them by name. And as a bonus, you don’t need to mess with (or remember) weird ports either.
I’ve used this setup (Caddy) for quite a while, but I will say that there is a slight caveat to doing it this way though. That is, if the reverse proxy is down (eg. for maintenance or maybe some other catastrophe), You would then be forced to remember the IP/port combination to access them.
@neofusion thanks for proposiing a solution to me. could to point me a useful ressource i can access to get me familiar on how to implement macvlan for my dockers. i don’t seems to find something that is close enough to my usecase.
my TrueNAS server is on the same subnet with default Vlan 1 as my PC and the docker apps should be also on the same subnet and vlan as truenas. i’d like to keep the same ip as before with jails as a won’t have to resetup all portforwarding and shortcut i had before.
@dan i don’t see remembering a port as a bonus as autofill is good enough with every ip plus i actually just use bookmark so i don’t mind the port. on the otherhand having no dedicated ip make it more difficult to make any apps interact with the outside… unifi controller is not adopting either local or remote AP, plex seems to be double NAT and can’t turn on remote access. and i’m just starting, it’s the first 2 and 0/2 are working properly. so it’s a bad start. And i’m im the mindset of make it simpler rather than more complex. i’d rather set proper ip from the start than having to mess around looking why a new app is not functionning and trying to figure out if it’s that new layer of complexity that breaks things or not.
Respectfully, I think you may be falling into the XY Problem. as @dan said, the usage ends up being far simpler if each service is just open on one port of the host IP. You can get around the password manager issue by using a reverse proxy.
Your proposed setup sounds far more complex than the standard setup, where your server has a single host IP, with specific ports for each application, and you can have a reverse proxy forward requests to those ports. You may have to re-do your port forwards as you said, but the end setup is much simpler this way, although it may not be the exact way you are used to.
Here is an example, showing my setup (this is in Nginx Proxy Manager, but any other reverse proxy would work):
…or even by telling your password manager to pay attention to the port.
I can’t say why this is, but it isn’t anything to do with Plex not having its own internal IP address.
…but what you’re requesting makes things more complex.
Again, it’s not that this is necessarily a bad thing, and it looks like it’s Coming Soon™. But in the large majority of cases where it’s being requested, it just isn’t needed; there’s a better way to handle it.
Native for now, but I might run the YAML if simpler In the long run. I haven’t take that problem yet as I got unexpected stuff needing my attention in the last week
I’m interesting in running native to TrueNAS, while I have used portainer and dockge on a pure Ubuntu install, I’d like to keep my TrueNAS reliable :).
Thanks. I’ll look into it or because I might want to use TSDProxy I might have to roll a custom. I have not decided yet.
Couple questions for your nginx proxy setup. Are you directing native 80 on your TrueNAS to the proxy and then directing from there to the other ports? Are you only advertising your TrueNAS UI on 443?
I am starting to setup the nginx and was thinkg since it will want a high port I can just redirct the UI 80_> nginx port and go from there.
Hi, I am also wondering how can I make the native Docker apps use a specific IP. Given that I have a public DNS/DHCP record set up for the service and my server has two network ports, one is my organization’s private, one is the public network. I want the Docker app to use the public network (ideally: specifiy the IP address to use), and not bind to the default (private) network/interface. It does not seem to help if I setup the according public address pool in the Configuration->Settings screen. Do I have to use custom App or something like Portainer to handle this task? I am confused . Thank you.