I doubt I'm the only person trying to do this. What's the easiest solution to have VMs on the same proxmox host be on separate networks (ie. they can't talk to each other), but share a connection to the internet?
I currently have my proxmox server set up with multiple VMs all under the same network (ie. internet/modem -> router -> switch -> proxmox server). This is working great, but I now would like to host a public website as a VM on my proxmox server. For security reasons, I do not want the public website VM to be able to access the other existing VMs on the proxmox server. However, I want all my VMs to be able to access the internet.
In my router (Ubiquiti Edgerouter), I am able to create a second network on a different port on the router, so both ports can use the same internet connection from the modem. However, the network address looks like it must be different, and proxmox doesn't allow me to use two gateway addresses (ie. I currently use 192.168.0.1 as my network on the first router port and my proxmox gateway, and I wouldn't be able to use 192.168.2.1 or something else on proxmox as a second gateway).
It looks like VLANs might be a solution, but I can't figure out how to apply them to my situation. It looks like I can get the public website VM on a different VLAN than the existing VMs in proxmox, but then the public website VM VLAN would not have a connection to the router for the internet connection (since it would be isolated on the switch to its own VLAN). Or that's what I think is going to happen?
Again, my setup:
An internet modem is connected to my router via a single ethernet cable. Another ethernet cable connected to the router connects to a 24 port switch (capable of VLAN, etc). The switch is connected to my proxmox server via a single ethernet cable, although I can connect up to three more ethernet cables to the proxmox server.
I currently have my proxmox server set up with multiple VMs all under the same network (ie. internet/modem -> router -> switch -> proxmox server). This is working great, but I now would like to host a public website as a VM on my proxmox server. For security reasons, I do not want the public website VM to be able to access the other existing VMs on the proxmox server. However, I want all my VMs to be able to access the internet.
In my router (Ubiquiti Edgerouter), I am able to create a second network on a different port on the router, so both ports can use the same internet connection from the modem. However, the network address looks like it must be different, and proxmox doesn't allow me to use two gateway addresses (ie. I currently use 192.168.0.1 as my network on the first router port and my proxmox gateway, and I wouldn't be able to use 192.168.2.1 or something else on proxmox as a second gateway).
It looks like VLANs might be a solution, but I can't figure out how to apply them to my situation. It looks like I can get the public website VM on a different VLAN than the existing VMs in proxmox, but then the public website VM VLAN would not have a connection to the router for the internet connection (since it would be isolated on the switch to its own VLAN). Or that's what I think is going to happen?
Again, my setup:
An internet modem is connected to my router via a single ethernet cable. Another ethernet cable connected to the router connects to a 24 port switch (capable of VLAN, etc). The switch is connected to my proxmox server via a single ethernet cable, although I can connect up to three more ethernet cables to the proxmox server.