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

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

Michael Cobb EXPERT RESPONSE FROM: Michael Cobb

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?

>
EXPERT RESPONSE
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.


  • Sound Off! -   Be the first to post a message to Sound Off!


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


    RELATED CONTENT
    Application Security
    Protecting exposed servers from Google hacks (and Google 'dorks')
    Which automated quality assurance tools can be used to test software?
    Has proof-of-concept mobile device malware translated into any meaningful attacks?
    How to test the security of personal details submitted to a website
    Is security improved when the number of Internet gateways is reduced?
    Are Internet cafe users' email credentials at risk?
    Which operating system can best secure an FTP site?
    Will firewall technology have to adapt to applications that use port 80?
    How secure is a mobile phone platform that has an open source framework?
    How secure is online banking today?

    Securing Productivity Applications
    Using Nessus Attack Scripting Language (NASL) to find application vulnerabilities
    Startup Symplified delivers SSO in the cloud
    Protecting exposed servers from Google hacks (and Google 'dorks')
    Apple updates QuickTime to plug dangerous flaw
    Which automated quality assurance tools can be used to test software?
    Product review: Mu-4000 Security Analyzer
    Product review: Klocwork Insight 8.0
    PCI compliance and Web applications: Code review or firewalls?
    7 Security Questions to Ask Your SaaS Provider
    Reasearch on Coding Backdoors Presents Ugly Picture

    IPSec
    Is an IPsec VPN necessary when connecting remote servers that process financial transactions?
    DMVPN configuration: Is an additional firewall needed between the router and the Internet?
    How should the ipseccmd.exe tool be used in Windows Vista?
    Can Trojans and other malware exploit split-tunnel VPNs to infiltrate a network?
    IPsec tunneling: Exploring the security risks
    Should an IT staff be concerned with a network's physical security?
    How expensive are IPsec VPN setup costs?
    Do split-tunneling features make a VPN vulnerable?
    Will securing a wireless LAN make the data link layer vulnerable?
    When Microsoft Vista and VPNs don't mix
    IPSec 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



    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

    TechTarget Security Media
    Information Security View this month\\'s issue and subscribe today.
    Information Security Decisions Apply online for free conference admission.
    SearchSecurity.com
    HomeNewsMagazineWebcastsWhite PapersLearningAdviceTopicsEventsAbout Us

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

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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