About this task
This section provides an overview on how to close ports if required. Closing ports can have unforeseen effects on other parts of your system. The example in this section shows blocking inbound Port 80; you can also block outbound Port 80 by defining an outbound rule, although the servers and network engines do not communicate out of Port 80. For more information on port requirements, refer to the Network and IT Guidance Technical Bulletin (LIT-12011279) .
- In Control Panel, click System and Security, then click Windows Defender Firewall. The Windows Firewall window appears.
- In the Windows Defender Firewall window, make sure the firewall is On. If not, turn on the Windows Firewall.
- Click Advanced Settings in the left pane. The Windows Defender Firewall with Advanced Security window appears.
- In the left pane, click Inbound Rules. The Inbound Rules pane appears.
- In the Actions pane, select New Rule. The New Inbound Rule Wizard opens and the Rule Type window appears.
- Select Port and click Next. The Protocol and Ports window appears.
- Select TCP, and in the Specific Local Ports field, enter the port numbers you want to close. This example shows Port 80.
- Click Next. The Action window appears.
- Select Block the connection and click Next.
Complete the steps to add the new inbound rule. Name the new rule
Metasys (TCP Protocol Closed Ports)
When finished, the Windows Defender Firewall with Advanced Security window appears and the Inbound Rules table refreshes to indicate the new rule called Metasys (TCP Protocol Closed Ports) . The ports you specified in Step 7 are now closed to inbound traffic.
- In the Windows Defender Firewall with Advanced Security window, verify that the new Metasys inbound rule is defined and enabled.
- If you also need to close UDP ports, select New Rule from the Actions menu and repeat steps 5 through 11, substituting UDP for TCP in Step 7 and Step 10. You can also create a new outbound rule if you want to block outgoing traffic over a particular port. In that case, select the Outbound Rules option in Step 4.
- Close the Windows Defender Firewall with Advanced Security window.
- Close any additional windows.