Hi beloved Proxmox Community,
I want to make a LXC directly accessible from the Internet via a public IP address. Atm my whole setup is as follows:
Evil Internet <---> (ix0: A.B.C.D/29) OPNsense firewall (ix1: 192.168.42.1/24) <---> (ge0: 192.168.42.20/24) Proxmox VE server
As you can see currently the only entity with a public IP is my firewall and all VMs are NATed. This setup was fine until we began to plan the hosting of a MDM platform (as a LXC). This requires accessibility via a dedicated public IP address so TLS certificates, DNS for a domain and other stuff can be set up properly.
I tried to think this through (and did some research on the topic) before I start to put my hands on, especially because I can't test on my productive environment.
So my current understanding is that the PVE server at first needs another bridge (e.g. vmbr1) which is then assigned with a public IP address (e.g. A.B.C.E/29) and the gateway of my firewall. Here my first question would be, is it fine to set the internal IP of my firewall (192.168.42.1/24) as the gateway (feels kind of wrong...) or do I need to set the public IP (A.B.C.D/29)? My second question is, can I assign the same interface (in this case a bond) multiple times to different bridges?
Afterwards, I would assign my desired LXC a public IP address which should make it accessible directly from the Internet.
Thank you very much for your response and help.
I want to make a LXC directly accessible from the Internet via a public IP address. Atm my whole setup is as follows:
Evil Internet <---> (ix0: A.B.C.D/29) OPNsense firewall (ix1: 192.168.42.1/24) <---> (ge0: 192.168.42.20/24) Proxmox VE server
As you can see currently the only entity with a public IP is my firewall and all VMs are NATed. This setup was fine until we began to plan the hosting of a MDM platform (as a LXC). This requires accessibility via a dedicated public IP address so TLS certificates, DNS for a domain and other stuff can be set up properly.
I tried to think this through (and did some research on the topic) before I start to put my hands on, especially because I can't test on my productive environment.
So my current understanding is that the PVE server at first needs another bridge (e.g. vmbr1) which is then assigned with a public IP address (e.g. A.B.C.E/29) and the gateway of my firewall. Here my first question would be, is it fine to set the internal IP of my firewall (192.168.42.1/24) as the gateway (feels kind of wrong...) or do I need to set the public IP (A.B.C.D/29)? My second question is, can I assign the same interface (in this case a bond) multiple times to different bridges?
Afterwards, I would assign my desired LXC a public IP address which should make it accessible directly from the Internet.
Thank you very much for your response and help.