Single IP and Multiple Websites

korpfhouder

New Member
Apr 11, 2024
3
0
1
Hi everyone and thanks in advance for the help :)

I'm a newbie with Proxmox and I know this question has been addressed in many threads, but I believe my situation is a bit different because many people asking have a home setup. I have a remote bare metal server with pve installed.

I'd like to create different VMs for my different websites and have "something" routing the traffic from the ports 80/443 to the different VMs providing the services. One IP, multiple services

I know the request could seem pretty vague, but I don't know how to provide more useful details.
Thank you very much
 
You will need a traffic balancer installed on a VM (haproxy, nginx varnish) based on the type of "balancing" and data you need to do.
 
Google for "Reverse Proxy".
I read many people suggest a load balancer combined with a reverse proxy like Traefik etc.

I believe I need to create a CT to host the reverse proxy with a static IP and route all the traffic to that VM.
My question is how to make all the traffic route to that specific VM.
Is it correct?
Thanks
 
Last edited:
Without a router between your PVE and the internet that could port-forward to the reverse proxy VM/CT you could turn your PVE Host into a router. See examples for NAT or routed configurations: https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_routed
Hi, I did what you suggested. There's a CT now in a bridge network I can access from outside. Thanks for the guidance.

What now? I mean...do you suggest a firewall like OPNSense, a load balancer and a reverse proxy in this CT from which I can reach all the other VMs/CTs I'll create?

Thanks again for the help
 

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!