How to NAT a VM

answer35

Dabbler
Joined
Jan 26, 2022
Messages
28
Hey guys,
I am new at TrueNAS Core so I am still learning everything.
I think my question is pretty easy but, I made a VM on Debian, fixed network interface issue, installed docker and mount a NFS shared directory to access my NAS-Data folder from it. But my VM is using a new IP address and I would prefer if it can use the same as Host but I don't find where I can set that option.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
But my VM is using a new IP address and I would prefer if it can use the same as Host but I don't find where I can set that option.
You don't find it because it's not an option provided by the appliance.

You can possibly mess with a number of options, one of which would be to have a NAT jail running a reverse proxy like nginX, caddy or traefik and point that at the various services.

I don't personally use any NAT jails, so can't offer any real advice based on personal experience regarding the nuances of exposing ports properly in a NAT jail, but i think that's the easiest path to get what you're asking for.
 

answer35

Dabbler
Joined
Jan 26, 2022
Messages
28
Hmm okay thank you for the idea, I'll try something like this then, thanks.
 
Top