Ask the Expert

How can I close all user datagram protocol (UDP) ports on Windows 2000 Server?

How can I close all user datagram protocol (UDP) ports on Windows 2000 Server? I use IPSec, but the problem is that I am not able to ping my server. Please suggest me the best way to protect my server. (We require to open only the 20, 21, 80, 443, 1433, 3389 ports.)
IPSec does not provide a good tool to deny access to a range of ports and it can be confusing to set up right. However, you can deny access to all ports (not just UDP, but UDP and TCP if you'd like) and then specifically allow access to the ports that you want. To do this, you create a rule for your IPSec policy that covers all traffic, and make its filter action "Block." Then create a second rule for the same policy that specifies each of the protocols you wish to allow and a filter action of "Permit" for this rule. Since rules are parsed all together and the more specific rules win, those protocols you specifically identify in the second rule will be allowed, while all others will be blocked. Remember that an IPSec rule can only have one filter action, but an IPSec policy can have many rules. This is why you create two rules, one for each filter action. If you require any of the traffic to be encrypted, change the Permit filter action to Require Security -- then make sure policy settings are appropriately set. Don't forget to test your policy in a test environment. Here are some simple steps that will help you to build this policy.
  1. Pick a simple protocol, say Telnet, and test that it works between two machines.
  2. Then create a policy and rule one above that blocks everything, and make sure your previous test fails.
  3. Then create a second rule in the policy that allows Telnet and test to make sure it works.
  4. Finally, add filters to the second rule to allow the other protocols you need.
  5. Test everything thoroughly before you deploy.

This was first published in March 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: