limit number of connections

Hi to all,
in which way Can I limit the numbers of connection between two host A and B ?

For example, if an user use a download manager it can do different connections to server for download a file. I would to limit this connection ad one.

Is it possible?

Hi,

something like:

/ip firewall filter add action=drop chain=forward comment="" connection-limit=100,32 disabled=no dst-address=2.2.2.2 protocol=tcp src-address=1.1.1.1 tcp-flags=syn

I think this will accept only 99 connections between 1.1.1.1 and 2.2.2.2

But I intented for example one connection for each host.

then:

connection-limit=2,32

and you can change IPs with networks too

you limit connection to 1 to a web serwer. A typical web browser opens several connections downloading HTML and pictures is separe connections, how would you solve this issue when limiting connection to 1 per HOST ?


?

Right … This is a problem…

But you can do it! ; )

Try to limit the connections to something real, and they will be able to access de webserver but not open 100000000 connections. Or limit speed per users..

Guys Download accelerators are not an evil… use fair traffic per user and i dont think you will have problems with it

ok thanks to all.

use this rule mentioned above connection-limit=1,32
and add in content .exe
.mp3 .flv .you will be limiting downloads per 1 session for the file type u like to add :wink: