(no subject)
Hello ,
How can i set the Max number of allowed tcp connections from the same ip
address ???
if the current ip has more than the allowed number of connections the
server will drop or reject the new connections
untill it gets an empty space to connect
if there's any rule i can set for this (please provide me with the way to
remove the rule also)
Thank you
Hello ,
Thanks for your reply , but can you give me the link of the patch i have to apply
Thank You
Quoted 31 lines · Jason Opperisano
Quoted 7 lines · bright true
Hello ,
How can i set the Max number of allowed tcp connections from the same ip address ???
if the current ip has more than the allowed number of connections the server will drop or reject the new connections
untill it gets an empty space to connect
if there's any rule i can set for this (please provide me with the wayto
Quoted 1 line
remove the rule also)
the way to do this correctly is to apply the connlimit patch from PoM, and use a rule like (using SMTP as an example and 4 conns):
iptables -A [INPUT|FORWARD] -p tcp --syn --dport 25 \
-m connlimit --connlimit-above 4 -j REJECTthis will result in any individual IP being allowed to make up to 4 simultaneous connections.
you delete rules by replacing the '-A' with a '-D'
-j
--
"Peter: Brothers and sisters fighting is as natural as a white mans dialog in a Spike Lee movie."
--Family Guy
Hello ,
i want to ask you , i there any way to accomplish the whole thing with out the need of re-compiling the Kernel
and iptables actually i've a VPS and i don't have my own server and can't compile the Kernel for one VPS only
Thanks alot
Bye
Quoted 33 lines · Jason Opperisano
Quoted 3 lines · bright true
Hello ,
Thanks for your reply , but can you give me the link of the patch i have
to
Quoted 1 line
apply
grab the latest snapshot of PoM available from:
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/
for example:
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/patch-o-matic-ng-20050520.tar.bz2
you need to have both the source of your running kernel available and the source of your iptables version available and following the instructions in the PoM README file. basic recipe:
- apply patches from PoM
- recompile kernel
- recompile iptables
- reboot & enjoy-j
--
"Brian: Excuse me, would you like to taste my smoked meat log?" --Family Guy
Quoted 8 lines · bright true
Hello ,
How can i set the Max number of allowed tcp connections from the same ip
address ???
if the current ip has more than the allowed number of connections the
server will drop or reject the new connections
untill it gets an empty space to connect
if there's any rule i can set for this (please provide me with the way to
remove the rule also)
the way to do this correctly is to apply the connlimit patch from PoM, and use a rule like (using SMTP as an example and 4 conns):
iptables -A [INPUT|FORWARD] -p tcp --syn --dport 25 \
-m connlimit --connlimit-above 4 -j REJECTthis will result in any individual IP being allowed to make up to 4 simultaneous connections.
you delete rules by replacing the '-A' with a '-D'
-j
--
"Peter: Brothers and sisters fighting is as natural as a white mans
dialog in a Spike Lee movie."
--Family Guy
Quoted 4 lines · bright true
Hello ,
Thanks for your reply , but can you give me the link of the patch i have to apply
grab the latest snapshot of PoM available from:
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/
for example:
http://ftp.netfilter.org/pub/patch-o-matic-ng/snapshot/patch-o-matic-ng-20050520.tar.bz2
you need to have both the source of your running kernel available and the source of your iptables version available and following the instructions in the PoM README file. basic recipe:
- apply patches from PoM
- recompile kernel
- recompile iptables
- reboot & enjoy
-j
--
"Brian: Excuse me, would you like to taste my smoked meat log?"
--Family Guy