SUMMARY
You can secure network communications on Windows 2000-based computers if you use Internet protocol security (IPSec). IPSec is applied to communications based on IPSec policies. You can use IPSec policies to determine when you should use IPSec secure communications between computers. You can also use IPSec policies to control the packets that are allowed into and out of a computer's network interface.
IPSec policies are based on two elements:
- IP filter lists
-and- - IP filter actions
An Internet protocol (IP) filter list is a list of protocols and folders. For example, you can create a filter list entry that allows all computers to gain access to TCP port 80 on the local interface. Another entry in the same filter list might allow access to TCP port 25 on the local interface, and a third filter list entry might allow access to User Datagram Protocol (UDP) port 53 on the local interface.
If a packet that arrives on the computer interface has a matching entry on the filter list, IPSec Policy Agent applies a filter action that you assign to the filter list. For example, if you assign a Block filter action to the above filter list. When you do this, any packet that is destined for TCP port 80, TCP port 25, or UDP port 53 is blocked. However, if you assign a Permit filter action to the above filter list, the packets that are destined for TCP port 80, TCP port 25, or UDP port 53 is allowed.
You can use IPSec filter lists and filter actions as an effective method of access control on all interfaces. Note that IPSec policies are applied to all interfaces on a multiple-homed computer. There is no procedure that you can use to allow selective application of IPSec policies to a particular interface.
Windows 2000 includes the following two default IP filter lists:
- All ICMP traffic
-and- - All IP traffic
There are three default filter actions:
- Permit
-and- - Request Security (Optional)
-and- - Require Security
back to the top
How to Create an IPSec Filter List
To create an IPSec filter list that applies to both inbound TCP port 80 and TCP port 25:
- Click Start, point to Programs, point to Administrative Tools, and then click Local Security Policy.
- Click to expand Security Settings.
- Right-click IP Security Policies in the left pane, and then click Manage IP filter.
- Click the Manage IP Filter Lists tab in the Manage IP filter lists and filter actions dialog box, and then click Add.
- Type Inbound TCP 80 and 25 in the Name box, and then type Allows inbound traffic to TCP ports 80 and 25 in the Description box.
- Click to clear the Use Add Wizard check box, and then click Add to add a new filter list entry.
- Click the Addressing tab.
- Click Any IP Address in the Source address box.
- Click My IP Address in the Destination addressbox. This configuration indicates that the filter will be applied to inbound packets.
- Click to clear the Mirrored check box.
- Click the Protocol Tab.
- Click TCP in the Select a protocol type box.
- Click From any port, and then click To this port.
- In the To this port box, type 80.
- Click Apply, and then click OK.
- Click Add in the IP Filter List dialog box.
- Click the Addressing tab.
- Click Any IP Address in the Source address box.
- Click My IP Address in the Destination address box. This configuration indicates that the filter will be applied to inbound packets.
- Click to select the Mirrored check box. When you do this, a filter with the opposite source and destination IP address is created.
- Click the Protocol tab.
- Click TCP in the Select a protocol type box.
- Click From any port, and then click To this port.
- Type 25 in the To this port box.
- Click Apply, and then click OK.
- Click Close in the IP Filter List dialog box.
back to the top
How to Create an IPSec Policy That Is Based on the Filter List
To create an IPSec policy that is based on the filter list:
- Right-click IP Security Policies in the left pane, and then click Create IP Security Policy.
- In the Welcome to the IP Security Policy Wizard, click Next.
- In the IP Security Policy Name dialog box, type Permit Inbound TCP 80 and 25 in the Name box, and then click Next.
- Click to clear the Activate the default response rule check box, and then click Next.
- In the Completing the IP Security Policy Wizard dialog box, click to select the Edit properties check box if it is not already selected, and then click Finish.
- Click the Rules tab.
- Click to clear the Use Add Wizard check box, and then click Add.
- Click the IP Filter List tab.
- Click Option that is to the left of Inbound TCP 80 and 25 IP Filter List.
- Click the Filter Action tab.
- Click Option that is to the left of Permit.
- Click Apply, and then click OK.
- The Inbound TCP 80 and 25 Filter List check box is selected. Click Close.
The IPSec policy checks for packets that are destined for TCP port 80 and TCP port 25 on the local interface, and then matches those packets to the Permit filter action, which allows the packets through the interface.
NOTE: If you assign this policy, all traffic is allowed because there is no Deny rule that prevents other traffic. If you want to only allow traffic that you specified in the above policy, you must create a Deny rule that denies all traffic.
back to the top