[SOLVED] Accessing proxmox via domain?

kd34

Member
Feb 17, 2022
16
0
6
22
Hi! I have a kvm running my servers and nginx. How can I make the nginx server inside kvm redirect proxmox to my domain? Or what do you suggest me to host proxmox outside the network without using public IP?
 
hi,

Or what do you suggest me to host proxmox outside the network without using public IP?
you will still need an accessible public IP address for your domain to work

Hi! I have a kvm running my servers and nginx. How can I make the nginx server inside kvm redirect proxmox to my domain?
the answer to that partly depends on the network configuration of your PVE machine. if you have only a single public IP address (e.g. residential or server at a hoster), then you can try making a masquerading setup [0] to redirect the ports you need to your VM's internal IP address.

if you want to access the PVE GUI using a domain name you can also take a look at setting up a reverse proxy using nginx [1]

hope this helps!

[0]: https://pve.proxmox.com/wiki/Networ...ith_tt_span_class_monospaced_iptables_span_tt
[1]: https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy
 
hi,


you will still need an accessible public IP address for your domain to work


the answer to that partly depends on the network configuration of your PVE machine. if you have only a single public IP address (e.g. residential or server at a hoster), then you can try making a masquerading setup [0] to redirect the ports you need to your VM's internal IP address.

if you want to access the PVE GUI using a domain name you can also take a look at setting up a reverse proxy using nginx [1]

hope this helps!

[0]: https://pve.proxmox.com/wiki/Networ...ith_tt_span_class_monospaced_iptables_span_tt
[1]: https://pve.proxmox.com/wiki/Web_Interface_Via_Nginx_Proxy


Thank you so much for your reply. Inside proxmox kvm I have nextcloud server1, nextcloud server2, nextcloud server3(examples). And I already have nginx proxy installed on the same kvm. The question is is there a config where I can point to host to be able to use domain? I already have domain + ssl on nextcloud1, nextcloud2 .... Or should i install nginx on proxmox host too? and do same configuretations.
 
The question is is there a config where I can point to host to be able to use domain?
point your DNS records to the public IP address you have, and you can add the FQDN inside the /etc/hosts file for your PVE server

I already have domain + ssl on nextcloud1, nextcloud2 .... Or should i install nginx on proxmox host too? and do same configuretations.
if you want them all working on the same port, e.g. 443, then it would make sense to install the nginx proxy on the PVE host.
if you don't mind having the sites running on different ports then you can just follow the masquerading setup i've linked before, and you should be able to portforward the things you need. for example:

- nextcloud1: 192.168.1.100
- PVE public IP: 1.2.3.4

set up forwarding for nextcloud1, let's say you forward port 8443 -> 443

internet -> domain name -> your.pve.public.address:8443 -> 192.168.1.100:443
 

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!