Same IP on multiple VM ?

rethus

Active Member
Feb 13, 2010
49
0
26
Is there a way to share IP on two VM?

For example, normal webserver should listen on domain.com. And Project-Tool (on own vm) should listen on subdomain.domain.com or domain.com:8080

On same VM this is not Porblem, only Vhost entry, but can i do this on two different VM's? Maybe mit veth
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
Good idea, i neever thought about private IP. Thanks for this hint.
 

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!