Skip to content

Instantly share code, notes, and snippets.

@timini
Created February 19, 2016 16:57
Show Gist options
  • Save timini/2dc4c3f641f4fd878c9c to your computer and use it in GitHub Desktop.
Save timini/2dc4c3f641f4fd878c9c to your computer and use it in GitHub Desktop.
open all ports on the boot2docker machine used by docker-machine
for i in {80..20000}; do
VBoxManage modifyvm "default" --natpf1 "tcp-port$i,tcp,,$i,,$i";
VBoxManage modifyvm "default" --natpf1 "udp-port$i,udp,,$i,,$i";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment