Created
December 28, 2013 13:02
-
-
Save joaodubas/8159276 to your computer and use it in GitHub Desktop.
Power shell loop to enable port forward between host and guest
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
for ($i = 8000; $i -lt 10000; $i++) { VBoxManage modifyvm "container" --natpf1 "tcp-port-$i,tcp,,$i,,$i" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment