From: Alessandro Vesely <vesely@tana.it>
To: lartc@vger.kernel.org
Subject: Ingress traffic shape per IP
Date: Wed, 02 Oct 2013 17:34:21 +0000 [thread overview]
Message-ID: <524C591D.2000808@tana.it> (raw)
Hi all,
I'm intrigued by a recent thread with a similar subject on the
netfilter list [1]. Why is tc not recommended for ingress shaping?
I use a netfilter utility that queries a local DB and drops packets
according to a probability stored there. It works well for dictionary
attacks, as each login failure doubles the probability of being
blocked (which then decays slowly with time). However, that is less
suited for spammers, who I don't want to block completely for a long
period of time --in case they have some ham too.
Currently, I only nqueue new connections to that filter, as its random
blocking leaves something to be desired. I'd better send
spam-connections to a consistently slow tc class instead. The idea is
to mark new connections when they are accepted and have tc play its
magic afterwards. Can tc do that?
TIA for any suggestion
Ale
--
[1] http://www.spinics.net/lists/netfilter/msg54702.html
reply other threads:[~2013-10-02 17:34 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=524C591D.2000808@tana.it \
--to=vesely@tana.it \
--cc=lartc@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.