Internet for VM's with private address

Itsageek

New Member
Nov 21, 2024
1
0
1
Help,

It seems I have looked at every YouTube and read every article and I just can get My migrated VMs to access the internet. I purchased a dedicated server from Pebblehost and bought 2 static IPs, x.x.x.203 is the Proxmox interface and x.x.x.228 is not currently used. I have broken the interface trying to create bridges.

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp1s0f0
iface enp1s0f0 inet manual
dns-nameserver 8.8.8.8
#dns*

auto enp1s0f1
iface enp1s0f1 inet static
address xx.208.92.228/26

auto vmbr0
iface vmbr0 inet static
address xx.208.92.203/26
gateway xx.208.92.193
bridge-ports enp1s0f0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr1
iface vmbr1 inet static
address 192.168.10.100/24
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

I have tried using static IPs on the VMs and vMAC at Pebblehost's request. But no internet, I must be missing something, I am new to proxmox and have been using VMware for a while with virtual Macs to get things to work,


Thanks for the help
 
Last edited:
This is a routing problem and not a PVE problem. I haven't done this in particular, I had a "real" network (more than one host) and it was just a simple routed setup. I had my PVE host IP and registered the first IP of my subnet as the vmbr0 address and use it as a gateway for all machines inside of the subnet. I enabled package forwarding and my hosting provider set the route to the subnet to my PVE host IP and everything just worked as it should. AFAIK, there is nothing that you can set in PVE that will solve this problem, PVE is just the IaaS Layer and Networking has to be done on the host. Other hosting providers have tutorials about such a setup, e.g. Hetzner has a comprehensive tutorial about PVE networking. Maybe this helps you.
 
  • Like
Reactions: Itsageek