I'm trying to learn networking and security in my homelab and have been using Proxmox to run some labs. The goal of my network setup is to isolate Proxmox VMs into their own vLANs so that they're unable to scan/access other VMs or any other devices on my network (including the Proxmox GUI or SSH, for example). My interest is in regards to how my network behavior changes when I do or don't assign a IPv4/CIDR to my vLAN Network Device. For example,
versus,
In both scenarios, my Kali Linux VM has access to the internet and my pfSense Router is able to assign a IPv4 Address in the correct subnet (192.168.20.1/24). However, when I explicitly give the network device an IPv4 Address, the VM is able to able to access Proxmox GUI, SSH, and other host services which I thought would only be accessible from my managment vLAN. Why is this? /etc/hosts only shows the IP for the "correct" managment interface which is on a different vLAN and subnet.
Code:
auto vmbr0.31
iface vmbr0.31 inet static
address 192.168.20.1/24
# Kali Linux vLAN
versus,
Code:
auto vmbr0.31
iface vmbr0.31 inet static
# Kali Linux vLAN
In both scenarios, my Kali Linux VM has access to the internet and my pfSense Router is able to assign a IPv4 Address in the correct subnet (192.168.20.1/24). However, when I explicitly give the network device an IPv4 Address, the VM is able to able to access Proxmox GUI, SSH, and other host services which I thought would only be accessible from my managment vLAN. Why is this? /etc/hosts only shows the IP for the "correct" managment interface which is on a different vLAN and subnet.