Home > Ask the Security Experts > Application Security Questions & Answers > What ports should be opened and closed when IPsec filters are used?
Ask The Security Expert: Questions & Answers
EMAIL THIS

What ports should be opened and closed when IPsec filters are used?

Michael Cobb, featured expert EXPERT RESPONSE FROM: Michael Cobb, featured expert

Pose a Question
Other Security Categories
Meet all Security Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 13 December 2007
We are using a leased line to connect with branch offices. The branches' applications and services are terminal ones, Microsoft Outlook and print services. We want to set up IPsec filters for the branches so that they connect with the head office. Note that the setup is centralized, so there are no servers at the branches. How should we determine which ports should be opened or remain closed? What are some common mistakes that can be made during this type of evaluation?


BROWSE BY TAG
Application Security,   Application and Platform Security,   Securing Productivity Applications,   IPsec VPN Security,   Secure VPN Setup and Configuration,   Enterprise Network Security,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Application Security
Are Web application penetration tests still important?
What does 'invoked by uid 78' mean?
How secure are iPhone App Store mobile applications?
What security software should be installed on Internet café computers?
Are message stubs a secure part of email retention policies?
How does a Web server model differ from an application server model?
Can Google Earth and other mash-up applications threaten enterprise security?
Do European laws prevent a U.S. company from blocking spam?
Can one antivirus program be used to get rid of spyware?
How to prevent cross-site scripting (XSS) session hijacking

Securing Productivity Applications
Adobe fixes critical Shockwave Flash Player flaw
Adobe issues first quarterly patch release fixing 13 flaws
Adobe shifts to Microsoft patching process, incident response plan
Balancing security and performance: Protecting layer 7 on the network
Software Piracy pandemic needs government role, better vendor antipiracy plans
McAfee to acquire Solidcore Systems for whitelisting
Adobe issues Reader update fixing zero-day flaw
Microsoft to patch critical PowerPoint zero-day flaw
PCI DSS: Best practices for compliance
Adobe working on patch to correct new zero-day flaw

IPsec VPN Security
What is the difference between a VPN and remote control?
Can S/MIME, XML and IPsec operate in one protocol layer?
How to create a secure network through a shared Internet connection
What firewall controls should be placed on the VPN?
VoIP tools, attacks could increase threat
Best practices for processing financial data through remote servers
DMVPN configuration: Should a firewall be between router and Internet?
How would you meet PCI requirement 2.3 when it comes to terminal service or RDP sessions?
How should the ipseccmd.exe tool be used in Windows Vista?
Can Trojans and other malware exploit split-tunnel VPNs?
IPsec VPN Security Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
sheepdip  (SearchSecurity.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


Internet Protocol Security (IPsec) is a great protocol because it provides packet-level integrity, authentication and encryption. When correctly implemented, it can be a powerful and versatile part of a network's defenses.

IPsec also makes it possible to define who can use the services running on a server. So, for example, IPsec can be set to encrypt all Terminal Services traffic and check that each packet comes from authorized client computers and has not been modified in transit. To set up IPsec filters between your head office and branch network, you ideally need to test and validate them on a non-production server and workstation. Doing so ensures that the correct users can access the right services and that you haven't accidentally denied a service to an authorized user.

Although your application documentation should provide details of the ports and protocols they each use, it will still require careful testing to ensure all services can function correctly. For example, if a firewall separates your server and workstations, the firewall must have TCP ports 50 and 51 and UDP port 500 open to allow various IPsec and IKE (Internet Key Exchange) traffic through.

Another advantage of IPsec is that it enables a rule to be modified to only allow access from specific IP addresses. After all the desired protocols and ports used by your server's listening services have been selected and filtered, define the network's hosts or subnets that you want to allow them to connect to. Finally, create one last filter to deny all traffic that is not specifically allowed.

To test the filters, simply try to access your head office services from both the allowed subnets and the places where connections should be denied. To check that connections between branch office workstations and your main office servers are actually being encrypted, use the Windows IPsec monitoring tool, Ipsecmon.exe.

Start a connection from a client machine to the server and check that Ipsecmon.exe shows a connection in its monitoring window. The status indicator should show that IP security is enabled on the computer. If it does not, make sure the policy is assigned in the Group Policy Editor.

One definite improvement in Vista is the integration of firewall-filtering functions and IPsec protection settings. The capabilities make it far less likely that you will set up firewall filters that conflict with your IPsec policies. It's now possible to confirm, add, modify and delete firewall rules using a single snap-in called Windows Firewall with Advanced Security.

Finally, implement a defense-in-depth security model to protect the network. IP security filters should be just one aspect of an overarching defense. After all, they are only packet filters; they cannot prevent denial-of-service attacks or protect against an application exploit to a service that a filter allows.

More information:

  • Learn how to use the ipseccmd.exe monitoring tool in Windows Vista.
  • Mike Chapple explores the security risks of IPsec tunnels.




  • Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice



    Find Security Solutions for Your Business
    Targeted Security Channel Tips for Resellers, Integrators and Consultants
    TechTarget Security Media
    Information Security View this month\\'s issue and subscribe today.
    Information Security Decisions Apply online for free conference admission.
    SearchSecurity.com
    HomeNewsMagazineMultimediaWhite PapersLearningAdviceTopicsEventsAbout Us

    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts