Home > Ask the Security Experts > Network Security Questions & Answers > Will iptables screen UDP traffic?
Ask The Security Expert: Questions & Answers
EMAIL THIS

Will iptables screen UDP traffic?

Mike Chapple EXPERT RESPONSE FROM: Mike Chapple

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: 23 August 2007
It seems that UDP traffic can't be screened for stateful inspection in my stateful-inspection firewall. Will a session in iptables produce the same results?

>
EXPERT RESPONSE
You're correct; UDP traffic can't be screened using strict stateful inspection. That's because UDP is a connectionless protocol and doesn't maintain session state. The protocol is much different than TCP, which uses a three-way handshake to set up and tear down connections.

However, most modern firewalls, including iptables, treat UDP in the same manner as a connection-oriented protocol. If you create a rule allowing UDP traffic in one direction, the firewall will allow associated return traffic.

Let's consider an example. Suppose you decided to allow outbound DNS traffic on UDP port 53. In its state table, the firewall will track any requests that match the rule, and the DNS server's UDP response is then allowed to reach the client.

Without a three-way handshake, however, the firewall doesn't know when to remove the entry from its state table. To accommodate this situation, firewalls usually use a timer that allows return traffic to pass until the connection is inactive for a specified period of time, which is normally a few minutes. Once the firewall reaches that inactivity threshold, it discards the entry from the state table.

More information:

  • Find out how extrusion detection and prevention products inspect network traffic and keep confidential information within the enterprise.
  • Learn how DNS amplification attackers use UDP packets to flood their victims.


  • 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
    Network Security
    Will Cisco's plan to open access to the IOS improve network security?
    Will VoIP attacks result in more than just spam?
    Should enterprises implement a mandatory iPhone VPN?
    Will organizations that lag behind on IPv6 adoption have greater security risks?
    Should iPhone email be sent without SSL encryption?
    How to secure an FTP connection
    DMVPN configuration: Is an additional firewall needed between the router and the Internet?
    Is centralized logging worth all the effort?
    What are the pros and cons of shaping P2P packets?
    Should an ISP keep corrupted machines off of a network?

    TCP/IP
    Are open recursive DNS servers inherently insecure?
    How to protect DNS servers
    What to consider before opening a port
    What is the relationship between open port range and overall security risk?
    Troubleshooting proxy firewall connections
    Admins run into trouble with Microsoft updates
    Microsoft to release DNS patch Tuesday
    Database security undermined by protocol loopholes, lax defenses
    'Worm' targets Sun Solaris Telnet flaw
    Can a TCP connection be made without an open port?

    Network Firewalls
    Is it possible to allow select access to IP addresses using Windows Server 2003?
    Sophos finds patching issues through endpoint NAC tool
    Fortinet acquires database vulnerability scanner from IPLocks
    Is an IPsec VPN necessary when connecting remote servers that process financial transactions?
    Embedding security has drawbacks says TippingPoint chief architect
    Is security improved when the number of Internet gateways is reduced?
    Nipper audits routers, reveals insecure settings
    Product review: Netgear's Netgear FVS336G ProSafe Dual WAN Gigabit Firewall
    Product review: Tufin's Tufin SecureTrack 4.1
    Product review: SonicWALL's SonicWALL NSA E5500

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    digest authentication  (SearchSecurity.com)
    IGP  (SearchSecurity.com)
    IP spoofing  (SearchSecurity.com)
    Secure Sockets Layer  (SearchSecurity.com)
    smurfing  (SearchSecurity.com)
    Transport Layer Security  (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