Open Control Panel - Administrative Tools - Local Security Policy
Click to select "IP Security Policy on Local Computer", right-click on the blank space on the right, and select Create IP Security Policy
click next
Enter the name of the new policy - click Next
Next step
click finish
In the New IP Security Policy Properties window, create a new security rule----click Add
click add
In the newly pop-up IP filter list window, you can name the filter, enter a new name, and click Add
click next
Fill in the description of this policy (generally port details) ----- hit the next step
Select any source address
Destination address select my IP address
Protocol Select the corresponding protocol Here we take TCP as an example
The source port is any port, and the destination port is filled with the port number to be blocked. Here we take 135 as an example
Click Next -----Finish------OK
The operation here completes the addition of a port policy, and the next step is to perform the release behavior of the port policy
Select the second tab (Filter Actions) in the properties window of the new rule
Click the add button
Adjust security method to block
Click Apply, click the circle in front of the newly added filter operation list, when there is a black dot in the circle, it means that the policy is in effect
Select the "IP Filter List" tab in the new rule properties window, and put a black dot on the circle in front of the newly created filter list
Click Apply----Click OK----
click OK
At this point, you can see the newly added security policy in the list, but the status of the policy has been assigned is No, you need to right-click the policy and click Assign to enable the policy
The process of adding port disables is complete