this post was submitted on 17 Jun 2023
8 points (100.0% liked)

Selfhosted

39980 readers
452 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hey! I know this is maybe better suited for a VMWare group, but I can't find one with the whole Reddit fiasco. So I'm hoping someone can point me in the right direction or give a bit of advice.

I have VMWare Workstation 16 currently using NAT. This has been working well for a while, as whenever I need to open a port, I just manually do it one by one. But as I've been hosting game servers it's becoming a bit tedious to do one by one and there's not an option to open ports by ranges using NAT.

I read that Bridged is what is recommended for my use case. And I've tried this but can never get it to work. I've tried deselecting all but the main NIC too.

I rent a dedicated server, I only have access to one IP with the option to purchase a secondary IP. I'm guessing it's because of this I can't get Bridge to work, because I don't have access to DHCP.

Is my only option to purchase a secondary IP, create a VM for PfSense and have that manage the DHCP? (That's even if I'm understanding this correctly)

Or would installing something like EXSi achieve what I'm trying to do?

Many thanks in advance!

top 3 comments
sorted by: hot top controversial new old
[–] SocialDoki@lemmy.blahaj.zone 2 points 1 year ago (1 children)

Are all your VMs on the same subnet under the NAT? If so, you should be able to set up a reverse proxy and having ir route traffic on certain port(s) to your specific servers without needing a second ip. That, of course depends on the policies of your host.

[–] Opuake@lemmy.world 1 points 1 year ago

Hey! Thanks for your reply!

Yeah, they are. I do use Nginx Proxy Manager to access some websites that way. I don't see how I can do that with a range of ports with NPM without adding them one by one. Maybe that's a NPM limitation? Or I'm not quite sure how.

I was kind of hoping that for example on the VM opens ports 8000-9000. And all I needed to do was on my Windows Server (Hosts the VM) allow ports 8000-9000 and it would all just work haha

But because it's on NAT I have to use the Virtual Network Editor and add ports one by one.

[–] rs5th@lemmy.scottlabs.io 2 points 1 year ago

ESXi is a full OS, not sure if you have the option of swapping out the OS on your server. I’m also not sure it will help in this case.

You are very constrained in what you can do by your networking situation. I think your fundamental problem is that you have a single IP that has to be both the management IP of the server, and also handle all the VM network traffic.

The ideal topology for this would be firewall using the public IP for it’s WAN interface, then your VM host and VMs all on its LAN interface (using DHCP or not). With another IP address, you could run a firewall as a VM.

Any way you slice it, I think you’re either an IP or a networking device short.