All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wan Seman Bin Wan Ismail <wswi@scan-associates.net>
To: hamals@infinito.it, netfilter@lists.netfilter.org
Subject: Re: how to log dropped packet
Date: Tue, 28 Sep 2004 18:28:12 +0800	[thread overview]
Message-ID: <41593CBC.9010009@scan-associates.net> (raw)
In-Reply-To: <web-6413785@infinito.it>

for example:-

Accept Rule:
iptables -A  block -p tcp --dport 80  -j LOG --log-level info 
--log-prefix "Allow 80 :"
iptables -A  block -p tcp --dport 80  -j ACCEPT

Drop Rule:
iptables -A  block -p tcp --dport 139  -j LOG --log-level info 
--log-prefix "Block 139 :"
iptables -A  block -p tcp --dport 139  -j DROP

so in conclusion, the first rule u must log then follow by accpet or 
drop :-)



hamals@infinito.it wrote:

>
> hello
>
> I wrote all my firewall rules, and now I would like to log all packet 
> that will be dropped by my policy rule..
>
> ..how can I do it?
>
> what kind of rules do I need?..and where have I to write them?
>
> thanks
> _______________________________________
> Connessione ed e-mail gratuita da 10 mb
> consultabile tramite web e tramite pop.
> www.infinito.it vieni a scoprire tutti i nostri servizi!
>
> http://www.infinito.it/xmail
>
>
>



  reply	other threads:[~2004-09-28 10:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 10:12 how to log dropped packet hamals
2004-09-28 10:28 ` Wan Seman Bin Wan Ismail [this message]
2004-09-28 11:50 ` Florian Boelstler
2004-09-28 15:37   ` Florian Boelstler
2004-09-28 15:30     ` Alistair Tonner
2004-09-29  9:19       ` Florian Boelstler
2004-09-28 14:09 ` Jason Opperisano
2004-09-28 14:21 ` Aleksandar Milivojevic
2004-09-28 14:30   ` Jose Maria Lopez
2004-09-28 14:27 ` Jose Maria Lopez

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=41593CBC.9010009@scan-associates.net \
    --to=wswi@scan-associates.net \
    --cc=hamals@infinito.it \
    --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.