VirtualBox NAT Forwarding

It takes three lengthy commands to configure a port to be forwarded from the host machine to the guest OS in VirtualBox.  My guess is everyone who uses VirtualBox for any length of time writes these scripts to shorten the process.  Here are mine, in hopes it will save someone some time.

Note that these scripts only work while a VM is stopped.


  1. Just in case you’re not aware of it: the gists do not show in your feed (at least in Google Reader). Not crucial in this case, but might be good to know in the future.

Leave a Reply

Your email address will not be published. Required fields are marked *