Skip to content

Instantly share code, notes, and snippets.

@beka
Created July 15, 2024 21:08
Show Gist options
  • Save beka/cafefabc6240d4b1b81503ffcff2942a to your computer and use it in GitHub Desktop.
Save beka/cafefabc6240d4b1b81503ffcff2942a to your computer and use it in GitHub Desktop.
Windows Server configure NAT and enable forwarding
New-NetIPAddress -IPAddress 192.168.200.1 -PrefixLength 24 -InterfaceAlias "vEthernet (InternalSwitch)"
New-NetNat -Name "InternalNAT" -InternalIPInterfaceAddressPrefix 192.168.200.0/24
Set-NetIPInterface -InterfaceAlias "vEthernet (InternalSwitch)" -Forwarding Enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment