Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Michael <mutk@ozemail.com.au>
To: netfilter@lists.samba.org
Subject: Re: How to ACCEPT or DENY or DROP and also LOG in the same rule ?
Date: Thu, 04 Jul 2002 15:53:21 +1000	[thread overview]
Message-ID: <3D23E2D1.3070802@ozemail.com.au> (raw)
In-Reply-To: F30rd6vbwbQdgr1KHCE00006f06@hotmail.com

I don't beleive you can.

Just do a rule pair:

<somerule to match> -j LOG
<somerule to match> -j ACCEPT

I think that, since LOG doesn't cause the packet to leave the table 
(ACCEPT and DROP do), it will continue traversal of the table until a 
match/target that does cause it to leave the table is found. So the 
matching DROP or ACCEPT rule will then dispose the packet as you wish 
after it was logged.

Cheers,
Michael


Orca J. wrote:

> Hi
>  I want to both DENY and LOG in the same rule ? or ACCEPT and LOG , or 
> DENY and LOG
> Thanks
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
>
>
>





  reply	other threads:[~2002-07-04  5:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-04  4:31 How to ACCEPT or DENY or DROP and also LOG in the same rule ? Orca J.
2002-07-04  5:53 ` Michael [this message]
2002-07-04  7:50 ` Antony Stone
2002-07-04 14:54   ` Ed Street
2002-07-04 15:00     ` Antony Stone
2002-07-04 15:04       ` Ed Street
2002-07-04 15:18       ` Leonardo Rodrigues
  -- strict thread matches above, loose matches on Subject: below --
2002-07-04  4:56 George Vieira

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=3D23E2D1.3070802@ozemail.com.au \
    --to=mutk@ozemail.com.au \
    --cc=netfilter@lists.samba.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