Set up a public IP given by my ISP on a VM

hamza_toor

New Member
Nov 21, 2022
12
0
1
Hello. I have set up a Proxmox server and have created VMs in it. I have set up an Nginx reverse proxy set up on one of the machines to map different domains that are running individually on different VMs. I have a public IP given to me by my ISP. I need to assign that public IP to the VM on which I installed Nginx reverse proxy. Is it possible to achieve? If yes, how can I achieve this? If not, what can be the other way to achieve this? Thanks!
 
Hello,

how that works in particular depends on your network setup. Can you post the contents of your /etc/network/interfaces - with tparts of your public IP masked.

Is this a hosted server or your own on-premises server?

Kind regards,
Benedikt
 
Hello,

how that works in particular depends on your network setup. Can you post the contents of your /etc/network/interfaces - with tparts of your public IP masked.

Is this a hosted server or your own on-premises server?

Kind regards,
Benedikt
Hi. This is an on-premises server. Below are the contents of my network/interfaces file.
auto lo
iface lo inet loopback

iface eno1np0 inet manual

auto vmbr0
#iface vmbr0 inet dhcp
iface vmbr0 inet static
address 192.168.10.33/24
#netmask 255.255.255.0
gateway 192.168.10.1
bridge-ports eno1np0
bridge-stp off
bridge-fd 0

iface eno3 inet manual

iface eno4 inet manual

iface eno2np1 inet manual
 
Well you only seem to have local network adresses, nothing related to external network. How does your connection to the internet work? You seem to be having a router or similar point that is between your local and external network. Incoming connections to your public ip need to be handled at that point (router, modem?)
 
Well you only seem to have local network adresses, nothing related to external network. How does your connection to the internet work? You seem to be having a router or similar point that is between your local and external network. Incoming connections to your public ip need to be handled at that point (router, modem?)
Yes, I do have a router installed between my local and external network.
 
Yes, I do have a router installed between my local and external network.
You will have to access your router's GUI and forward HTTP & HTTPS ports to the local IP of that Nginx Reverse Proxy VM (you can get this by running
Code:
ip a
in that VM). This feature is called Port Forwarding/Virtual Servers. It depends on what router you use.
 
Last edited:

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!