Pulling my hair out trying to get port mirror to work

noak

New Member
Dec 20, 2017
7
0
1
37
Hey Folks,

I have a proxmox server with 2 NIC cards. My goal is to utilize the 2nd NIC card as a mirrored port to dump my network packets into a VM.

I have setup the port mirror on my switch properly. I believe I have setup the port mirror on proxmox properly following a guide (attached commands).

When I run TCPDUMP on the proxmox host directly on the NIC I can see the mirrored packets, I can also see the mirrored packets when I run tcpdump on the ovs bridge and the tap interface.

However, tcpdump on the VM (Freebsd os) does not show the packets. There are no firewalls enabled. I am stuck... can anyone please help?

Attaching file with config snippets from proxmox.
 

Attachments

I'd passthrough the network device directly to the analysing VM, so that you do not need any configuration on PVE besides the passthrough. If you switch does port mirroring, all packages should already be there - no configuration necessary.
 
How would I pass through the NIC directly? As far as I am aware, I need to add that network device into a proxmox virtual bridge and then assign the virtual bridge to the VM.
 
I originally tried it with the linux bridge by turning it into a hub (setting timer to 0). But that did not work either. I will look into the pci passthrough.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!