Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I add a rule:

VBoxManage modifyvm "xp" --natpf1 "guestrdp,tcp,,33890,,3389"

I list it:

VBoxManage showvminfo "xp" | awk '/NIC/ && /Rule/ {print}'
NIC 1 Rule(0):   name = guestrdp, protocol = tcp, host ip =, host port = 33890, guest ip = , guest port = 3389

But how can I delete it?

share|improve this question
up vote 3 down vote accepted

The first argument inside the quotes of the rule you created is the rule name. You can delete the rule by name like this:

VBoxManage modifyvm xp --natpf1 delete guestrdp

To find these kind of things out the fastest place to look is VBoxManage --help | less.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.