Community discussions

MikroTik App
 
NightShadow
newbie
Topic Author
Posts: 40
Joined: Thu Jun 09, 2011 4:06 am

HELP PLEASE Mikrotik how to limit http downloads

Thu Sep 29, 2011 6:26 pm

Hi sorry for double posting i lost my old post. I am using the script below to limit p2p encypted other connections and that is working very well.
(this is the script from the wiki i have changed it a little for my settings)

Now what i am trying to do is limit http downloads (like ubuntu) so they start off at full speed but after 5 mins of downloading they get reduced to 256Kb and when the download is finished every thing goes back to normall speed. Some one said some thing about the burst feature but i can not get it to work Can some one please give a simple setup or let me know what i need to change in this script for it to work .
I am very new to mikrotik and it gets very confussing.
Also i would like it to work for each seprate ip address with out having to make a queue for each ip is this possible.
Im sure it very easy when you know how.
Bassicly i am giving people 3mb speed for http browsing and when they do a speed test i want it to show 3mb but on http downloads i want it to slow down after 5 mins to 256kb so not to effect my whole line.
Hope this makes sence
Thanks

/ ip firewall mangle
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection \
new-connection-mark=http_conn passthrough=yes
add chain=prerouting connection-mark=http_conn action=mark-packet \
new-packet-mark=http passthrough=no
add chain=prerouting p2p=all-p2p action=mark-connection \
new-connection-mark=p2p_conn passthrough=yes
add chain=prerouting connection-mark=p2p_conn action=mark-packet \
new-packet-mark=p2p passthrough=no
add chain=prerouting action=mark-connection new-connection-mark=other_conn \
passthrough=yes
add chain=prerouting connection-mark=other_conn action=mark-packet \
new-packet-mark=other passthrough=no

/ queue simple
add name="main" target-addresses=10.0.0.12/32 max-limit=256000/512000
add name="http" parent=main packet-marks=http max-limit=240000/500000 priority=1
add name="p2p" parent=main packet-marks=p2p max-limit=64000/64000 priority=8
add name="other" parent=main packet-marks=other max-limit=128000/128000 priority=4

Who is online

Users browsing this forum: GoogleOther [Bot] and 185 guests