- How to configure TCP/IP Filtering in Windows Server 2003
- Summary
- Configuring TCP/IP security in Windows Server 2003
- Configuring TCP/IP security in Windows Small Business Server 2003
- References
- How to determine which program uses or blocks specific Transmission Control Protocol ports in Windows Server 2003
- Summary
- How to match the process ID to a program
- How to obtain additional information about the Netstat.exe utility
How to configure TCP/IP Filtering in Windows Server 2003
This article describes how to configure TCP/IP filtering on Microsoft Windows 2003-based computers.
Original product version: В Windows Server 2003
Original KB number: В 816792
Summary
Windows 2003-based computers support several methods of controlling inbound access. One of the most simple and most powerful methods of controlling inbound access is to use the TCP/IP filtering feature. TCP/IP filtering is available on all Windows 2003-based computers.
TCP/IP filtering helps with security because it works in kernel mode. In contrast, other methods of controlling inbound access to Windows 2003-based computers, such as by using the IPSec Policy filter and the Routing and Remote Access server, depend on user-mode processes or the Workstation and Server services.
You can layer your TCP/IP inbound access control scheme by using TCP/IP filtering with IPSec filters and Routing and Remote Access packet filtering. This approach is especially useful if you want to control both inbound and outbound TCP/IP access, because TCP/IP security alone controls only inbound access.
TCP/IP filtering can filter only inbound traffic and can’t block ICMP (Internet Control Message Protocol) messages, regardless of the settings that are configured in the Permit Only IP Protocols column or whether you don’t permit Internet Protocol 1. Use IPSec Policies or packet filtering if you need more control over outbound access.
We recommend that you use the Configure E-mail and Internet Connection Wizard on SBS 2003-based computers with two network adaptors, and that you turn on the Firewall option and then open the required ports on the external network adaptor. For more information about the Configure E-mail and Internet Connection Wizard, select Start, and then select Help and Support. In the Search box, type Configure E-mail and Internet Connection Wizard, and then select Start Searching. You can find information about the Configure E-mail and Internet Connection Wizard in the Small Business Server Topics result set list.
Configuring TCP/IP security in Windows Server 2003
To configure TCP/IP security:
Select Start, point to Control Panel, point to Network Connections, and then select the local area connection that you want to configure.
In the Connection Status dialog box, select Properties.
Select Internet Protocol (TCP/IP), and then select Properties.
In the Internet Protocol (TCP/IP) Properties dialog box, select Advanced.
Select Options.
Under Optional settings, select TCP/IP filtering, and then select Properties.
Click to select the Enable TCP/IP Filtering (All adaptors) check box.
When you select this check box, you enable filtering for all adaptors, but you configure the filters individually for each adaptor. The same filters don’t apply to all adaptors.
In the TCP/IP Filtering dialog box, there are three sections where you can configure filtering for TCP ports, User Datagram Protocol (UDP) ports, and Internet protocols. For each section, configure the security settings that are appropriate for your computer.
When Permit All is activated, you permit all packets for TCP or UDP traffic. Permit Only lets you to permit only selected TCP or UDP traffic by adding the allowed ports. To specify the ports, you use the Add button. To block all UDP or TCP traffic, select Permit Only but don’t add any port numbers in the UDP Ports column or TCP Ports column. You can’t block UDP or TCP traffic by selecting Permit Only for IP Protocols and excluding IP protocols 6 and 17.
Configuring TCP/IP security in Windows Small Business Server 2003
To configure TCP/IP Filtering, follow these steps.
To perform this procedure, you must be a member of the Administrators group or the Network Configuration Operators group on the local computer.
Select Start, point to Control Panel, right-click Network Connections, and then select Open.
Right-click the network connection where you want to configure inbound access control, and then select Properties.
Under adaptorName Connection Properties on the General tab, select Internet Protocol (TCP/IP), and then select Properties.
In the Internet Protocol (TCP/IP) Properties dialog box, select Advanced.
Select the Options tab.
Select TCP/IP Filtering, and then select Properties.
Click to select the Enable TCP/IP Filtering (All adaptors) check box.
When you select this check box, you enable filtering for all adaptors. However, filter configuration must be completed on each adaptor. When TCP/IP Filtering is enabled, you can configure each adaptor by selecting the Permit All option, or you could allow for only specific IP protocols, TCP ports, and UDP (User Datagram Protocol) ports to accept inbound connections. For example, if you enable TCP/IP Filtering and you configure the external network adaptor to permit only port 80, this lets the external network adaptor to accept Web traffic only. If the internal network adaptor also has TCP/IP Filtering enabled but is configured with the Permit All option selected, this enables unrestricted communication on the internal network adaptor.
Under TCP/IP Filtering, there are three columns with the following labels:
In each column, you must select one of the following options:
- Permit All. Select this option if you want to permit all packets for TCP or UDP traffic.
- Permit Only. Select this option if you want to permit only selected TCP or UDP traffic, select Add, and then type the appropriate port or protocol number in the Add Filter dialog box. You can’t block UDP or TCP traffic by selecting Permit Only in the IP Protocols column and then adding IP protocols 6 and 17.
You can’t block ICMP messages, even if you select Permit Only in the IP Protocols column and then you don’t include IP protocol 1.
TCP/IP Filtering can filter only inbound traffic. This feature doesn’t affect outbound traffic or TCP response ports that are created to accept responses from outbound requests. Use IPSec Policies or Routing and Remote Access packet filtering if you require more control over outbound access.
If you select Permit Only in UDP Ports, TCP Ports, or the IP Protocols column and the lists are left blank, the network adaptor will not be able to communicate with anything over a network, either locally or to the Internet.
References
For more information about TCP and UDP port numbers, see Service Name and Transport Protocol Port Number Registry.
How to determine which program uses or blocks specific Transmission Control Protocol ports in Windows Server 2003
This step-by-step article discusses how to determine which program uses or blocks specific Transmission Control Protocol (TCP) ports.
For a Microsoft Windows XP version of this article, see 281336.
Original product version: В Windows Server 2003
Original KB number: В 323352
Summary
The Netstat.exe utility has a new switch, the -o switch, that can display the process identifier (ID) that is associated with each connection. This information can be used to determine which process (program) listens on a particular port. For example, the netstat -ano command can produce the following output:
If you use Task Manager, you can match the process ID that is listed to a process name (program). With this feature, you can find the specific port that a program currently uses. Because a program already uses this specific port, another program is prevented from using that same port.
How to match the process ID to a program
To match the process ID to a program, follow these steps:
- Press Ctrl+Alt+Delete, and then click Task Manager.
- Click the Processes tab.
- If you don’t have a PID column, click View >Select Columns, and then click to select the PID (Process Identifier) check box.
- Click the column header that is labeled «PID» to sort the process by PIDs. You should be able to easily find the process ID and match it to the program that is listed in Task Manager.
How to obtain additional information about the Netstat.exe utility
To obtain additional information about the Netstat.exe utility, follow these steps:
- Click Start >Run.
- In the Open box, type cmd, and then click OK.
- At a command prompt, typenetstat /?.
—>