All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Dynamic IP address in a rule?
Date: Mon, 27 Apr 2009 13:57:37 +0200	[thread overview]
Message-ID: <49F59DB1.1060007@plouf.fr.eu.org> (raw)
In-Reply-To: <3e67fcb10904250512s67c79f70ref8af8655d33c8da@mail.gmail.com>

Hello,

Paddie O'Brien a écrit :
> 
> My IP is dynamically assigned and I want a rule like this one:
> 
> iptables -I INPUT 1 -d my_ip_address  -m state --state NEW -j ULOG

Why ? What do you want to achieve exactly ?

> Can a rule work out the IP address of its host?

What address ? A node may have more than one single address, and usually 
does : typically the loopback address range 127.0.0.0/8 and one or more 
addresses assigned to each "real" interface. If a packets arrives in the 
INPUT chain, it implies that its destination address is assigned to the 
node. Otherwise the packet is discarded if the node is a simple host, or 
sent in the FORWARD chain if the node is a router.

      parent reply	other threads:[~2009-04-27 11:57 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
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 [this message]

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=49F59DB1.1060007@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --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.