How to limit maximum number of TCP connections

Ian Malone ibmalone at gmail.com
Thu Jun 28 11:34:53 UTC 2012


On 27 June 2012 07:57, Jatin K <ssh.fedora at gmail.com> wrote:
> Dear All
>
> I'm on FC 15 which is acting as a router for Cable Internet connection
> for 145 PC on the LAN, which works fine... But there is one question in
> my mind, How do I limit the maximum numbers of concurrent connections to
> router. i.e. if I want to allow only 90 concurrent connection to the
> router at the given time only 90 PCs can pass through the router or
> connect to the Internet other PCs/users have to wait until the connected
> PCs session is over.
>

Having read all the other replies I have to agree that your client is
either embarked on a philosophical exercise in traffic management or
has come to their own (likely incorrect) conclusion that this is the
best way to achieve something else. Best response is to engage and try
to find out why.

However, I don't see why it wouldn't be possible to use the kind of
access control that gets used on commercial or courtesy wifi systems
where all requests get redirected to a local server until the user
authenticates the machine (usually via a web browser to make payment
or agree to T&Cs). It does still have all the issues like background
connections (software updates, NTP etc.), but this is protocol
agnostic so far as I know. Look up captive portals (e.g. wifidog),
note I've never done this.

-- 
imalone
http://ibmalone.blogspot.co.uk


More information about the users mailing list