how to limit 5-session(5-connection) for each client
What kind of session?
i want to limit all client to open max 5 connection (download 5 pictures or open 5 webs in the same time )
/ip firewall filter add chain=forward protocol=tcp tcp-flags=syn connection-limit=6,32 action=drop dst-port=80
But 5 connection is nothing in modern World. 5 HTTP connection will be used full all the time, other HTTP requests will not work (will be dropped).
ok then how match connections they need .
thank ![]()
one webpage can contain 30 images, and all of them load at the same time. you need to figure out what exactly you want to accomplish by doing this. do you have a reason to limit number of connections?
my clients are taking a lot connection
so what? what problems does that cause?
if i limit speed, the speed is very slow for (hotmail, tagged, youtube … )
so i want to limit connection in plase of speed
as normis and sergejs already tried to tell you - you can limit connections, but in this case that will not solve problem you have. Check out simple queues with PCQ queue type, so your customers divide traffic evenly.
i didn’t know how to do PCQ with pppoe
if you have pppoe range (or ranges) you can add ranges as target-addresses and set up PCQ for download and PCQ for upload, before you will have to add new types with PCQ for download and for upload.
Other possibility is to add queue tree entries one for download one for upload with pcq queue type created beforehand, and use mangle to mark traffic and assign queue tree entry to global-out since you have a lot of interfaces where traffic goes.
for exact details you can look up several topics here on the forums and examples on wiki. Also, look at tiktube.com where are several MUM presentations regarding QoS, watch these - there is a lot of information.
you could look at queues with burst for that - if user is downloading a lot, speed will be limited to some lower value, when just opening the pages customer will use higher rate allowed by burst. just configure this according to your needs
norack, what movie is your signature from
?
im in need of same solutions to limit the normal and torrent downloads.
do you any success on it, post script if you done it
Thanks in advance
/ip firewall filter add chain=forward protocol=tcp tcp-flags=syn connection-limit=6,32 action=drop dst-port=80
Hi, may anyone explain me: why, if I need to limit 5 connections, I set “6,32”?
I’m trying to limit RouterBoard telnet access only to 1 user at time:
So, I set:
chain = input
protocol = tcp
dst.port = 23
tcp-flags ???
action = drop
connection-limit = ??????
thanks.
Hello.
I use simple queues (PCQ) to limit user traffic.
I also limited each IP to 150 connections and it is very good.
It just drops when they enable P2P without proper configuration.
I also limited each IP to 150 connections and it is very good.
How?