New
#1
Adding NAT rules to Hyper-V Default Switch
Hello,
I've got a Linux VM running on Hyper-V to which I'd like to be able to SSH from the rest of my home network. I'm using the internal Default Switch but all I need is for it to forward the inbound SSH to the VM at port 22.
So, I attempted the following but it kept stating ObjectNotFound. Also tried "vEthernet(Default Switch)" but no change.
The tutorials I've read keep stating to create a new internal virtual switch. Does the Default Switch not support NAT rules?Code:Add-NetNatStaticMapping -ExternalIPAddress "192.168.1.0/24" -ExternalPort 22 -Protocol TCP -InternalIPAddress "172.29.65.11" -InternalPort 22 -NatName "Default Switch"
Thank you.