All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Waldecir Loureiro dos Santos Filho" <waldecir.santos@centriabusiness.com.br>
To: netfilter@lists.netfilter.org
Subject: RE: filtering by packet contents?
Date: Wed, 16 Jul 2003 08:30:38 -0300	[thread overview]
Message-ID: <IIEKKHFJALFLMOPAIGGIAEFECAAA.waldecir.santos@centriabusiness.com.br> (raw)
In-Reply-To: <09B04A55822EFF4DA48D2E0BB2941D4A0192BF@wardrive.citadelcomputer.com.au>


i have a question, how can i measure the cpu load of my linux box with
iptables ?
i have a P200 but allways stay in 98% idle and i have a High traffic going
in.
i see high traffic with TCPDUMP. heehe

somebody know how ?


-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of George Vieira
Sent: quarta-feira, 16 de julho de 2003 03:43
To: Daniel Chemko
Cc: cc; netfilter@lists.netfilter.org
Subject: RE: filtering by packet contents?


Yes this is true but what you can do is this...

Patch in the "string" module as well as the "iplimit" module

Add a rule for "iplimit" to block already registered IPsfor xx seconds.
Then add a rule for SYN connections with that --string to add it's source to
the iplimit table.

Usually the code red attacks aren't spoofed (from memory) and are just
trying to get in.. so after the first attempt, the second/third/fourth will
be automatically dropped and won't be looked at by --string since iplimit
blocks before it... get it? this should not stress the CPU as much I don't
think...

dunno if that made sense or would fully work 100% but it's an idea I had for
other types of problems.. PSD is another one..

Thanks,
____________________________________________
George Vieira
Systems Manager
georgev@citadelcomputer.com.au

Citadel Computer Systems Pty Ltd
http://www.citadelcomputer.com.au

-----Original Message-----
From: Daniel Chemko [mailto:dchemko@smgtec.com]
Sent: Wednesday, July 16, 2003 4:23 PM
To: George Vieira
Cc: cc; netfilter@lists.netfilter.org
Subject: Re: filtering by packet contents?


George Vieira wrote:

>You can you use the p-o-m patch for the string module "-m string --string
pattern"
>
>this works and can be used for some funky stuff too like redirecting 1
virtual host on a server to another server which is very handy when a
particular virtual host goes down...
>
>
>

Just keep in mind that the string patch is VERY heavy on CPU depending
on how much traffic passes through the rule.




********Confidencialidade do Correio do Eletrônico***************
Informações confidenciais podem estar contidas nesta mensagem. Se você não
se encontra na lista de destinatários ou não é o remetente da mesma, você
não deve copiar ou enviar esta mensagem para ninguém. Neste caso, você deve
destruir e notificar o remetente da mesma. A empresa considera opiniões,
conclusões e outras informações que não se relacionam com o negócio oficial
da corporação de responsabilidade do usuário do serviço.




  reply	other threads:[~2003-07-16 11:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16  6:43 filtering by packet contents? George Vieira
2003-07-16 11:30 ` Waldecir Loureiro dos Santos Filho [this message]
2003-07-16 13:34 ` Waldecir Loureiro dos Santos Filho
  -- strict thread matches above, loose matches on Subject: below --
2003-07-16  5:51 George Vieira
2003-07-16  6:22 ` Daniel Chemko
2003-07-16  4:47 cc

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=IIEKKHFJALFLMOPAIGGIAEFECAAA.waldecir.santos@centriabusiness.com.br \
    --to=waldecir.santos@centriabusiness.com.br \
    --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.