The Ports and Protocols tab (click to view image) provides an area to specify which ports and protocols, if any, should be affected by the traffic specified in the rule.
Select a protocol from the top list box.
As indicated, the ALL selection will affect all protocols on all ports, for both incoming and outgoing traffic.
If you select TCP from the Protocol list box, you will be given shown two more list boxes in which you can specify which ports (remote and/or local) should be affected by the rule. You can type the port numbers or select the port type from the list boxes for the both local and remote ports.
If you do not enter or select a port number, then all ports will be affected by the rule. If you enter a port number for the local port entry, but not for the remote port entry, then the local port you entered and ALL remote ports will be affected by the rule.
Then, select which traffic (Incoming or Outgoing) should be affected by the rule.
If you select UDP from the list box, you will then see two port list boxes. You can type the port numbers or select the port type from the list boxes for both local and remote ports. If you do not enter or select a port number, then all ports will be affected by the rule. If you enter a port number for the local port entry, but not for the remote port entry, then the local port you entered and ALL remote ports will be affected by the rule.
Then, select which traffic (Incoming or Outgoing) should be affected by the rule.
If you select ICMP as the protocol for your rule, you will be shown a list of ICMP types. Select the types of ICMP that you wish allow or block by placing a check next to them. Then select the direction of traffic to be affected by the rule.
Should you select IP Type from the list of protocols, you will see a list of IP protocol types displayed on the lower half of the Ports and Protocols tab.
Then, select the traffic direction from the pull-down list.
Click OK. The Rule Summary at the bottom of the window provides a description of the rule and what traffic it will affect on your system.