Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Created July 14, 2017 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/284e9b453b33c0d74caeb0e537ea7b57 to your computer and use it in GitHub Desktop.
Save PixelRobots/284e9b453b33c0d74caeb0e537ea7b57 to your computer and use it in GitHub Desktop.
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 3389 -Protocol TCP -InternalIPAddress "10.10.10.200" -InternalPort 3389 -NatName NATVNetwork
Get-NetNAT
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 50200 -Protocol TCP -InternalIPAddress "10.10.10.200" -InternalPort 3389 -NatName NATVNetwork
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 50201 -Protocol TCP -InternalIPAddress "10.10.10.201" -InternalPort 3389 -NatName NATVNetwork
Add-NetNatStaticMapping -ExternalIPAddress "0.0.0.0/24" -ExternalPort 50202 -Protocol TCP -InternalIPAddress "10.10.10.202" -InternalPort 3389 -NatName NATVNetwork
Get-NetNatStaticMapping
Remove-NetNatStaticMapping -StaticMappingID 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment