Use 1IP Public for all my VM in Proxmox

M14092007

New Member
Sep 2, 2021
12
1
3
17
Hello friends,
I have configured NAT Port for Proxmox and have access to Proxmox from another device using Public IP. But when creating the VM and then setting the control panel as web hosting on the VM the web cannot run. Every time I go to the web, it goes to Proxmox's login page. Looks like the network cannot enter the virtual machine. My home network only has exactly 1 Public IP for the whole server :( I don't know if it's the fault of the wrong network configuration?
I configure Cloud-init IPv4 as LAN IP
I don't know if there is a way to use 1 IP for the whole VPS but each VM runs a separate port? Like a web server, the VM runs on ports 443, 80,... The VPN server has port 54321,...
I thought about using hostname for each VM in Proxmox to be able to connect to the VM via Hostname without buying more static IP for the server but when accessing vm.1001gr.com it will show the login page of Proxmox. Does anyone have any documents? Or do I have to rent a static IP for each VM? The place where I rent a static IP is very expensive ~$7/1 static IP
I disabled VM Firewall
Thanks everyone1646480715685.png1646480743720.png1646480673680.png
 
If you want to run multiple websites using ports 80 and/or 443 behind a single IP you will need a reverse proxy server like nginx to route incoming traffic to the correct VM

On the other hand, if your vm's and applications can use different ports then you can redirect incoming traffic based on the port, using either iptables on the host or by using a VM like pfsense which might be easier to use if you are not too familiar with networking.
 
If you want to run multiple websites using ports 80 and/or 443 behind a single IP you will need a reverse proxy server like nginx to route incoming traffic to the correct VM

On the other hand, if your vm's and applications can use different ports then you can redirect incoming traffic based on the port, using either iptables on the host or by using a VM like pfsense which might be easier to use if you are not too familiar with networking.
I don't quite understand. Don't know if you have any documentation for the above problem?
 

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!