All of lore.kernel.org
 help / color / mirror / Atom feed
* Connlimit
@ 2004-02-25 14:33 Michał Margula
  2004-02-25 22:01 ` Connlimit Michał Margula
  0 siblings, 1 reply; 17+ messages in thread
From: Michał Margula @ 2004-02-25 14:33 UTC (permalink / raw)
  To: netfilter-devel

Hello!

	Using latest patch-o-matic and 2.4.25 i have following problem when 'make 
modules':

ipt_connlimit.c: In function `init':
ipt_connlimit.c:219: `ip_conntrack_module' undeclared (first use in this 
function)
ipt_connlimit.c:219: (Each undeclared identifier is reported only once
ipt_connlimit.c:219: for each function it appears in.)
ipt_connlimit.c:220: warning: value computed is not used
ipt_connlimit.c: In function `fini':
ipt_connlimit.c:227: `ip_conntrack_module' undeclared (first use in this 
function)
ipt_connlimit.c:228: warning: value computed is not used
make[2]: *** [ipt_connlimit.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.25/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.25/net'
make: *** [_mod_net] Error 2

It is caused when I choose connlimit as a module. Whats wrong?

-- 
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Connlimit
  2004-02-25 14:33 Connlimit Michał Margula
@ 2004-02-25 22:01 ` Michał Margula
  0 siblings, 0 replies; 17+ messages in thread
From: Michał Margula @ 2004-02-25 22:01 UTC (permalink / raw)
  To: netfilter-devel

Dnia śro 25. lutego 2004 15:33, Michał Margula napisał:
> It is caused when I choose connlimit as a module. Whats wrong?

Using p-o-m-ng solved that issue.

-- 
Michał Margula, alchemyx@uznam.net.pl, http://alchemyx.uznam.net.pl/
"W życiu piękne są tylko chwile" [Ryszard Riedel]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* CONNLIMIT
@ 2005-03-30 16:35 Luiz C. Spies
  0 siblings, 0 replies; 17+ messages in thread
From: Luiz C. Spies @ 2005-03-30 16:35 UTC (permalink / raw)
  To: netfilter

Hi to all, i try many time limit my port 25 to 2 connection, but i have no
achieve success yet!!!

I tried this rulez!
iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
2 --connlimit-mask 32 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
2 -j REJECT
iptables -p tcp --syn --dport 25 -m connlimit --connlimit-above 2 -j REJECT
iptables -p tcp --syn --dport 25 -m connlimit ! --connlimit-above 2 -j
ACCEPT

Anyone has idea!!!???


Greeting's to all!

PS: Sorry about my english!


Luiz C. Spies

-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* CONNLIMIT
@ 2005-04-06 20:50 Luiz C. Spies
  2005-04-07  9:29 ` CONNLIMIT Rio Martin.
  0 siblings, 1 reply; 17+ messages in thread
From: Luiz C. Spies @ 2005-04-06 20:50 UTC (permalink / raw)
  To: netfilter

Hi to all, i try many time limit my port 25 to 2 connection, but i have no
achieve success yet!!!

I tried this rulez!
iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
2 --connlimit-mask 32 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
2 -j REJECT
iptables -p tcp --syn --dport 25 -m connlimit --connlimit-above 2 -j REJECT
iptables -p tcp --syn --dport 25 -m connlimit ! --connlimit-above 2 -j
ACCEPT

Anyone has idea!!!???


Greeting's to all!

PS: Sorry about my english!


Luiz C. Spies

-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: CONNLIMIT
  2005-04-06 20:50 CONNLIMIT Luiz C. Spies
@ 2005-04-07  9:29 ` Rio Martin.
  0 siblings, 0 replies; 17+ messages in thread
From: Rio Martin. @ 2005-04-07  9:29 UTC (permalink / raw)
  To: netfilter

Try using -j DROP instead of -j REJECT
And the last rule seemed to ACCEPT all of those rules you ve applied before.
Remove it.

Regards,
Rio Martin.
---------------------------------------------------------
Network & System Engineer
Network Operation Center
INSTITUT TEKNOLOGI NASIONAL 
Email: rio@martin.mu
Website: http://www.itenas.ac.id
---------------------------------------------------------

On Wednesday 06 April 2005 20:50, Luiz C. Spies wrote:
> Hi to all, i try many time limit my port 25 to 2 connection, but i have no
> achieve success yet!!!
>
> I tried this rulez!
> iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
> 2 --connlimit-mask 32 -j REJECT --reject-with tcp-reset
> iptables -A INPUT -p tcp --syn --dport 25 -m connlimit --connlimit-above
> 2 -j REJECT
> iptables -p tcp --syn --dport 25 -m connlimit --connlimit-above 2 -j REJECT
> iptables -p tcp --syn --dport 25 -m connlimit ! --connlimit-above 2 -j
> ACCEPT
>
> Anyone has idea!!!???
>
>
> Greeting's to all!
>
> PS: Sorry about my english!
>
>
> Luiz C. Spies


^ permalink raw reply	[flat|nested] 17+ messages in thread

* connlimit
@ 2006-08-13 23:14 php0t
  2006-08-13 23:40 ` connlimit Phil Oester
  2006-08-14 12:54 ` connlimit Patrick McHardy
  0 siblings, 2 replies; 17+ messages in thread
From: php0t @ 2006-08-13 23:14 UTC (permalink / raw)
  To: netfilter-devel; +Cc: ole


  Dear developers,

I've had a nice time trying to limit connections. The kernel is
2.6.17.8.
Apart from the first couple of annoyances (such as the patch being
renamed from iplimit to connlimit, patch-o-matic not being able to apply
it to the current kernel etc), I've managed to patch manually, compile
it as a module and load it.

  However, when I try to add an according test rule, I get the 'Invalid
argument' error, and dmesg says:
ip_tables: connlimit match: invalid size 0 != 16

I also tried going to the site mentioned in the latest pom-ng's
source.list:

# ipp2p, time, IPMARK and connlimit maintained by Krzysztof Oledzki
<ole@ans.pl>
http://people.netfilter.org/ole/pom/

But all I get is a smiley :)

When I google for my current problem, most suggest that connlimit is
out-of-date, nobody cares about it any more, etc.

As I'm no C coder, my two questions are,
1) what could I do  to make this work ? Are there any similar modules
available that are stable?
2) could it be possible to stabilize this patch and have it added to the
kernel source? There are so many iptables extensions and modules by
default that are probably rarely used, why is this (IMHO very basic)
feature excluded?

  Thanks for reading and any replies
P.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2006-08-13 23:14 connlimit php0t
@ 2006-08-13 23:40 ` Phil Oester
  2006-08-14 12:54 ` connlimit Patrick McHardy
  1 sibling, 0 replies; 17+ messages in thread
From: Phil Oester @ 2006-08-13 23:40 UTC (permalink / raw)
  To: php0t; +Cc: netfilter-devel, ole

On Mon, Aug 14, 2006 at 01:14:20AM +0200, php0t wrote:
> 
>   Dear developers,
> 
> I've had a nice time trying to limit connections. The kernel is
> 2.6.17.8.
> Apart from the first couple of annoyances (such as the patch being
> renamed from iplimit to connlimit, patch-o-matic not being able to apply
> it to the current kernel etc), I've managed to patch manually, compile
> it as a module and load it.
> 
>   However, when I try to add an according test rule, I get the 'Invalid
> argument' error, and dmesg says:
> ip_tables: connlimit match: invalid size 0 != 16

See this thread:

http://marc.theaimsgroup.com/?l=netfilter-devel&m=115334461228009&w=2

> When I google for my current problem, most suggest that connlimit is
> out-of-date, nobody cares about it any more, etc.

Next time try searching the netfilter archives directly.

Phil

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2006-08-13 23:14 connlimit php0t
  2006-08-13 23:40 ` connlimit Phil Oester
@ 2006-08-14 12:54 ` Patrick McHardy
  2006-08-14 18:18   ` connlimit Krzysztof Oledzki
  1 sibling, 1 reply; 17+ messages in thread
From: Patrick McHardy @ 2006-08-14 12:54 UTC (permalink / raw)
  To: php0t; +Cc: netfilter-devel, ole

php0t wrote:
>   Dear developers,
> 
> I've had a nice time trying to limit connections. The kernel is
> 2.6.17.8.
> Apart from the first couple of annoyances (such as the patch being
> renamed from iplimit to connlimit, patch-o-matic not being able to apply
> it to the current kernel etc), I've managed to patch manually, compile
> it as a module and load it.
> 
>   However, when I try to add an according test rule, I get the 'Invalid
> argument' error, and dmesg says:
> ip_tables: connlimit match: invalid size 0 != 16
> 
> I also tried going to the site mentioned in the latest pom-ng's
> source.list:
> 
> # ipp2p, time, IPMARK and connlimit maintained by Krzysztof Oledzki
> <ole@ans.pl>
> http://people.netfilter.org/ole/pom/
> 
> But all I get is a smiley :)

Just do what it says: "Please use "./runme --download" from a recent
pom-ng." :)

That will download the patches for you.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2006-08-14 12:54 ` connlimit Patrick McHardy
@ 2006-08-14 18:18   ` Krzysztof Oledzki
  0 siblings, 0 replies; 17+ messages in thread
From: Krzysztof Oledzki @ 2006-08-14 18:18 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netfilter-devel, php0t

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1161 bytes --]



On Mon, 14 Aug 2006, Patrick McHardy wrote:

> php0t wrote:
>>   Dear developers,
>>
>> I've had a nice time trying to limit connections. The kernel is
>> 2.6.17.8.
>> Apart from the first couple of annoyances (such as the patch being
>> renamed from iplimit to connlimit, patch-o-matic not being able to apply
>> it to the current kernel etc), I've managed to patch manually, compile
>> it as a module and load it.
>>
>>   However, when I try to add an according test rule, I get the 'Invalid
>> argument' error, and dmesg says:
>> ip_tables: connlimit match: invalid size 0 != 16
>>
>> I also tried going to the site mentioned in the latest pom-ng's
>> source.list:
>>
>> # ipp2p, time, IPMARK and connlimit maintained by Krzysztof Oledzki
>> <ole@ans.pl>
>> http://people.netfilter.org/ole/pom/
>>
>> But all I get is a smiley :)
>
> Just do what it says: "Please use "./runme --download" from a recent
> pom-ng." :)
>
> That will download the patches for you.

This is the new message which I placed few hours ago, after the first 
mail. Now everyone should know what to do. :)

Best regards,


 				Krzysztof Olędzki

^ permalink raw reply	[flat|nested] 17+ messages in thread

* connlimit
@ 2007-01-10 12:01 Martin Schiøtz
  0 siblings, 0 replies; 17+ messages in thread
From: Martin Schiøtz @ 2007-01-10 12:01 UTC (permalink / raw)
  To: netfilter

Hi

Just installed Fedora Core 6 with:
  kernel-2.6.18-1.2869.fc6
  iptables-1.3.5-1.2.1

I want to use connlimit on a bridge (eth0 and eth1) but it gives me this error:
iptables: Unknown error 4294967295

It looks like connlimit is included in iptables
(/lib/iptables/libipt_connlimit.so) but as remember I also need
'ipt_connlimt.ko' module in the kernel. In older days I think I
compiled the kernel with:
CONFIG_IP_NF_MATCH_LIMIT=m

But when I look at the kernel config for kernel-2.6.18-1.2869.fc6 I
see something like:
CONFIG_NETFILTER_XT_MATCH_LIMIT=m

This is something about xtables - what is xtables?

Which module(s) do I need if I want to use 'connlimit'?

Do I need to patch with patch-o-matic?

:-)
Martin


^ permalink raw reply	[flat|nested] 17+ messages in thread

* connlimit
@ 2007-01-10 14:16 Carlos Miranda
  2007-01-10 15:01 ` connlimit Martin Schiøtz
  2007-01-10 16:05 ` connlimit ArcosCom Linux User
  0 siblings, 2 replies; 17+ messages in thread
From: Carlos Miranda @ 2007-01-10 14:16 UTC (permalink / raw)
  To: netfilter


After downloading patch-o-matic-20031219.tar.bz2 and running "# KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i586 ./runme pending", I could not see CONNLIMIT module to path the kernel.

anyone to tell with patch need to be installed to have connlimit working?

Thank you,
Carlos

_________________________________________________________________
Ligue para os seus amigos grátis. Faça chamadas de PC-para-PC pelo messenger-- GRÁTIS
http://get.live.com/messenger/overview

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2007-01-10 14:16 connlimit Carlos Miranda
@ 2007-01-10 15:01 ` Martin Schiøtz
  2007-01-10 16:05 ` connlimit ArcosCom Linux User
  1 sibling, 0 replies; 17+ messages in thread
From: Martin Schiøtz @ 2007-01-10 15:01 UTC (permalink / raw)
  Cc: netfilter

Had the same problem but discovered that you have to do:

 [root@shaper10 patch-o-matic-ng-20070108]# ./runme --download
Successfully downloaded external patch geoip
Successfully downloaded external patch condition
Successfully downloaded external patch IPMARK
Successfully downloaded external patch connlimit
Successfully downloaded external patch ipp2p
Successfully downloaded external patch time

etc.

- Martin

On 1/10/07, Carlos Miranda <cerlm@hotmail.com> wrote:
>
> After downloading patch-o-matic-20031219.tar.bz2 and running "# KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i586 ./runme pending", I could not see CONNLIMIT module to path the kernel.
>
> anyone to tell with patch need to be installed to have connlimit working?
>
> Thank you,
> Carlos
>
> _________________________________________________________________
> Ligue para os seus amigos grátis. Faça chamadas de PC-para-PC pelo messenger-- GRÁTIS
> http://get.live.com/messenger/overview
>


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2007-01-10 14:16 connlimit Carlos Miranda
  2007-01-10 15:01 ` connlimit Martin Schiøtz
@ 2007-01-10 16:05 ` ArcosCom Linux User
  1 sibling, 0 replies; 17+ messages in thread
From: ArcosCom Linux User @ 2007-01-10 16:05 UTC (permalink / raw)
  To: netfilter

./runme --download



El Mie, 10 de Enero de 2007, 15:16, Carlos Miranda escribió:
>
> After downloading patch-o-matic-20031219.tar.bz2 and running "#
> KERNEL_DIR=/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i586 ./runme
> pending", I could not see CONNLIMIT module to path the kernel.
>
> anyone to tell with patch need to be installed to have connlimit working?
>
> Thank you,
> Carlos
>
> _________________________________________________________________
> Ligue para os seus amigos grátis. Faça chamadas de PC-para-PC pelo
> messenger-- GRÁTIS
> http://get.live.com/messenger/overview
>




^ permalink raw reply	[flat|nested] 17+ messages in thread

* connlimit
@ 2011-03-07 11:53 benjamin fernandis
  2011-03-07 12:04 ` connlimit Jan Engelhardt
  0 siblings, 1 reply; 17+ messages in thread
From: benjamin fernandis @ 2011-03-07 11:53 UTC (permalink / raw)
  To: netfilter

Hi,

I have a mail server with web server which have 500 customers site and
mail account.Since couple of days i m suffering with so many
connections.

So please guide me to configure ratelimit for that.I need to confiugre
connlimit for http , imap , imaps, pop, smtp.

and also suggest me connlimit value which is ideal for my setup.

OS REDHAT 5.5

Thanks,
Benjo

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2011-03-07 11:53 connlimit benjamin fernandis
@ 2011-03-07 12:04 ` Jan Engelhardt
  2011-03-07 12:31   ` connlimit benjamin fernandis
  0 siblings, 1 reply; 17+ messages in thread
From: Jan Engelhardt @ 2011-03-07 12:04 UTC (permalink / raw)
  To: benjamin fernandis; +Cc: netfilter

On Monday 2011-03-07 12:53, benjamin fernandis wrote:

>Hi,
>
>I have a mail server with web server which have 500 customers site and
>mail account.Since couple of days i m suffering with so many
>connections.
>
>So please guide me to configure ratelimit for that.I need to confiugre
>connlimit for http , imap , imaps, pop, smtp.
>
>and also suggest me connlimit value which is ideal for my setup.
>
>	OS REDHAT 5.5

The OS value is suboptimal, since the 5.x series's kernel and iptables 
is old and ships a broken connlimit.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2011-03-07 12:04 ` connlimit Jan Engelhardt
@ 2011-03-07 12:31   ` benjamin fernandis
  2011-03-07 13:18     ` connlimit Jan Engelhardt
  0 siblings, 1 reply; 17+ messages in thread
From: benjamin fernandis @ 2011-03-07 12:31 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter

connlimit is working on per second basis or..........?

can i configure limit per second per ip.............


Benjo

On Mon, Mar 7, 2011 at 5:34 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
> On Monday 2011-03-07 12:53, benjamin fernandis wrote:
>
>>Hi,
>>
>>I have a mail server with web server which have 500 customers site and
>>mail account.Since couple of days i m suffering with so many
>>connections.
>>
>>So please guide me to configure ratelimit for that.I need to confiugre
>>connlimit for http , imap , imaps, pop, smtp.
>>
>>and also suggest me connlimit value which is ideal for my setup.
>>
>>       OS REDHAT 5.5
>
> The OS value is suboptimal, since the 5.x series's kernel and iptables
> is old and ships a broken connlimit.
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: connlimit
  2011-03-07 12:31   ` connlimit benjamin fernandis
@ 2011-03-07 13:18     ` Jan Engelhardt
  0 siblings, 0 replies; 17+ messages in thread
From: Jan Engelhardt @ 2011-03-07 13:18 UTC (permalink / raw)
  To: benjamin fernandis; +Cc: netfilter

On Monday 2011-03-07 13:31, benjamin fernandis wrote:

>connlimit is working on per second basis or..........?
>
>can i configure limit per second per ip.............

The well-known version of xt_connlimit (as present in Linux 2.6.23 and 
onwards) supports groups of subnet prefixes of src addresses, and counts 
the _number of connections_. For _rates_, see xt_hashlimit and/or 
xt_rateest.
xt_connlimit in Linux 2.6.39 will support dstaddr matching.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-03-07 13:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-13 23:14 connlimit php0t
2006-08-13 23:40 ` connlimit Phil Oester
2006-08-14 12:54 ` connlimit Patrick McHardy
2006-08-14 18:18   ` connlimit Krzysztof Oledzki
  -- strict thread matches above, loose matches on Subject: below --
2011-03-07 11:53 connlimit benjamin fernandis
2011-03-07 12:04 ` connlimit Jan Engelhardt
2011-03-07 12:31   ` connlimit benjamin fernandis
2011-03-07 13:18     ` connlimit Jan Engelhardt
2007-01-10 14:16 connlimit Carlos Miranda
2007-01-10 15:01 ` connlimit Martin Schiøtz
2007-01-10 16:05 ` connlimit ArcosCom Linux User
2007-01-10 12:01 connlimit Martin Schiøtz
2005-04-06 20:50 CONNLIMIT Luiz C. Spies
2005-04-07  9:29 ` CONNLIMIT Rio Martin.
2005-03-30 16:35 CONNLIMIT Luiz C. Spies
2004-02-25 14:33 Connlimit Michał Margula
2004-02-25 22:01 ` Connlimit Michał Margula

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.