All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Petran <frank.petran@inpho.de>
To: netfilter@lists.netfilter.org
Subject: Re: How to filter packets resulting from hosts with dynamic IP-address
Date: Tue, 6 Feb 2007 16:52:24 +0100	[thread overview]
Message-ID: <200702061652.24892.frank.petran@inpho.de> (raw)
In-Reply-To: <45C896E7.3010105@riverviewtech.net>

Thank you for your reply.

On Tuesday 06 February 2007 15:55, Grant Taylor wrote:
> Use some sort of port knocking setup that will trigger some 
> process on your firewall 
Port knocking is in my opinion a little bit clumsy to use especially if the 
users involved are no experts and something goes wrong.

> Another option might be to look at writing some sort of user space
> daemon that you could have IPTables pass the packets to and return a yes
> / no to the kernel.
I suspected that. 

> However, this would be duplicating some of / a lot 
> of the effort that has gone in to IPTables and thus again sub optimal as
> far as development is concerned.
Well, hooking up to the ip_queue module using the QUEUE target does not seem 
to be a too bad idea. I can still use iptables mechanisms to send only 
packets destined for a special port to the queue target. All that needs to be 
done by the user space deamon is to do a hostname lookup for allowed 
hostnames, compare the looked up IP with the incoming IP and return 
true/false depending on the match.

I know, that this method will not be usefull in very busy routers since 
hostname lookups generate additional traffic and CPU load. Traffic and CPU 
load however is usually not a problem on typical small business or home 
setups on a DSL line with dynamic IP assignment.

Frank
-- 
INPHO GmbH   *   Smaragdweg 1   *   70174 Stuttgart   *   Germany
phone: +49 711 2288 10  *  fax: +49 711 2288 111  *  web: www.inpho.de
place of business: Stuttgart    *   managing director: Johannes Saile
commercial register: Stuttgart, HRB 9586



  reply	other threads:[~2007-02-06 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-06  9:42 How to filter packets resulting from hosts with dynamic IP-address Frank Petran
2007-02-06 14:55 ` Grant Taylor
2007-02-06 15:52   ` Frank Petran [this message]
2007-02-06 16:30     ` Grant Taylor
2007-02-06 15:31 ` Petr Pisar
2007-02-06 16:07   ` Frank Petran

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=200702061652.24892.frank.petran@inpho.de \
    --to=frank.petran@inpho.de \
    --cc=netfilter@lists.netfilter.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.