I'm trying to setup networking to where I can just tag a vm with a vlan so that it can only communicate out to the internet and to other VM's inside that vlan. These VM's are in a private network as well, so I know some form of masquerading will be necessary.
I first tried using a vlan aware bridge, but a tagged vm can't access the gateway and therefore can't reach the internet. So I've started looking into openvswitch however I can't figure it out. Any advice? (And I have read this post: https://forum.proxmox.com/threads/isolating-virtual-machines-with-vlan.92797/ but using firewall rules based on ip won't work for my situation without a lot of extra work)
More detail on my situation if it helps:
I'm currently working on a project for my school where cyber security labs are to be created automatically inside Proxmox, these labs can be 1 to 3 VMs each. I've already got automation using the API going pretty well, my only task I'm stuck on is keeping labs isolated as they can be running malicious code (the rest of the network at our campus is already isolated). I also have no access to a physical switch, it is under lock and key and getting any changes made takes months here.
Any help would be appreciated thanks.
I first tried using a vlan aware bridge, but a tagged vm can't access the gateway and therefore can't reach the internet. So I've started looking into openvswitch however I can't figure it out. Any advice? (And I have read this post: https://forum.proxmox.com/threads/isolating-virtual-machines-with-vlan.92797/ but using firewall rules based on ip won't work for my situation without a lot of extra work)
More detail on my situation if it helps:
I'm currently working on a project for my school where cyber security labs are to be created automatically inside Proxmox, these labs can be 1 to 3 VMs each. I've already got automation using the API going pretty well, my only task I'm stuck on is keeping labs isolated as they can be running malicious code (the rest of the network at our campus is already isolated). I also have no access to a physical switch, it is under lock and key and getting any changes made takes months here.
Any help would be appreciated thanks.