Created
July 15, 2024 21:08
-
-
Save beka/cafefabc6240d4b1b81503ffcff2942a to your computer and use it in GitHub Desktop.
Windows Server configure NAT and enable forwarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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