Configuring port forwarding with NAT – FreeBSD Guest in VirtualBox

Add:

c:\Program Files\VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,,2222,,22"

Delete:

VBoxManage modifyvm "VM name" --natpf1 delete "guestssh"


Font: http://www.virtualbox.org/manual/ch06.html#natforward