PC linked to a virtual switch in a physical setup
PC linked to a virtual switch in a physical setup
Good morning from Germany. You're looking to link a real hardware device to a virtual switch in Hyper-V for testing software. Creating a pfSense VM with a physical NIC on the PC and an internal one for internet access would be a valid approach.
When you have multiple physical ports, you can link one to a virtual switch that PFSense treats as its WAN, and another to a different virtual switch for its LAN. Alternatively, you might route traffic through the second interface straight to the VM. If you only have a single physical NIC, you can still achieve this by assigning distinct VLANs to each virtual interface on the same virtual switch.
I’d set up an additional vSwitch on the second NIC and link the PFSense VM’s virtual interfaces to both switches. This would allow other VMs to connect to the LAN side of the PFSense VM as well.