Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michael Schwartzkopff <ms@sys4.de>
To: netfilter@vger.kernel.org
Subject: Re: Can IPTables check for a valid IP address
Date: Thu, 18 Sep 2014 17:31:16 +0200	[thread overview]
Message-ID: <1888551.XEiLyKG9NI@nb003> (raw)
In-Reply-To: <541AF628.8090509@sterenborg.org>

[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]

Am Donnerstag, 18. September 2014, 17:11:36 schrieb R. Sterenborg:
> On 09/18/2014 03:50 PM, Lars Dam wrote:
> > We suffer from DNS lookups with a response IP address which is not
> > existing.
> > 
> > Can Iptables check on this?
> 
> What is it you actually want iptables to do? Do you want it to check if
> the IP address that the DNS server responds with exists and is in use?
> Or..? Maybe the DNS server should be fixed instead of trying to go this way.
> 
> Iptables (well, Netfilter) is a packet filter. You can filter packets
> that match a rule that you define. It can't validate your DNS server's
> output

iptables cannot help you since the source IP address presumably varies. If the 
source address does not vary than iptables can help you.

Just google "iptables rate limit"


Anyway, it seems that you operate a open resolver on your server. Please 
google, why this is not a good idea. But if you really want to run a open 
resolver, than read the docs of your DNS server how to limit the request 
rates. For bind, see:

http://ss.vix.su/~vjs/rl-arm.html
 .



Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

  parent reply	other threads:[~2014-09-18 15:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 13:50 Can IPTables check for a valid IP address Lars Dam
2014-09-18 15:11 ` R. Sterenborg (lists)
2014-09-18 15:19   ` Lars Dam
2014-09-18 15:31   ` Michael Schwartzkopff [this message]
2014-09-18 15:53     ` FW: " Lars Dam
2014-09-18 16:29       ` Noel Kuntze
2014-09-18 17:48         ` Lars Dam

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=1888551.XEiLyKG9NI@nb003 \
    --to=ms@sys4.de \
    --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