A firewall is a network security system that monitors and controls the incoming and outgoing network traffic based on predetermined firewall rules.
To use a group of addresses, first manually associate the IP and MAC address of each VM with their logical switch.
- Select from the navigation panel.
- Click the General tab for L3 rules or the Ethernet tab for L2 rules.
- Click an existing section or rule.
- Click the menu icon in the first column of a rule and select Add Rule Above or Add Rule Below.
A new row appears to define a firewall rule.Note: For any traffic attempting to pass through the firewall, the packet information is subjected to the rules in the order shown in the Rules table, beginning at the top and proceeding to the default rules at the bottom. In some cases, the order of precedence of two or more rules might be important in determining the disposition of a packet.
- In the Name column, enter the rule name.
- In the Source column, click the edit icon and select the source of the rule. The source will match any if not defined.
Option Description IP Addresses Enter multiple IP or MAC addresses in a comma-separated list. The list can contain up to 255 characters. Both IPv4 and IPv6 formats are supported. Container Objects The available objects are IP Set, Logical Port, Logical Switch, and NS Group. Select the objects and click OK.
- In the Destination column, click the edit icon and select the destination. The destination will match any if not defined.
Option Description IP Addresses You can enter multiple IP or MAC addresses in a comma-separated list. The list can contain up to 255 characters. Both IPv4 and IPv6 formats are supported. Container Objects The available objects are IP Set, Logical Port, Logical Switch, and NS Group. Select the objects and click OK.
- In the Service column, click the edit icon and select services. The service will match any if not defined.
- To select a predefined service, select one of more available services.
- To define a new service, click the Raw Port-Protocol tab and click Add..
Option Description Type of Service
- L4 Port Set
Protocol Select one of the available protocols. Source Ports Enter the source port. Destination Ports Select the destination port.
- In the Applied To column, click the edit icon and select objects.
- In the Log column, set the logging option.
Logs are in the /var/log/dfwpktlogs.log file on ESXi and KVM hosts. Enabling logging can affect performance.
- In the Action column, select an action.
Option Description Allow Allows all L3 or L2 traffic with the specified source, destination, and protocol to pass through the current firewall context. Packets that match the rule, and are accepted, traverse the system as if the firewall is not present Drop Drops packets with the specified source, destination, and protocol. Dropping a packet is a silent action with no notification to the source or destination systems. Dropping the packet causes the connection to be retried until the retry threshold is reached. Reject Rejects packets with the specified source, destination, and protocol. Rejecting a packet is a more graceful way to deny a packet, as it sends a destination unreachable message to the sender. If the protocol is TCP, a TCP RST message is sent. ICMP messages with administratively prohibited code are sent for UDP, ICMP, and other IP connections. One benefit of using Reject is that the sending application is notified after only one attempt that the connection cannot be established.
- Click the Advanced Settings icon to specify IP protocol, direction, rule tags, and comments..
- Click Publish.