Created
July 8, 2015 12:40
-
-
Save micheleb/594541d321915d1b8b6a to your computer and use it in GitHub Desktop.
A script to delete NAT forwarding rules from a VirtualBox VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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