Skip to content

Instantly share code, notes, and snippets.

@johnsyweb
Created June 17, 2014 09:50
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 johnsyweb/26ce4ae716222ae6ae15 to your computer and use it in GitHub Desktop.
Save johnsyweb/26ce4ae716222ae6ae15 to your computer and use it in GitHub Desktop.
#!/bin/bash
boot2docker down
for i in {49000..49900}; do
for protocol in 'tcp' 'udp'; do
VBoxManage modifyvm "boot2docker-vm" --natpf1 "${protocol}-port${i},${protocol},,${i},,${i}"
done
done
boot2docker up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment