pfSense needs two virtual switches: one that reaches the internet and one for the school network behind it.
Create the LAN switch
An Internal switch joins the VMs to each other and gives the host a network card on the same network.
Hyper-V host
New-VMSwitch -Name "CON-LAN" -SwitchType Internal
Create the WAN switch
If the host has a wired network card, bind an External switch to it:
Hyper-V host
Get-NetAdapter | Select-Object Name, Status, LinkSpeed New-VMSwitch -Name "CON-WAN" -NetAdapterName "Ethernet" -AllowManagementOS $true
Host on Wi-Fi only?
Hyper-V cannot bridge most Wi-Fi cards to an External switch. Use an Internal switch and let the host pass the traffic out to the internet (NAT).
Hyper-V host
New-VMSwitch -Name "CON-WAN" -SwitchType Internal New-NetIPAddress -InterfaceAlias "vEthernet (CON-WAN)" -IPAddress 192.168.100.1 -PrefixLength 24 New-NetNat -Name "CON-WAN-NAT" -InternalIPInterfaceAddressPrefix 192.168.100.0/24
pfSense's WAN then uses 192.168.100.10 with gateway 192.168.100.1.
Done when
Check
Get-VMSwitch lists CON-WAN and CON-LAN.


