All of lore.kernel.org
 help / color / mirror / Atom feed
From: <lists@sterenborg.info>
To: Netfilter <netfilter@vger.kernel.org>
Subject: RE: Dynamic IP address in a rule?
Date: Mon, 27 Apr 2009 08:41:20 +0200	[thread overview]
Message-ID: <000001c9c703$2d3cabf0$87b603d0$@info> (raw)
In-Reply-To: <3678.87.196.49.84.1240774988.squirrel@webmail.decimal.pt>

> That's a nice question, instead of the dynamic IP on the rule,
> having a dynamic host on it like:
> 
> Iptables -I INPUT -I eth0 -d myhost.dyndns.org -p tcp --dport 80 -j
> ACCEPT
> 
> When this run's, the rule will stay with the IP address that was
> grabbed from the dynamic host, and when the IP changes, the rule
> won't work anymore.
> My question is, there's no way to make iptables to check always the
> host instead of translation the host do IP on the rule apply stage?

If iptables would have to perform a DNS lookup everytime a packet
passes, I think it would be terribly slow and probably not usable for
packetfiltering.


Grts,
Rob



  parent reply	other threads:[~2009-04-27  6:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-25 12:12 Dynamic IP address in a rule? Paddie O'Brien
2009-04-26 19:43 ` Jorge Bastos
2009-04-26 22:38   ` Bruno Moreira Guedes
2009-04-27  8:30     ` Jorge Bastos
2009-04-27  8:52       ` Daniel Huhardeaux
2009-04-27  8:56         ` Jorge Bastos
2009-04-27 11:48       ` Pascal Hambourg
2009-04-27  6:41   ` lists [this message]
2009-04-27  6:46     ` Ivan Petrushev
2009-04-27  6:56       ` lists
2009-04-27  7:08         ` Ivan Petrushev
2009-04-27 13:23     ` Bruno Moreira Guedes
2009-04-27 11:57 ` Pascal Hambourg

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='000001c9c703$2d3cabf0$87b603d0$@info' \
    --to=lists@sterenborg.info \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.