VMware

Inbound Namespace

Inbound namespace provides commands Operations for Firewall rules.

List of commands:



Add Command

dcli com vmware appliance techpreview networking firewall addr inbound add

Description

Add a firewall rule to allow or deny traffic from incoming IP address.

Options

Option Name Type Required Description
pos int Yes Position before which to insert the rule (zero-based). If you try to insert the rule in a position whose number is greater than the number of rules, the firewall rule is inserted at the end of the list.
address string Yes IPv4 or IPv6 address.
prefix int Yes CIDR prefix used to mask address. For example, an IPv4 prefix of 24 ignores the low-order 8 bits of address.
policy string Yes The allow or deny policy of this rule. Valid values are: {deny, allow}
interface‑name string Yes The interface to which this rule applies. An empty string or "\*" indicates that the rule applies to all interfaces.

Example

dcli com vmware appliance techpreview networking firewall addr inbound add --pos test --address testString --prefix test --policy test --interface-name testString


Set Command

dcli com vmware appliance techpreview networking firewall addr inbound set

Description

Set list of inbound IP addresses to allow or deny by firewall. This replaces all existing rules. Firewall rules have no impact on closed ports because these ports are closed for all traffic.

Options

Option Name Type Required Description
address string Yes IPv4 or IPv6 address.
prefix int Yes CIDR prefix used to mask address. For example, an IPv4 prefix of 24 ignores the low-order 8 bits of address.
policy string Yes The allow or deny policy of this rule. Valid values are: {deny, allow}
interface‑name string Yes The interface to which this rule applies. An empty string or "\*" indicates that the rule applies to all interfaces.

Example

dcli com vmware appliance techpreview networking firewall addr inbound set --address testString --prefix test --policy test --interface-name testString


List Command

dcli com vmware appliance techpreview networking firewall addr inbound list

Description

Get ordered list of inbound IP addresses that are allowed or denied by firewall.

Example

dcli com vmware appliance techpreview networking firewall addr inbound list


Delete Command

dcli com vmware appliance techpreview networking firewall addr inbound delete

Description

Delete specific rule at a given position or delete all rules.

Options

Option Name Type Required Description
position int Yes Position before which to insert the rule (zero-based). If you try to insert the rule in a position whose number is greater than the number of rules, the firewall rule is inserted at the end of the list.
all bool Yes Delete all firewall rules. Set all argument to "true" to delete all rules or set the all argument to "false" to delete a single rule.

Example

dcli com vmware appliance techpreview networking firewall addr inbound delete --position test --all test