From: Stephen Samuel <samnospam@bcgreen.com>
To: Jens Knoell <jens@surefoot.com>
Cc: linux-admin@vger.kernel.org
Subject: Re: LOG target for rate-limiting on iptables not working...?
Date: Thu, 02 Mar 2006 16:55:17 -0800 [thread overview]
Message-ID: <440793F5.2060707@bcgreen.com> (raw)
In-Reply-To: <33006.10.0.0.113.1141342014.squirrel@webmail.surefoot.com>
I usually just have a rule like logreject:
$FW -I INPUT -p tcp --dport 110 -i eth0 -m state --state NEW -m recent
--update --seconds 60 --hitcount 5 -j LogReject1
# RULE: Logreject:
$FW -N LogReject1
$FW -I LogReject1 -j LOG --log-level warn --log-prefix "RLIMIT[POP3]:
$FW -I LogReject1 -j REJECT
Jens Knoell wrote:
>I've rate-limited the incoming connections to some ports. The rate
>limiting works, but it doesn't log to syslog... other non-rate-limiting
>rules where LOG targets exist work, so I know logging in principle works.
>What am I missing? No LOG target for this module? :)
>
>
>
>Rule:
>
># POP3 (max 5 per minute)
>
>$FW -I INPUT -p tcp --dport 110 -i eth0 -m state --state NEW -m recent
>--set
>
>$FW -I INPUT -p tcp --dport 110 -i eth0 -m state --state NEW -m recent
>--update --seconds 60 --hitcount 5 -j LOG --log-level warn --log-prefix
>"RLIMIT[POP3]: "
>
>$FW -I INPUT -p tcp --dport 110 -i eth0 -m state --state NEW -m recent
>--update --seconds 60 --hitcount 5 -j REJECT
>
>
>Also, is there any advantage to use DROP instead of REJECT? Just
>curious.
>
>
--
Stephen Samuel +1(604)450-0066 samnospam@bcgreen.com
http://www.bcgreen.com/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
next prev parent reply other threads:[~2006-03-03 0:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-02 23:26 LOG target for rate-limiting on iptables not working...? Jens Knoell
2006-03-03 0:55 ` Stephen Samuel [this message]
2006-03-03 3:12 ` Stephen Samuel
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=440793F5.2060707@bcgreen.com \
--to=samnospam@bcgreen.com \
--cc=jens@surefoot.com \
--cc=linux-admin@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 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.