Best way of redirecting certain ports to a VM?

senno

New Member
Nov 24, 2011
4
0
1
Hi,

I have a server on OVH with Proxmox installed. So far, I've set up three OpenVZ containers that are accessed through three fail-over IPs. All of them are working perfectly.

Now I've created another VM (using KVM) and installed Windows Server 2008 R2. There are a couple of applications running in that server and I'd like to be able to access them from the internet.

Ideally, I'd like to use one of the IPs I already have (either the primary or any of the fail-over ones) redirecting just the two ports I need, but I haven't found how to do this the best way. I suppose one option is creating an VLAN, but I was thinking surely there must be a more elegant way to do this.

One way or the other, I have absolutely no clue how to set up this and I haven't found any guides or how-tos that explain it.

Any ideas?

Thanks!
 
Which router are you using? surely a simple port redirection would work?

Well, I solved this adding an ethernet interface using NAT and using hostfwd_add from the qemu monitor. I'm pretty sure this is not ideal and probably not permanent, but none of the other methods using bridged interfaces and iptables were working for me.
 
I have always approached vm machines on proxmox by using a bridged interface, then configuring the machines eth0 port.

Doing this makes the system much closer to a real machine for day to day networking and configuration. The port forwarding then can just be dealt with on the router!


Sent from my iPhone using Tapatalk
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!