Do you have another mangle related to list=512k on another chain? I just tried your code and it work perfect. Or could you attach the output of
/ip fi ma export
Output chain is working fine with dst-address-list only for download traffic. But i wanted to do like what it says here http://wiki.mikrotik.com/wiki/TransparentTrafficShaper
Looks very simple. I did not bridge thou.
you could make a traffic shaping based on target address
you could also use the packet mark
Next take a look on your traffic. With an assumption you have transparent proxy for http traffic (destination port 80). I will simplify the packet stream into 4 stream in 2 connection
a) -------------> c) ------------->
CLIENT RouterOS WEB-SERVER
b) <------------ d) <------------
connection I. between client and ROS
a) request came from client an redirect by ROS
b) ROS as a proxy response the request to client
connection II. between ROS and WEB-Server
c) Proxy request
d) web-server response
Let see what you have done.
connection marking for connection I
packet marking for packet stream a) “512_p”
shaping with simple queue parameter = packet mark = “512_p”
My Question, on packet stream b), do you have marked packet flow in those direction?
I Guess, you will have no-mark packet in this direction (b). That’s the reason you could not do traffic shaping in single flow packet mark. On the download direction you will also need to mark the packet.
Let’s make it simple, you have already marked the upload packet stream with 512_p. Just make as i posted the same packet mark in output chain, but rename instead “packet-from-proxy” to “512_p”. And disable the simple queue entry with packet mark “packet-from-proxy”.
Output chain is working fine with dst-address-list only for download traffic. But i wanted to do like what it says here http://wiki.mikrotik.com/wiki/TransparentTrafficShaper
Looks very simple. I did not bridge thou.
Your scenario and on wiki scenario have following differences
on WIKI, it is single connection with two way data stream a) and b). Since both data steam came from outside of RouterOS you could mark the packet on prerouting chain
a) -------------------------------------------->
CLIENT RouterOS WEB-SERVER
b) <-------------------------------------------
on your scenario look on my post, the a) data stream came from client, that is fine to mark the packet on pre-routing. but the b) data stream came from RouterOS. in this case you could not mark the packet based on connection as shown on the wiki. The packet came from RouterOS will never passing through the chain prerouting.
Thanks. I understood. One more question. I’ve given two IPs for a client for his two PCs. But he pays for one. He wants to brows from both the pcs. Now can i restrict him to brows only from one pc at a time? No simultaneous connection from both the pcs. is it possible?
I have not tried it before, it will be complicated. but it could be done with some tricks.
you have to group the ip address of the same user in subnet. It could be done with dhcp static ip
2a) create pcc type of queue name it download and set the classify base on dst-address aslo the src-address mask name it download
2b) create second pcc for upload with dst-address and dst-address-mask
set on your simple queue to use this queue type
With this trick you will classify both ip on the same queue
For detail you could learn about PCC on mikrotik wiki