[SCALE] Can i use one IP-Adress to access multiple VM's?

Broump

Cadet
Joined
Apr 19, 2023
Messages
1
Hey everyone,

I'm relative new to TrueNAS and VM's.

I got my windows VM running and it also get an internet connection using the virtIO NIC.
My Server is located in a university where we don't have unlimited IP-Adresses. Since i want to have more VM's running than I have IP-Adresses I ran into a big Problem since i want to use RDP to use the VM's remotly. My idea was to have one main IP-Adress which routes to multiple internal IP-Adresses using Ports, like a virtual switch.

I don’t if this is even possible, but it was my first tought.

I hope that you can help my or give my a different solution for my problem.

Greeting,

Daniel :)
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I'm relative new to TrueNAS and VM's.
You're going to need to be ready to get your hands dirty and learn a lot if you want to have what you mention needing here.

What you're asking for is "possible" on FreeBSD networking using a bridge (the virtual switch) and some advanced config to do NAT from the primary network with the "real" IP and the VMs on their "internal IP network" on the bridge.

Because TrueNAS isn't plain BSD, you can't just assume it will all work (or be configured ) the same way, but there's no reason you couldn't work it out to finally do what you want:

You may need tunables and/or init scripts to do/re-do work on each reboot to keep your config once you have something that works.
 
Top