Skip to content

Instantly share code, notes, and snippets.

@joaodubas
Created December 28, 2013 13:02
Show Gist options
  • Save joaodubas/8159276 to your computer and use it in GitHub Desktop.
Save joaodubas/8159276 to your computer and use it in GitHub Desktop.
Power shell loop to enable port forward between host and guest
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