Issues getting Public IP on Host machine

CarlM24

New Member
May 19, 2020
5
1
3
34
I am having issues getting my Proxmox setup on my host machine to work with a public IP address.

I have the following setup for the LOCAL which is working fine:
iface lo inet loopback

iface enp0s31f6 inet manual

iface vmbr0 inet static
address 192.168.1.140
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports vmbr0
bridge_stp off
bridge_fd 0


I have the following setup for my PUBLIC, however, it doesn't work:
auto lo
iface lo inet loopback

iface enp0s31f6 inet manual

iface vmbr0 inet static
address xx.xx.7.206
netmask 255.255.255.252
gateway xx.xx.7.205
bridge_ports vmbr0
bridge_stp off
bridge_fd 0

I spoke with my ISP and they said the netmask and IP addresses, however, they couldn't tell me the default gateway. I assumed my default gateway is the WAN IP address of the router which is xx.xx.7.205. I then done a tracert to 8.8.8.8 from an internal system and the first hop is 62.24.254.204 which is a total different network ID all together.

I understand this may fall out of the scope of Proxmox, however, I am unsure where to go from here, so any help would be appreciated.

Kind regards,
Carl
 
hi,

if your PVE host is behind a router, then the gateway will be the local IP of your router.
to use the public address of your router, you'll need to set up portforwarding on your router to forward the necessary ports to the local IP of your PVE host.

[0]: https://pve.proxmox.com/wiki/Network_Configuration
 
hi,

if your PVE host is behind a router, then the gateway will be the local IP of your router.
to use the public address of your router, you'll need to set up portforwarding on your router to forward the necessary ports to the local IP of your PVE host.

[0]: https://pve.proxmox.com/wiki/Network_Configuration

I have been allocated 4 Public IP addresses off my ISP, xx.xx.7.204 - xx xx.7.207. The IP address for my router is xx.xx.7.205.

My intention is to have around 2-3 VMs with their own Public IP address, however, when I try the above settings it doesn't work. I tried using my local IP address, 192.168.1.1, as the gateway with the Public IP address xx.xx.7.206 and netmask set to 255.255.255.252 and I can see the packets on Wireshark, but the router doesn't respond.

I will try again with you settings though and update the thread accordingly.

Thanks :)
 
hi,

if your PVE host is behind a router, then the gateway will be the local IP of your router.
to use the public address of your router, you'll need to set up portforwarding on your router to forward the necessary ports to the local IP of your PVE host.

[0]: https://pve.proxmox.com/wiki/Network_Configuration
No, this set up still didn't work either.

Here's the settings:
iface vmbr0 inet static
address xx.xx.7.206
netmask 255.255.255.252
gateway 192.168.1.1
bridge_ports vmbr0
bridge_stp off
bridge_fd 0

and

iface vmbr0 inet static
address xx.xx.7.206
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports vmbr0
bridge_stp off
bridge_fd 0

and

iface vmbr0 inet static
address xx.xx.7.206
netmask 255.255.255.252
gateway xx.xx.7.204
bridge_ports vmbr0
bridge_stp off
bridge_fd 0

When I tried the last one, I got an error saying:
"ERROR: Nexthop has invalid gateway"

I also tried adding the broadcast address xx.xx.7.207 to the last set up to see if that helped, but it didn't