


On the Protocol and Ports page, select the protocol type that you want to allow. If you choose to do this, follow the steps in the Create an Inbound Program or Service Rule procedure in addition to the steps in this procedure to create a single rule that filters network traffic using both program and port criteria. The specified program cannot receive network traffic on other ports, and other programs cannot receive network traffic on the specified port. If you combine the rule types, you get a firewall rule that limits traffic to a specified port and allows the traffic only when the specified program is running. This type of rule is often combined with a program or service rule. On the Rule Type page of the New Inbound Rule Wizard, click Custom, and then click Next. In the navigation pane, click Inbound Rules.

Open the Group Policy Management Console to Windows Defender Firewall with Advanced Security. This topic describes how to create a standard port rule for a specified protocol or TCP or UDP port number. To complete these procedures, you must be a member of the Domain Administrators group, or otherwise be delegated permissions to modify the GPOs. This type of rule allows any program that listens on a specified TCP or UDP port to receive network traffic sent to that port. With Advanced Security node in the Group Policy Management MMC snap-in to create firewall rules. To allow inbound network traffic on only a specified TCP or UDP port number, use the Windows Defender Firewall
