Skip to content

Instantly share code, notes, and snippets.

@micheleb
Created July 8, 2015 12:40
Show Gist options
  • Save micheleb/594541d321915d1b8b6a to your computer and use it in GitHub Desktop.
Save micheleb/594541d321915d1b8b6a to your computer and use it in GitHub Desktop.
A script to delete NAT forwarding rules from a VirtualBox VM
#!/bin/bash
if [[ "$#" -eq "2" ]]; then
VBoxManage modifyvm "$1" --natpf1 delete "$2"
else
echo 'USAGE: vm_forward_delete vm_name rule_name'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment