Opened 6 years ago
Last modified 3 years ago
#17897 new enhancement
Port forwardings can only be added, not deleted with "VBoxManage natnetwork"
Reported by: | damiano++ | Owned by: | |
---|---|---|---|
Component: | network | Version: | VirtualBox 5.2.12 |
Keywords: | natnetwork | Cc: | |
Guest type: | all | Host type: | all |
Description
For "natnetwork" type network setups, port forwarding rules can be added with e.g.:
VBoxManage natnetwork modify --netname kommune1 --port-forward-4 "..."
but, there is no corresponding way to remove an existing rule.
For "nat" type networks, both options exist:
VBoxManage modifyvm Name --natpf1 "..." VBoxManage modifyvm Name --natpf1 delete "..."
I would like to see an option added to VBoxManage natnetwork modify
that allows the deletion of rules by their name.
In the meantime, as a workaround, the documentation should suggest that rules can be manually removed from the configuration file ~/Library/VirtualBox/VirtualBox.xml
(on macOS, not sure about the path on other platforms).
Note:
See TracTickets
for help on using tickets.
It's the manual that needs fixing, as the natnet accepts the same pattern of
to delete rules.