Now that you have configured the computers used in the sample, you can implement an additional layer of security if you create and then implement Internet Protocol security rules.
Internet Protocol security (IPsec) is a framework of open standards that helps protect networks from active and passive attacks by securing IP packets through the use of packet filtering, cryptography, and the enforcement of trusted communication. IPsec supports network-level peer authentication, data origin authentication, data integrity, data confidentiality (encryption), and replay protection.
One of the main purposes of implementing IPsec rules is to help protect or control access to information between different computers in a network. IPsec rules can control individual point-to-point network connections by individual IP addresses or by a range of IP addresses. This section walks you though the steps needed to create and implement IPsec rules on the computers used in the security sample.
The security sample uses four computers. Each computer needs a static IP address so that other computers on the network can identify it. When you set up this sample you will have to plan out the IP addresses for each computer. For simplicity, the following table outlines the address ranges that we used in the sample. You should use this as a reference when you set up the sample.
Table 23 IP address ranges used in the sample
|
IP address range
|
Description
|
|---|
|
Range : 192.168.10.x
Netmask : 255.255.255.0
|
IP address range and subnet used by the sample
|
|
192.168.10.1 to 192.168.10.63
|
IP address range for domain-specific servers (DNS, DHCP, WINS, and so on)
|
|
192.168.10.64 to 192.168.10.127
|
IP address range for applications
|
|
192.168.10.128 to 192.168.10.191
|
IP address range for BizTalk Servers
|
|
192.168.10.192 to 192.168.10.254
|
IP address range for computers that run SQL Server
|
The following table displays each computer's static IP address and the computer names referred to in the sample documentation.
Table 24 Static IP addresses and computer names used in the sample
|
IP address
|
Computer
|
Computer name
|
|---|
|
192.168.10.50
|
Domain Controller, DNS
|
DC-CTRL
|
|
192.168.10.65
|
Application Host
|
APP-SVR
|
|
192.168.10.129
|
BizTalk Server
|
BTS-SVR
|
|
192.168.10.193
|
SQL Server
|
SQL-SERVER
|
The first step is to set up Internet Protocol security through the Domain Security Policy Wizard on the domain controller computer with the following procedure.
To set up Internet Protocol security
-
Click Start, point to Administrative Tools, and then click Domain Security Policy.
-
In the Default Domain Security Settings screen, in the left pane, right-click IP Security Policies on Active Directory, and then click Create IP Security Policy.
-
On the Welcome to the IP Security Policy Wizard page, click Next.
-
On the IP Security Policy Name page, type BizTalk Secure Policy as the name of the policy, enter a description in the Description section, and then click Next.
-
On the Requests for Secure Communication page, make sure that the Activate the default response rule check box is selected, and then click Next.
-
On the Default Response Rule Authentication Method page, make sure that Active Directory default is selected, and then click Next.
-
On the Completing the IP Security Policy Wizard page, make sure that the Edit properties check box is selected, and then click Finish to start creating the IPsec rules.
The BizTalk Secure Policy Properties dialog box appears.
You are now ready to create the first IPsec rule.
The first rule that you create makes sure that any computer that is part of the domain can communicate with the domain services (DNS, DHCP, and so on). Follow these steps to create this rule.
To create the first IPsec rule for the domain server
-
In the BizTalk Secure Policy Properties dialog box, click Add.
-
On the Welcome to the Create IP Security Rule Wizard page, click Next.
-
On the Tunnel Endpoint page, make sure that This rule does not specify a tunnel is selected, and then click Next.
-
On the Network Type page, select Local area network (LAN), and then click Next.
-
On the IP Filter List page, click Add.
-
In the IP Filter List dialog box, enter a name and a description as shown in the following figure, and then click Add.
-
On the Welcome to the IP Filter Wizard page, click Next.
-
On the IP Filter Description and Mirrored property page, enter a description for the filter as shown in the following figure, and then click Next.
-
On the IP Traffic Source page, for Source address, select Any IP Address, and then click Next.
-
On the IP Traffic Destination page, for Destination address, select DNS Servers <dynamic>, and then click Next.
-
On the IP Protocol Type page, select Any, and then click Next.
-
On the Completing the IP Filter Wizard page, make sure that the Edit properties check box is cleared, and then click Finish.
-
In the IP Filter List dialog box, notice the newly added entry in the IP Filters section, and then click OK.
This returns you to the IP Filter List page in the Security Rule Wizard.
Follow these steps to complete the configuration for the first rule.
To complete the first rule
-
On the IP Filter List page, select the filter list that you created in the previous procedure (Allow Domain Filter List), and then click Next.
-
On the Filter Action page, select Permit, and then click Next.
-
On the Completing the Security Rule Wizard page, clear the Edit properties check box, and then click Finish.
This returns you to the BizTalk Secure Policy Properties dialog box.
After you create an IP filter list so that the computers in the domain can communicate with the domain controller, you have to create other IP filter lists so that only specific computers in the domain can communicate to other specific computers.
Follow these steps to create an IP filter list between the application and BizTalk Server.
To create the IP filter list between the application and BizTalk Server
-
In the BizTalk Secure Policy Properties dialog box, click Add.
-
On the Welcome to the Create IP Security Rule Wizard page, click Next.
-
On the Tunnel Endpoint page, make sure that This rule does not specify a tunnel is selected, and then click Next.
-
On the Network Type page, select Local area network (LAN), and then click Next.
-
On the IP Filter List page, click Add.
-
In the IP Filter List dialog box, enter the name and description for the filter list as shown in the following figure, and then click Add.
-
On the Welcome to the IP Filter Wizard page, click Next.
-
On the IP Filter Description and Mirrored property page, enter a description for the IP filter as shown in the following figure, and then click Next.
-
On the IP Traffic Source page, for Source address, select A specific IP Subnet, type the IP address and Subnet mask as shown in the following figure, and then click Next.
Because this IP filter list is specific to communications between the application and BizTalk Server, the IP subnet that you want is 192.168.10.64 to 192.168.10.127. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Traffic Destination page, for Destination address, select A specific IP Subnet, type the IP address and Subnet mask as shown in the following figure, and then click Next.
The IP subnet that you want is 192.168.10.128 to 192.168.10.191. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Protocol Type page, select Any, and then click Next.
-
On the Completing the IP Filter Wizard page, clear the Edit properties check box, and then click Finish.
-
In the IP Filter List dialog box, click OK.
-
On the IP Filter List page in the Security Rule Wizard, select the filter list that you created (App to BizTalk IP Filter List), and then click Next.
-
On the Filter Action page, select Require Security, and then click Next.
-
On the Authentication Method page, select Active Directory default, and then click Next.
-
On the Completing the Security Rule Wizard page, clear the Edit properties check box, and then click Finish.
This returns you to the BizTalk Secure Policy Properties dialog box.
Now you create an IP filter list between the BizTalk Server and the SQL Server. This rule is similar to the rule that you have just created, except that it is specific to the communications between BizTalk Server and SQL Server. Follow these steps to create the IP filter list between BizTalk Server and SQL Server.
To create the IP filter list between BizTalk Server and SQL Server
-
In the BizTalk Secure Policy Properties dialog box, click Add.
-
On the Welcome to the Create IP Security Rule Wizard page, click Next.
-
On the Tunnel Endpoint page, make sure that This rule does not specify a tunnel is selected, and then click Next.
-
On the Network Type page, select Local area network (LAN), and then click Next.
-
On the IP Filter List page, click Add.
-
In the IP Filter List dialog box, enter the name for the new IP filter list as BizTalk to SQL IP Filter List, enter the description as Permit BizTalk to talk to SQL securely, and then click Add.
-
On the Welcome to the IP Filter Wizard page, click Next.
-
On the IP Filter Description and Mirrored property page, enter BizTalk Servers to SQL Servers, and then click Next.
-
On the IP Traffic Source page, for Source address, select A specific IP Subnet, enter information as shown in the following figure, and then click Next.
Because this IP filter list is specific to communications between BizTalk Server and SQL Server, the IP subnet that you want is 192.168.10.128 to 192.168.10.191. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Traffic Destination page, for Destination address, select A specific IP Subnet, enter information as shown in the following figure, and then click Next.
The IP subnet that you want is 192.168.10.192 to 192.168.10.254. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Protocol Type page, select Any, and then click Next.
-
On the Completing the IP Filter Wizard page, clear the Edit properties check box, and then click Finish.
-
In the IP Filter List dialog box, click OK.
-
On the IP Filter List page in the Security Rule Wizard, select the filter list that you created (BizTalk to SQL IP Filter List), and then click Next.
-
On the Filter Action page, select Require Security, and then click Next.
-
On the Authentication Method page, select Active Directory default, and then click Next.
-
On the Completing the Security Rule Wizard page, clear the Edit properties check box, and then click Finish.
This returns you to the BizTalk Secure Policy Properties dialog box.
To make sure that only certain computers can communicate with other computers, you have to create filters that prevent some computers from communicating with others in the network. This ensures that if certain computers are penetrated, they cannot communicate with other computers that might contain sensitive information.
Now you create an IP filter list to block communication between the application and SQL Server. We added this security precaution because there is no valid reason for the application to communicate directly with SQL Server. This rule is similar to those you have already created. Follow these steps to create the IPsec rule to block communication between the application and SQL Server.
To create the IPsec rule to block communication between the application and SQL Server
-
In the BizTalk Secure Policy Properties dialog box, click Add.
-
On the Welcome to the Create IP Security Rule Wizard page, click Next.
-
On the Tunnel Endpoint page, make sure that This rule does not specify a tunnel is selected, and then click Next.
-
On the Network Type page, select Local area network (LAN), and then click Next.
-
On the IP Filter List page, click Add.
-
In the IP Filter List dialog box, enter the name and description for the filter list as shown in the following figure, and then click Add.
-
On the Welcome to the IP Filter Wizard page, click Next.
-
On the IP Filter Description and Mirrored property page, enter a description for the IP filter as shown in the following figure, and then click Next.
-
On the IP Traffic Source page, for Source address, select A specific IP Subnet, enter information as shown in the following figure, and then click Next.
Because this IP filter list is specific to communications between the application and SQL Servers, the IP subnet you want is 192.168.10.64 to 192.168.10.127. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Traffic Destination page, for Destination address, select A specific IP Subnet, enter information as shown in the following figure, and then click Next.
The IP subnet you want is 192.168.10.192 to 192.168.10.254. If you did not use the IP address range that was specified earlier, type the appropriate entries for your configuration.
-
On the IP Protocol Type page, select Any, and then click Next.
-
On the Completing the IP Filter Wizard page, clear the Edit properties check box, and then click Finish.
-
In the IP Filter List dialog box, click OK.
-
On the IP Filter List page in the Security Rule Wizard. Select the filter list that you created (Block App to SQL IP Filter List), and then click Next.
-
On the Filter Action page, click Add.
-
On the Welcome to the IP Security Filter Action Wizard page, click Next.
-
On the Filter Action Name page, enter the name and description of the filter action as shown in the following figure, and then click Next.
-
On the Filter Action General Option page, select Block, and then click Next.
-
On the Completing the IP Security Filter Action Wizard page, clear the Edit properties check box and then click Finish.
-
On the Filter Action page, select Block, and then click Next.
-
On the Completing the Security Role Wizard page, click Finish.
-
This brings you back to the BizTalk Security Policy dialog box. Click OK.
After you create the rules, you have to assign the policy so that you can use it. Follow these steps to complete the IPsec policy.
To complete the IPsec policy
-
In the Default Domain Security Settings screen, in the left pane, click IP Security Policies. The right pane displays the IPsec rules that you created.
-
In the right pane, right-click BizTalk Security Policy, and then click Assign. This activates the policy.
-
Restart the computers you used in the sample.