From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: connlimit against flashget
Date: Mon, 31 Jan 2005 11:08:05 -0500 [thread overview]
Message-ID: <20050131160805.GA24888@bender.817west.com> (raw)
In-Reply-To: <87vf9fz31o.fsf@c3po.zlatenlist.net>
On Sun, Jan 30, 2005 at 11:20:19AM +0200, Kamen TOMOV wrote:
> Hi,
>
> I am running a small LAN and my Internet provider has limited the
> number of my outgoing web connections. My clients use programs like
> Flashget that spawn multiple connections to the server when
> downloading big files from web sites and it is very likely that the
> limit will be reached.
>
> That is why I would like to ask you if it is a good idea to use the
> connlimit match with iptables to restrict the number of parallel TCP
> connections to a server per client IP address.
>
> I plan to do something like that:
>
> iptables -p tcp --syn --dport 80 --dst www.warez.net -m connlimit \
> --connlimit-above 2 -j REJECT
just as an FYI--that rule does not limit the "number of parallel TCP
connections to a server per client IP address." it limits the total
number of connections to that destination to 2, regardless of client IP
address.
someone more adept with the connlimit match will hopefully jump in and
correct me, but i *believe* if you want your limit to be 2 connections
per host IP, you would use:
iptables -p tcp --syn --dport 80 --dst www.warez.net -m connlimit \
--connlimit-above 2 --connlimit-mask 32 -j REJECT
-j
--
"Be careful when we capture him! We cannot claim the reward unless
we have 51% of the carcass"
--The Simpsons
next prev parent reply other threads:[~2005-01-31 16:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 9:20 connlimit against flashget Kamen TOMOV
2005-01-30 16:32 ` xa
2005-01-30 16:54 ` Kamen TOMOV
2005-01-31 16:08 ` Jason Opperisano [this message]
2005-01-31 23:31 ` Jason Opperisano
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=20050131160805.GA24888@bender.817west.com \
--to=opie@817west.com \
--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.