LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2003, 01:02 PM   #1
Gorbachov
LQ Newbie
 
Registered: Sep 2003
Location: Bankya
Distribution: ASPLinux v7.3 Vostok
Posts: 29

Rep: Reputation: 15
Connection Limit with what?


Hi all...


I want to deny more than /for example 5/ paralel conecction from an IP behaind my router...
I found some info about this and with a patch for Iptables but tht is all...no download for the patch no install info...

I am allmost sure this is possible but how...


Thanks
Gorbachov
 
Old 12-25-2003, 11:17 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Parallel connections are patched with Patchomatic

specifically the connlimit patch

Instructions are inside the patchomatic directory after extracting the download.

The base/connlimit patch:
Author: Gerd Knorr <kraxel@bytesex.org>
Status: ItWorksForMe[tm]

This adds CONFIG_IP_NF_MATCH_CONNLIMIT match allows you to restrict the
number of parallel TCP connections to a server per client IP address
(or address block).

Examples:

# allow 2 telnet connections per client host
iptables -p tcp --syn --dport 23 -m connlimit --connlimit-above 2 -j REJECT

# you can also match the other way around:
iptables -p tcp --syn --dport 23 -m connlimit ! --connlimit-above 2 -j ACCEPT

# limit the nr of parallel http requests to 16 per class C sized
# network (24 bit netmask)
iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above 16 --connlimit-mask 24 -j REJECT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Limit Bandwidth on a Per Connection Basis? farmerjoe Linux - General 1 11-09-2005 07:28 PM
Limit incoming smtp connection by ip using iptables lynksinc Linux - Security 4 11-03-2005 12:27 PM
Network connection limit abneru SUSE / openSUSE 4 06-23-2005 05:00 AM
How to limit muliple dial-up connection duration morosband Linux - Software 1 02-28-2005 08:46 AM
How to limit muliple dial-up connection duration morosband Linux - Software 3 02-26-2005 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration