How to Block TCP/UDP Ports using IPsec in Windows Uma Mahesh.G Senior QA Engineer gunipati81@gmail.

com

Microsoft Management Console Creating IP Security Policy Creating an IPSec Filter List Managing Filter Actions Creating IP Security Rule Wizard Assigning the Policy

1.

Microsoft Management Console

1. Start > Run > Type “MMC ( Microsoft Management Console )” 2. Go to File Menu and select Add/Remove Snap-in 3. Select Add “IP Security Policy Management“snap- in and select your local computer

2.

Creating IP Security Policy

Blocking TCP/UDP Ports using IPsec in Windows

-1-

Created by Uma Mahesh

1. Select IP Security Policies on Local Computer and select Action menu to create a IP 2. 3. 4. 6.
Security policy for your local computer After Getting IP Security Policy Wizard, click Next Give the name of the IP Security Policy : “Blocking TCP and UDP Ports” , click Next In the Requests for Secure communication , click Next 5. Default Response Rule Authentication Method, select Active Directory Default, Click Next and Select “Yes” In the completing the IP Security Policy Wizard, Click Finish. Creating an IPSec Filter List

Blocking TCP/UDP Ports using IPsec in Windows

-2-

Created by Uma Mahesh

1. Select IP Security Policies on Local Computer and select Action menu to Manage IP 2. 3. 4.
5. filter lists and filter actions for your local computer Select Mange IP Filter Lists Tab and select “All IP Traffic”, click Add button Give the name of the Filter “Filter”, click Add button In the “IP Filter Wizard”, click Next Give the IP filter description in the description wizard, Click Next Specify the Source Address: “Any IP Address” for the IP Traffic, click Next Specify the Destination Address: “My IP Address” for the IP Traffic, click Next Select the IP Protocol Type: TCP or UDP, click Next 9. Select the IP Protocol port: From Any port - To this port: 139, click next and finish the IPSec Filter List wizard.

6. 7. 8.

Managing Filter Actions

Blocking TCP/UDP Ports using IPsec in Windows

-3-

Created by Uma Mahesh

1.
2. Next

Select Mange Filter Actions from the Manage IP filter lists and filter actions wizard. Click Add button to create Filter Action and in the IP Security Filter Action Wizard, click Give the name of the Filter Action : “Block” , click Next Select Block option from the filter action general options, click Next Select Finish button to complete the wizard.

3. 4.
5.

Blocking TCP/UDP Ports using IPsec in Windows

-4-

Created by Uma Mahesh

Creating IP Security Rule Wizard

1. Select the created IP Security Policy : “Blocking TCP and UDP Ports” and Select “Properties” In the Blocking ports properties window , click Add to create a rule In the Create IP Security Rule Wizard, click Next In the Tunnel End point , click Next Select Network Type : “All Network Connections” and click Next Select IP Filter List as “ Created Filter : Filter”, click next Select the Filter Action as “Created Filter Action : Block”, click Next Select Finish button to complete the wizard. Assigning the Policy Select the created Policy: Blocking TCP and UDP Ports do Right Click and select assign to assign the policy.

Blocking TCP/UDP Ports using IPsec in Windows

-5-

Created by Uma Mahesh

Sign up to vote on this title
UsefulNot useful