* Connlimit problem k2.6.18.2 , ipt1.3.7
@ 2007-03-09 17:59 Bc. Miroslav Kopecek
2007-03-09 19:40 ` Franck Joncourt
2007-03-11 17:14 ` Pascal Hambourg
0 siblings, 2 replies; 10+ messages in thread
From: Bc. Miroslav Kopecek @ 2007-03-09 17:59 UTC (permalink / raw)
To: netfilter
Hi,
I have Debian Sarge 3.1 testing, compiled kernel 2.6.18.2 and actual
iptables 1.3.7 compiled and installed
I need to solve problem with full ip_conntrack on my router. One client with
some agressive P2P makes ip_conntack full. So I need to limit connections
per that IP address
I can't add connlimit rule? What's wrong? Any suggestion?
-----------------------------------------
iptables -m connlimit -h
connlimit v1.3.7 options:
[!] --connlimit-above n match if the number of existing tcp
connections is (not) above n
--connlimit-mask n group hosts using mask
-----------------------------------------
RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s 10.88.99.71 -m
connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT --reject-with
tcp-reset
iptables: No chain/target/match by that name
RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -m connlimit
--connlimit-above 300 --connlimit-mask 32 -j REJECT --reject-with tcp-reset
iptables: No chain/target/match by that name
RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -m connlimit
--connlimit-above 300 --connlimit-mask 32 -j DROP
iptables: No chain/target/match by that name
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-09 17:59 Connlimit problem k2.6.18.2 , ipt1.3.7 Bc. Miroslav Kopecek
@ 2007-03-09 19:40 ` Franck Joncourt
2007-03-12 7:42 ` Bc. Miroslav Kopecek
2007-03-11 17:14 ` Pascal Hambourg
1 sibling, 1 reply; 10+ messages in thread
From: Franck Joncourt @ 2007-03-09 19:40 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 619 bytes --]
On Fri, Mar 09, 2007 at 06:59:05PM +0100, Bc. Miroslav Kopecek wrote:
> Hi,
Hi,
> I have Debian Sarge 3.1 testing, compiled kernel 2.6.18.2 and actual
> iptables 1.3.7 compiled and installed
>
> I need to solve problem with full ip_conntrack on my router. One client with
> some agressive P2P makes ip_conntack full. So I need to limit connections
> per that IP address
Have you tried that :
http://www.ipp2p.org/docu_en.html
--
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-09 17:59 Connlimit problem k2.6.18.2 , ipt1.3.7 Bc. Miroslav Kopecek
2007-03-09 19:40 ` Franck Joncourt
@ 2007-03-11 17:14 ` Pascal Hambourg
2007-03-11 23:27 ` Jan Engelhardt
1 sibling, 1 reply; 10+ messages in thread
From: Pascal Hambourg @ 2007-03-11 17:14 UTC (permalink / raw)
To: netfilter
Hello,
Bc. Miroslav Kopecek a écrit :
>
> I can't add connlimit rule? What's wrong? Any suggestion?
>
> -----------------------------------------
> iptables -m connlimit -h
> connlimit v1.3.7 options:
> [!] --connlimit-above n match if the number of existing tcp
> connections is (not) above n
> --connlimit-mask n group hosts using mask
>
> -----------------------------------------
> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s 10.88.99.71 -m
> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT --reject-with
> tcp-reset
> iptables: No chain/target/match by that name
Your kernel probably does not support the connlimit match. The connlimit
match is not part of the standard kernel. It used to be included as a
kernel patch in the patch-o-matic-ng, but has been removed from the
daily snapshots since 2006/07/26.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-11 17:14 ` Pascal Hambourg
@ 2007-03-11 23:27 ` Jan Engelhardt
2007-03-12 8:08 ` Bc. Miroslav Kopecek
0 siblings, 1 reply; 10+ messages in thread
From: Jan Engelhardt @ 2007-03-11 23:27 UTC (permalink / raw)
To: Pascal Hambourg; +Cc: netfilter
On Mar 11 2007 18:14, Pascal Hambourg wrote:
>> I can't add connlimit rule? What's wrong? Any suggestion?
>>
>> -----------------------------------------
>> iptables -m connlimit -h
>> connlimit v1.3.7 options:
>> [!] --connlimit-above n match if the number of existing tcp
>> connections is (not) above n
>> --connlimit-mask n group hosts using mask
>>
>> -----------------------------------------
>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s 10.88.99.71 -m
>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>> --reject-with
>> tcp-reset
>> iptables: No chain/target/match by that name
>
> Your kernel probably does not support the connlimit match. The connlimit match
> is not part of the standard kernel. It used to be included as a kernel patch in
> the patch-o-matic-ng, but has been removed from the daily snapshots since
> 2006/07/26.
connlimit is still there (not in pomng though), it's out-of-out-off-tree,
so to say. You have to patch pomng, and then patch the kernel *whirl* ...
Jan
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-09 19:40 ` Franck Joncourt
@ 2007-03-12 7:42 ` Bc. Miroslav Kopecek
0 siblings, 0 replies; 10+ messages in thread
From: Bc. Miroslav Kopecek @ 2007-03-12 7:42 UTC (permalink / raw)
To: netfilter
ipp2p is only for limiting p2p trafic. I don't want to limit trafic and do
trafic shaping for p2p (or block p2p).
I want only to solve problem with ip_conntrack. I need any solution to limit
connections per IP address.
Mirek
>-----Original Message-----
>From: netfilter-bounces@lists.netfilter.org
>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>Franck Joncourt
>Sent: Friday, March 09, 2007 8:40 PM
>To: netfilter@lists.netfilter.org
>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>
>On Fri, Mar 09, 2007 at 06:59:05PM +0100, Bc. Miroslav Kopecek wrote:
>> Hi,
>
>Hi,
>
>> I have Debian Sarge 3.1 testing, compiled kernel 2.6.18.2
>and actual
>> iptables 1.3.7 compiled and installed
>>
>> I need to solve problem with full ip_conntrack on my router.
>One client with
>> some agressive P2P makes ip_conntack full. So I need to
>limit connections
>> per that IP address
>
>Have you tried that :
>
>http://www.ipp2p.org/docu_en.html
>
>--
>Franck Joncourt
>http://www.debian.org
>http://smhteam.info/wiki/
>GPG server : pgpkeys.mit.edu
>Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-11 23:27 ` Jan Engelhardt
@ 2007-03-12 8:08 ` Bc. Miroslav Kopecek
2007-03-13 9:35 ` Bc. Miroslav Kopecek
0 siblings, 1 reply; 10+ messages in thread
From: Bc. Miroslav Kopecek @ 2007-03-12 8:08 UTC (permalink / raw)
To: netfilter
Hi,
so is any "safer" and "suported" way to limit number of connections per IP
address?
>-----Original Message-----
>From: netfilter-bounces@lists.netfilter.org
>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>Jan Engelhardt
>Sent: Monday, March 12, 2007 12:27 AM
>To: Pascal Hambourg
>Cc: netfilter@lists.netfilter.org
>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>
>
>On Mar 11 2007 18:14, Pascal Hambourg wrote:
>>> I can't add connlimit rule? What's wrong? Any suggestion?
>>>
>>> -----------------------------------------
>>> iptables -m connlimit -h
>>> connlimit v1.3.7 options:
>>> [!] --connlimit-above n match if the number of existing tcp
>>> connections is (not) above n
>>> --connlimit-mask n group hosts using mask
>>>
>>> -----------------------------------------
>>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s 10.88.99.71 -m
>>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>>> --reject-with
>>> tcp-reset
>>> iptables: No chain/target/match by that name
>>
>> Your kernel probably does not support the connlimit match.
>The connlimit match
>> is not part of the standard kernel. It used to be included
>as a kernel patch in
>> the patch-o-matic-ng, but has been removed from the daily
>snapshots since
>> 2006/07/26.
>
>connlimit is still there (not in pomng though), it's
>out-of-out-off-tree,
>so to say. You have to patch pomng, and then patch the kernel
>*whirl* ...
>
>
>Jan
>--
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-12 8:08 ` Bc. Miroslav Kopecek
@ 2007-03-13 9:35 ` Bc. Miroslav Kopecek
2007-03-13 11:33 ` ArcosCom Linux User
0 siblings, 1 reply; 10+ messages in thread
From: Bc. Miroslav Kopecek @ 2007-03-13 9:35 UTC (permalink / raw)
To: netfilter
Hi,
nobody can help with limiting maximum number of connection per IP adress?
Is any "supported and official" way to do that?
Mirek
>-----Original Message-----
>From: netfilter-bounces@lists.netfilter.org
>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>Bc. Miroslav Kopecek
>Sent: Monday, March 12, 2007 9:08 AM
>To: netfilter@lists.netfilter.org
>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>
>Hi,
> so is any "safer" and "suported" way to limit number of
>connections per IP
>address?
>
>
>
>
>>-----Original Message-----
>>From: netfilter-bounces@lists.netfilter.org
>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>Jan Engelhardt
>>Sent: Monday, March 12, 2007 12:27 AM
>>To: Pascal Hambourg
>>Cc: netfilter@lists.netfilter.org
>>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>>
>>
>>On Mar 11 2007 18:14, Pascal Hambourg wrote:
>>>> I can't add connlimit rule? What's wrong? Any suggestion?
>>>>
>>>> -----------------------------------------
>>>> iptables -m connlimit -h
>>>> connlimit v1.3.7 options:
>>>> [!] --connlimit-above n match if the number of existing tcp
>>>> connections is (not) above n
>>>> --connlimit-mask n group hosts using mask
>>>>
>>>> -----------------------------------------
>>>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s
>10.88.99.71 -m
>>>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>>>> --reject-with
>>>> tcp-reset
>>>> iptables: No chain/target/match by that name
>>>
>>> Your kernel probably does not support the connlimit match.
>>The connlimit match
>>> is not part of the standard kernel. It used to be included
>>as a kernel patch in
>>> the patch-o-matic-ng, but has been removed from the daily
>>snapshots since
>>> 2006/07/26.
>>
>>connlimit is still there (not in pomng though), it's
>>out-of-out-off-tree,
>>so to say. You have to patch pomng, and then patch the kernel
>>*whirl* ...
>>
>>
>>Jan
>>--
>>
>>
>>
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-13 9:35 ` Bc. Miroslav Kopecek
@ 2007-03-13 11:33 ` ArcosCom Linux User
2007-03-13 11:48 ` Bc. Miroslav Kopecek
0 siblings, 1 reply; 10+ messages in thread
From: ArcosCom Linux User @ 2007-03-13 11:33 UTC (permalink / raw)
To: netfilter
Yes, there are many guys helping to you, think if you want their help.
The solution:
1) Download your kernel and iptables sources.
2) Apply patch-o-matic
a) ./runme --download (connlimit is diferent repository)
b) ./runme connlimit
3) Select the "connlimit" extension into your kernel config.
4) Compile and install
5) Reestart using your new kernel.
If you have "iptables -m connlimit --help", then you don't need to rebuild
your iptables. The iptables connlimit extension is included yet, you only
need kernel netfilter connlimit extension.
Sugestions:
1) Use a well known working kernel configuration file and only enable
the connlimit extension (plus the predefined and enabled yet).
2) If you don't know how to configure/compile your kernel, this is not
the correct list to answer about this questions (try "devel's lists").
3) Patch-o-matic "./runme --help" command can help and you'll need to
put your kernel source and iptables source directories.
4) connlimit (patch-o-matic) only patch kernel, your iptables 1.3.7 is
prepared with connlimit yet.
5) All distros have their own "kernel compile process", look for it
into your distro documentation.
Last notes:
1) Well known to working configurations are:
kernel 2.6.19.7 and iptables 1.3.7
kernel 2.6.18.x and iptables 1.3.7
2) When "connlimit" were included into main stream kernel, will be an
"official way", for now, you'll need to use patch-o-matic and patch
your kernel. Take a look into http://www.netfilter.org and read all the
documentation to learn what is the "offical" way.
Good luck and enjoy.
El Mar, 13 de Marzo de 2007, 10:35, Bc. Miroslav Kopecek escribió:
> Hi,
> nobody can help with limiting maximum number of connection per IP
> adress?
> Is any "supported and official" way to do that?
>
> Mirek
>
>
>
>>-----Original Message-----
>>From: netfilter-bounces@lists.netfilter.org
>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>Bc. Miroslav Kopecek
>>Sent: Monday, March 12, 2007 9:08 AM
>>To: netfilter@lists.netfilter.org
>>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>>
>>Hi,
>> so is any "safer" and "suported" way to limit number of
>>connections per IP
>>address?
>>
>>
>>
>>
>>>-----Original Message-----
>>>From: netfilter-bounces@lists.netfilter.org
>>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>>Jan Engelhardt
>>>Sent: Monday, March 12, 2007 12:27 AM
>>>To: Pascal Hambourg
>>>Cc: netfilter@lists.netfilter.org
>>>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>>>
>>>
>>>On Mar 11 2007 18:14, Pascal Hambourg wrote:
>>>>> I can't add connlimit rule? What's wrong? Any suggestion?
>>>>>
>>>>> -----------------------------------------
>>>>> iptables -m connlimit -h
>>>>> connlimit v1.3.7 options:
>>>>> [!] --connlimit-above n match if the number of existing tcp
>>>>> connections is (not) above n
>>>>> --connlimit-mask n group hosts using mask
>>>>>
>>>>> -----------------------------------------
>>>>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s
>>10.88.99.71 -m
>>>>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>>>>> --reject-with
>>>>> tcp-reset
>>>>> iptables: No chain/target/match by that name
>>>>
>>>> Your kernel probably does not support the connlimit match.
>>>The connlimit match
>>>> is not part of the standard kernel. It used to be included
>>>as a kernel patch in
>>>> the patch-o-matic-ng, but has been removed from the daily
>>>snapshots since
>>>> 2006/07/26.
>>>
>>>connlimit is still there (not in pomng though), it's
>>>out-of-out-off-tree,
>>>so to say. You have to patch pomng, and then patch the kernel
>>>*whirl* ...
>>>
>>>
>>>Jan
>>>--
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-13 11:33 ` ArcosCom Linux User
@ 2007-03-13 11:48 ` Bc. Miroslav Kopecek
2007-03-13 12:23 ` ArcosCom Linux User
0 siblings, 1 reply; 10+ messages in thread
From: Bc. Miroslav Kopecek @ 2007-03-13 11:48 UTC (permalink / raw)
To: netfilter
Off course I want help of anybody ;-)
What you wrote is actually what I need! Simple step by step which let me
know, what i need to make connlimit works.
So If I understand, my problem is, that I don't have netfilter connlimit
extension in my kernel. So I need to use latest patch-o-magic with download
and compile connlimit (which is not standard part of it now) patch my kernel
and add this extension... Am I right?
Many thanks for help. My English is not very well, so maybe I can't express
myself corectlly...
Mirek
>-----Original Message-----
>From: ArcosCom Linux User [mailto:linux@arcoscom.com]
>Sent: Tuesday, March 13, 2007 12:33 PM
>To: netfilter@lists.netfilter.org
>Cc: kopecek@email.cz
>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>
>Yes, there are many guys helping to you, think if you want their help.
>
>The solution:
> 1) Download your kernel and iptables sources.
> 2) Apply patch-o-matic
> a) ./runme --download (connlimit is diferent repository)
> b) ./runme connlimit
> 3) Select the "connlimit" extension into your kernel config.
> 4) Compile and install
> 5) Reestart using your new kernel.
>
>If you have "iptables -m connlimit --help", then you don't
>need to rebuild
>your iptables. The iptables connlimit extension is included
>yet, you only
>need kernel netfilter connlimit extension.
>
>Sugestions:
> 1) Use a well known working kernel configuration file and
>only enable
>the connlimit extension (plus the predefined and enabled yet).
> 2) If you don't know how to configure/compile your kernel,
>this is not
>the correct list to answer about this questions (try "devel's lists").
> 3) Patch-o-matic "./runme --help" command can help and
>you'll need to
>put your kernel source and iptables source directories.
> 4) connlimit (patch-o-matic) only patch kernel, your
>iptables 1.3.7 is
>prepared with connlimit yet.
> 5) All distros have their own "kernel compile process", look for it
>into your distro documentation.
>
>Last notes:
> 1) Well known to working configurations are:
> kernel 2.6.19.7 and iptables 1.3.7
> kernel 2.6.18.x and iptables 1.3.7
> 2) When "connlimit" were included into main stream kernel,
>will be an
>"official way", for now, you'll need to use patch-o-matic and patch
>your kernel. Take a look into http://www.netfilter.org and read all the
>documentation to learn what is the "offical" way.
>
>Good luck and enjoy.
>
>El Mar, 13 de Marzo de 2007, 10:35, Bc. Miroslav Kopecek escribió:
>> Hi,
>> nobody can help with limiting maximum number of connection per IP
>> adress?
>> Is any "supported and official" way to do that?
>>
>> Mirek
>>
>>
>>
>>>-----Original Message-----
>>>From: netfilter-bounces@lists.netfilter.org
>>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>>Bc. Miroslav Kopecek
>>>Sent: Monday, March 12, 2007 9:08 AM
>>>To: netfilter@lists.netfilter.org
>>>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>>>
>>>Hi,
>>> so is any "safer" and "suported" way to limit number of
>>>connections per IP
>>>address?
>>>
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: netfilter-bounces@lists.netfilter.org
>>>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>>>Jan Engelhardt
>>>>Sent: Monday, March 12, 2007 12:27 AM
>>>>To: Pascal Hambourg
>>>>Cc: netfilter@lists.netfilter.org
>>>>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>>>>
>>>>
>>>>On Mar 11 2007 18:14, Pascal Hambourg wrote:
>>>>>> I can't add connlimit rule? What's wrong? Any suggestion?
>>>>>>
>>>>>> -----------------------------------------
>>>>>> iptables -m connlimit -h
>>>>>> connlimit v1.3.7 options:
>>>>>> [!] --connlimit-above n match if the number of
>existing tcp
>>>>>> connections is (not) above n
>>>>>> --connlimit-mask n group hosts using mask
>>>>>>
>>>>>> -----------------------------------------
>>>>>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s
>>>10.88.99.71 -m
>>>>>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>>>>>> --reject-with
>>>>>> tcp-reset
>>>>>> iptables: No chain/target/match by that name
>>>>>
>>>>> Your kernel probably does not support the connlimit match.
>>>>The connlimit match
>>>>> is not part of the standard kernel. It used to be included
>>>>as a kernel patch in
>>>>> the patch-o-matic-ng, but has been removed from the daily
>>>>snapshots since
>>>>> 2006/07/26.
>>>>
>>>>connlimit is still there (not in pomng though), it's
>>>>out-of-out-off-tree,
>>>>so to say. You have to patch pomng, and then patch the kernel
>>>>*whirl* ...
>>>>
>>>>
>>>>Jan
>>>>--
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Connlimit problem k2.6.18.2 , ipt1.3.7
2007-03-13 11:48 ` Bc. Miroslav Kopecek
@ 2007-03-13 12:23 ` ArcosCom Linux User
0 siblings, 0 replies; 10+ messages in thread
From: ArcosCom Linux User @ 2007-03-13 12:23 UTC (permalink / raw)
To: netfilter
El Mar, 13 de Marzo de 2007, 12:48, Bc. Miroslav Kopecek escribió:
> Off course I want help of anybody ;-)
>
> What you wrote is actually what I need! Simple step by step which let me
> know, what i need to make connlimit works.
>
> So If I understand, my problem is, that I don't have netfilter connlimit
> extension in my kernel. So I need to use latest patch-o-magic with
> download
> and compile connlimit (which is not standard part of it now) patch my
> kernel
> and add this extension... Am I right?
Yes. Patch your kernel and configure it for use "connlimit" extension.
>
> Many thanks for help. My English is not very well, so maybe I can't
> express
> myself corectlly...
> Mirek
>
>
>>-----Original Message-----
>>From: ArcosCom Linux User [mailto:linux@arcoscom.com]
>>Sent: Tuesday, March 13, 2007 12:33 PM
>>To: netfilter@lists.netfilter.org
>>Cc: kopecek@email.cz
>>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>>
>>Yes, there are many guys helping to you, think if you want their help.
>>
>>The solution:
>> 1) Download your kernel and iptables sources.
>> 2) Apply patch-o-matic
>> a) ./runme --download (connlimit is diferent repository)
>> b) ./runme connlimit
>> 3) Select the "connlimit" extension into your kernel config.
>> 4) Compile and install
>> 5) Reestart using your new kernel.
>>
>>If you have "iptables -m connlimit --help", then you don't
>>need to rebuild
>>your iptables. The iptables connlimit extension is included
>>yet, you only
>>need kernel netfilter connlimit extension.
>>
>>Sugestions:
>> 1) Use a well known working kernel configuration file and
>>only enable
>>the connlimit extension (plus the predefined and enabled yet).
>> 2) If you don't know how to configure/compile your kernel,
>>this is not
>>the correct list to answer about this questions (try "devel's lists").
>> 3) Patch-o-matic "./runme --help" command can help and
>>you'll need to
>>put your kernel source and iptables source directories.
>> 4) connlimit (patch-o-matic) only patch kernel, your
>>iptables 1.3.7 is
>>prepared with connlimit yet.
>> 5) All distros have their own "kernel compile process", look for it
>>into your distro documentation.
>>
>>Last notes:
>> 1) Well known to working configurations are:
>> kernel 2.6.19.7 and iptables 1.3.7
>> kernel 2.6.18.x and iptables 1.3.7
>> 2) When "connlimit" were included into main stream kernel,
>>will be an
>>"official way", for now, you'll need to use patch-o-matic and patch
>>your kernel. Take a look into http://www.netfilter.org and read all the
>>documentation to learn what is the "offical" way.
>>
>>Good luck and enjoy.
>>
>>El Mar, 13 de Marzo de 2007, 10:35, Bc. Miroslav Kopecek escribió:
>>> Hi,
>>> nobody can help with limiting maximum number of connection per IP
>>> adress?
>>> Is any "supported and official" way to do that?
>>>
>>> Mirek
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: netfilter-bounces@lists.netfilter.org
>>>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>>>Bc. Miroslav Kopecek
>>>>Sent: Monday, March 12, 2007 9:08 AM
>>>>To: netfilter@lists.netfilter.org
>>>>Subject: RE: Connlimit problem k2.6.18.2 , ipt1.3.7
>>>>
>>>>Hi,
>>>> so is any "safer" and "suported" way to limit number of
>>>>connections per IP
>>>>address?
>>>>
>>>>
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>From: netfilter-bounces@lists.netfilter.org
>>>>>[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of
>>>>>Jan Engelhardt
>>>>>Sent: Monday, March 12, 2007 12:27 AM
>>>>>To: Pascal Hambourg
>>>>>Cc: netfilter@lists.netfilter.org
>>>>>Subject: Re: Connlimit problem k2.6.18.2 , ipt1.3.7
>>>>>
>>>>>
>>>>>On Mar 11 2007 18:14, Pascal Hambourg wrote:
>>>>>>> I can't add connlimit rule? What's wrong? Any suggestion?
>>>>>>>
>>>>>>> -----------------------------------------
>>>>>>> iptables -m connlimit -h
>>>>>>> connlimit v1.3.7 options:
>>>>>>> [!] --connlimit-above n match if the number of
>>existing tcp
>>>>>>> connections is (not) above n
>>>>>>> --connlimit-mask n group hosts using mask
>>>>>>>
>>>>>>> -----------------------------------------
>>>>>>> RouterBM:/home/kopecek# iptables -A FORWARD -p tcp -s
>>>>10.88.99.71 -m
>>>>>>> connlimit --connlimit-above 300 --connlimit-mask 32 -j REJECT
>>>>>>> --reject-with
>>>>>>> tcp-reset
>>>>>>> iptables: No chain/target/match by that name
>>>>>>
>>>>>> Your kernel probably does not support the connlimit match.
>>>>>The connlimit match
>>>>>> is not part of the standard kernel. It used to be included
>>>>>as a kernel patch in
>>>>>> the patch-o-matic-ng, but has been removed from the daily
>>>>>snapshots since
>>>>>> 2006/07/26.
>>>>>
>>>>>connlimit is still there (not in pomng though), it's
>>>>>out-of-out-off-tree,
>>>>>so to say. You have to patch pomng, and then patch the kernel
>>>>>*whirl* ...
>>>>>
>>>>>
>>>>>Jan
>>>>>--
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-03-13 12:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 17:59 Connlimit problem k2.6.18.2 , ipt1.3.7 Bc. Miroslav Kopecek
2007-03-09 19:40 ` Franck Joncourt
2007-03-12 7:42 ` Bc. Miroslav Kopecek
2007-03-11 17:14 ` Pascal Hambourg
2007-03-11 23:27 ` Jan Engelhardt
2007-03-12 8:08 ` Bc. Miroslav Kopecek
2007-03-13 9:35 ` Bc. Miroslav Kopecek
2007-03-13 11:33 ` ArcosCom Linux User
2007-03-13 11:48 ` Bc. Miroslav Kopecek
2007-03-13 12:23 ` ArcosCom Linux User
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.