All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Welte <laforge@gnumonks.org>
To: Rolf Wuerdemann <rowue@crew-kg.de>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: New Target: ipt_ACCOUNT
Date: Mon, 6 Jan 2003 14:24:22 +0100	[thread overview]
Message-ID: <20030106132422.GJ9467@sunbeam.de.gnumonks.org> (raw)
In-Reply-To: <200212161736.gBGHaPn01458@moonlight.crew-kg.de>

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

On Mon, Dec 16, 2002 at 06:36:22PM +0100, Rolf Wuerdemann wrote:
> Hi there ...

Hi, sorry for my late reply.

> we've developed a new target for iptables: ipt_ACCOUNT.
> This Target accounts Traffik on a packet-base on source and
> target ip using netfilter (similar to nacctd - but using iptables).
> 
> It's in use on our routers (app. 60MBit/s Bandwitdh) since three month
> (app.) without any trouble and was tested with some DDoS-Tools before
> use ;)

great news.  A couple of comments:

 I think this is the wrong approach, there are way too much data
strucctures in non-swappable kernel momory allocated.  And kernel-OOM is
not something we should provoke.  A better architecture from my point of
view was: - use ULOG to copy the IP+TCP header of all packets to
userspace [it is very efficient in doing so!!!] and then do all the
accounting in userspace

Leaving this personal view aside, I still dislike a couple of issues
with your patch

- It doesn't adhere to the kernel CodingStyle 
	- german variables
	- C++ style comments
	- more than 80chars per line
- the kernel/userspace interface using a socket option

So if you want to contribute it into patch-o-matic, you will have to
at least conform to the coding style, sorry.

> PS: We've developed it 'cause nacctd was 
> 	a) to much use of cpu
> 	b) looses packets during kernel-problems with PF_PACKET

I am (as a long time nacctd user and hacker) aware of those issues.  But
this doesn't mean that moving everything into the kernel is the right
thing..

-- 
- Harald Welte / laforge@gnumonks.org               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2003-01-06 13:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 17:36 New Target: ipt_ACCOUNT Rolf Wuerdemann
2003-01-06 13:24 ` Harald Welte [this message]
2003-01-06 17:22   ` Rolf Wuerdemann
2003-01-07 19:07     ` Harald Welte

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=20030106132422.GJ9467@sunbeam.de.gnumonks.org \
    --to=laforge@gnumonks.org \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=rowue@crew-kg.de \
    /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.