Gateway Firewall
The edge gateway firewall controls traffic entering and leaving your Virtual Datacenter. It is a stateful firewall with configurable default policies and an ordered list of rules. Managing the gateway firewall requires the VDC_ADMIN role.
Set default policies
Default policies determine what happens to traffic that does not match any explicit rule. You set separate policies for inbound and outbound traffic.
The available policies are:
| Policy | Behavior |
|---|---|
ACCEPT | Allow the traffic. |
DROP | Silently discard the traffic. The sender gets no response. |
REJECT | Discard the traffic and send an explicit rejection (ICMP unreachable) back to the sender. |
To update the default policies, navigate to the edge gateway's Firewall tab and configure the inbound and outbound defaults.
The gateway firewall tab displays default policies and the ordered list of firewall rules.
DROP and outbound to ACCEPT. This blocks all unsolicited incoming traffic while letting your VMs reach the internet. Then add specific rules for the inbound traffic you want to allow.Add firewall rules
Rules are evaluated in order by their position number. When a packet matches a rule, that rule's action is applied and no further rules are checked.
Each rule accepts the following fields:
| Field | Required | Description |
|---|---|---|
action | Yes | ACCEPT, DROP, or REJECT. |
direction | No | IN (inbound) or OUT (outbound). |
protocol | No | TCP, UDP, or ICMP. Omit to match all protocols. |
dport | No | Destination port or port range (e.g., "443" or "8000:9000"). |
source | No | Source IP or CIDR (e.g., "10.0.0.0/8" or "203.0.113.50"). |
comment | No | A human-readable note explaining the rule's purpose. |
To add a rule:
- Navigate to the edge gateway's Firewall tab.
- Click Add Rule.
- Fill in the rule parameters (action, direction, protocol, port, source, comment).
- Click Create.
Common rule examples:
- Allow inbound HTTPS: action
ACCEPT, directionIN, protocolTCP, port443 - Allow SSH from management subnet: action
ACCEPT, directionIN, protocolTCP, port22, source10.200.0.0/24 - Block outbound SMTP: action
DROP, directionOUT, protocolTCP, port25
ACCEPT rule placed before a narrow DROP rule will override it. Pay attention to rule ordering when building your firewall policy.Delete firewall rules
To remove a rule, find it in the rule list on the Firewall tab and click the delete action. When you delete a rule, all rules below it shift up by one position.