VirtualBox

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).

Change History (1)

comment:1 by Valery Ushakov, 3 years ago

It's the manual that needs fixing, as the natnet accepts the same pattern of

VBoxManage natnetwork modify --netname Net --port-forward-4 delete RuleName

to delete rules.

Last edited 3 years ago by Valery Ushakov (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use