Community discussions

MikroTik App
 
bd5ive
just joined
Topic Author
Posts: 7
Joined: Tue Jul 12, 2011 9:28 pm

--HELP-- Queue for web with webproxy

Mon Sep 05, 2011 3:57 pm

Can someone tell me how to limit and shape (queue) web downloads?
I wanna add a mangle to mark web traffic and limit that marked packet in queue. but the problem is I'm using web proxy as well (to speed up webpage opening, and also blocking some web sites)
don't know if this is possible or not ?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: --HELP-- Queue for web with webproxy

Mon Sep 05, 2011 5:39 pm

WebProxy traffic should be marked in 'output' chain, not 'forward' or 'prerouting'
 
bd5ive
just joined
Topic Author
Posts: 7
Joined: Tue Jul 12, 2011 9:28 pm

Re: --HELP-- Queue for web with webproxy

Wed Sep 07, 2011 12:51 pm

It works, but smth else is missing, I created the mangle rule like this :
Ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic 
 0   chain=output action=mark-packet new-packet-mark=tst passthrough=yes 
     protocol=tcp dst-address=192.168.0.79 src-port=8080
and then went on and created this queue:
 queue simple print
Flags: X - disabled, I - invalid, D - dynamic 
 0    name="queue1" interface=all parent=none packet-marks=tst direction=both 
      priority=8 queue=default-small/default-small limit-at=0/0 max-limit=0/0 
      burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s 
      total-queue=default-small
but that doesn't work, It should show some traffic passing but it aint.
any ideas?
this should be limiting the traffic coming from web proxy, so I can limit a number of high downloading users, but don't wanna limit the server and resources connections.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: --HELP-- Queue for web with webproxy

Wed Sep 07, 2011 1:19 pm

your queue won't work just because you haven't changed nothing in its parameters

you'd better use Queue Tree
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: --HELP-- Queue for web with webproxy

Wed Sep 07, 2011 4:39 pm

Or set the limit-at parameter to 1g/1g for Gigabit Ethernet wirespeed. That way the queue can grab the traffic and exempt it from lower queues, but it won't effectively do anything.
 
mikb262
just joined
Posts: 20
Joined: Wed Oct 19, 2011 6:34 pm
Location: Attock City

Re: --HELP-- Queue for web with webproxy

Tue May 28, 2013 7:42 pm

hi i need some info about caching
is there posible to use mikrotik as a external cacche server like linux squid
if there is plz tell me the solution
i m running X86 machine with several bridges wds bridges
i want to use mikrotik as external web caching server
plz help