the default port disabling method for Win server 2008 R2.
The command "Netstat-an" allows you to know which port the system is currently listening on. On Windows Server 2008 systems, there are two ways to disable a local port: 1. Windows Firewall (simpler, easier to set). 2, through the IP Security policy (more complex, powerful, do not rely on firewalls). Small series The following is the first method, simple settings can be completed.
First, disable ports through Windows Firewall:
1, click the "Control Panel-windows Firewall" to ensure that Windows Firewall is enabled. Click "Advanced Settings" in the left column and the Windows Firewall Advanced Configuration window will be automatically ejected.
2, click on "Inbound Rules", and then click "New Rule ...", select the type of rule you want to create in the wizard window, choose "Port" here, click "Next".
3, next select the type of network you want to disable (TCP or UDP), in the "specific local port" write to the port you want to disable, such as "80", and then the next step. Select "Block Connection", next, apply the rule to see the situation change, can maintain the same, continue next, fill in the name "Disable 80 port", click Finish.
4, here should be completed, by default, the new rule will be directly enabled. If not, then right-click "Enable rule".