Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "David Doster" <DGD@reinhardt.edu>
To: netfilter@vger.kernel.org
Subject: IP Tables and DNS
Date: Thu, 11 Sep 2008 14:09:10 -0400	[thread overview]
Message-ID: <s8c926a0.083@newborder.reinhardt.edu> (raw)

Hi folks,

I'm putting together a recursive DNS resolver for my internal clients.  The resolver has both an internal and an external interface, so it doesn't have to send the outgoing DNS queries through the firewall.  I'm working on the IPTables rules for the external interface, and had a question come up that I wasn't sure about.

Does netfilter/iptables keep up with "connections" in UDP, even though UDP is connectionless?  ie - How does it assure that it only accepts responses from the IP that it sent the query to?  I saw a posting from Jan back about 3 years ago that said that as long as the response came back within ~30 seconds then netfilter would allow the response in.  Is that still the case?  If so, do I need any rules on the external interface other than the rules to allow the outgoing query (tcp and udp) and an "established,related" rule?

Thanks for any help,
Dave Doster



             reply	other threads:[~2008-09-11 18:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 18:09 David Doster [this message]
2008-09-11 18:53 ` IP Tables and DNS Andrew Schulman
2008-09-12  7:42   ` Vladislav Kurz
2008-09-12 14:13     ` Andrew Schulman
  -- strict thread matches above, loose matches on Subject: below --
2008-09-11 22:02 David Doster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s8c926a0.083@newborder.reinhardt.edu \
    --to=dgd@reinhardt.edu \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox