From: "Gáspár Lajos" <swifty@freemail.hu>
To: dandee@hellteam.net
Cc: netfilter@vger.kernel.org
Subject: Re: logdrop rule does not work any more
Date: Fri, 16 May 2008 18:00:18 +0200 [thread overview]
Message-ID: <482DAF92.3050703@freemail.hu> (raw)
In-Reply-To: <482DAAE9.80708@hellteam.net>
Daniel Dvoøák írta:
> $ipt -P logdrop ACCEPT
Policy is not supported on non built-in chains...
>
> $ipt -F INPUT
> $ipt -F OUTPUT
See below..
> $ipt -F -t nat
> $ipt -F -t mangle
Okay...
> $ipt -F logdrop
>
Use this:
$ipt -F -t filter
$ipt -F -t raw
> $ipt -X logdrop
not needed...
> $ipt -N logdrop
> $ipt -A logdrop -j LOG --log-prefix "logdrop"
> $ipt -A logdrop -j DROP
> ...
> $ipt -t mangle -A POSTROUTING -p tcp --dport 25 -j logdrop ... for
> example
It is not a good idea to drop packets in other than the filter table...
But if you want to do that then declare the logdrop chain in the mangle
table !!!
$ipt -t mangle -N logdrop
$ipt -t mangle -A logdrop .....
Swifty
prev parent reply other threads:[~2008-05-16 16:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 15:40 logdrop rule does not work any more Daniel Dvořák
2008-05-16 16:00 ` Gáspár Lajos [this message]
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=482DAF92.3050703@freemail.hu \
--to=swifty@freemail.hu \
--cc=dandee@hellteam.net \
--cc=netfilter@vger.kernel.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