Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Emilio Casbas <ecasbas@unav.es>
To: netfilter@lists.netfilter.org
Subject: no log various hosts
Date: Thu, 09 Oct 2003 13:19:59 +0200	[thread overview]
Message-ID: <3F85445F.8090307@unav.es> (raw)

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

I'm trying add a iptables rules and not to log various hosts of the form:

        $IPTABLES -A INPUT -p tcp --src ! 127.0.0.1/32  -m limit --limit 
100/minute -j LOG --log-level debug
        $IPTABLES -A INPUT -p tcp --src ! myred/24  -m limit --limit 
100/minute -j LOG --log-level debug

and I see with iptables -vnL this

134  121K LOG        tcp  --  *      *      !127.0.0.1/32            
0.0.0.0/0          limit: avg 100/min burst 5 LOG flags 0 level 7
   87  7268 LOG        tcp  --  *      *      !myred/24                 
0.0.0.0/0          limit: avg 100/min burst 5 LOG flags 0 level 7

but it continue logging 127.0.0.0 and all myred,

however, if i have only a rule:

    $IPTABLES -A INPUT -p tcp --src ! myred/24  -m limit --limit 
100/minute -j LOG --log-level debug

works fine!,

How I can to put two o more hosts in a rule for not log ?


Thanks.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3958 bytes --]

                 reply	other threads:[~2003-10-09 11:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3F85445F.8090307@unav.es \
    --to=ecasbas@unav.es \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox