Community discussions

MUM Europe 2020
just joined
Topic Author
Posts: 7
Joined: Tue Nov 17, 2009 9:38 am

[Ask]Applying best Bandwidth Management with ext-Proxy

Wed Oct 24, 2012 7:31 pm

I only have 2 Question.
1. What happened with dst-nat-ed packets and how or where should i mark the packet so I can apply bandwidth management to it.
2. Which is better to apply in a shared wan connection, PCQ queue tree or regular queue tree? since the received bandwidth is always unstable(up-to)

Now the explaination:
I'm trying to find the best bandwidth management to this topology. Appology if i use explained topology not graphical to better explain the situation.
1. Users will connect to a switch. the network is
2. Switch is connected to a port in mikrotik RB750 with address in mikrotik
3. A Linux based proxy server with ip address is connected to another port in mikrotik with address
4. Another port in mikrotik with ip address of is connected to an ADSL modem using address
5. ADSL modem is connected to internet using PPPoE connection to the ISP

ros code

/ip address
add address= disabled=no interface=04-Proxy network=
add address= disabled=no interface=05-Speedy network=
add address= disabled=no interface=02-LAN network=
add address= disabled=no interface=01-None network=

ros code

/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
add action=dst-nat chain=dstnat comment="Proxy for Local redirection" disabled=no dst-port=80,8080,3128 in-interface=\
    02-LAN protocol=tcp to-addresses= to-ports=3128
add action=dst-nat chain=dstnat comment="Redirect DNS Request from LAN" disabled=no dst-port=53 protocol=udp to-ports=53
add action=redirect chain=dstnat comment="Redirect DNS Request from squid" disabled=no dst-port=53 in-interface=04-Proxy \
    protocol=udp to-ports=53
above are my ip address and nat
as my question above, i'm having trouble to create suitable queue for 12 users only when the http requests are dst-nated to proxy. I have marked the hit packet from proxy with DSCP 12. where should i put marking for the http requests that are automatically routed to proxy, and how to limit the bandwidth so even proxy request to the server also limited. because even tho i can limit the MISS packet to the users, the proxy request to the internet is still unlimited, so the other service such as game connection is disrupted. Especially, how can i best manage the upload request that has been passed through proxy so that it is also properly managed?

Thankyou so much for replies.
Member Candidate
Member Candidate
Posts: 195
Joined: Wed Feb 23, 2011 8:33 am

Re: [Ask]Applying best Bandwidth Management with ext-Proxy

Thu Oct 25, 2012 8:11 am

mark packets in forward, one mark for upload to port 3128 protocol tcp, one mark for download from port 3128 protocol tcp
after you create two pcq queues (one for upload, one for download from proxy), traffic shaping should be done in global-out for upload and download from proxy.

Who is online

Users browsing this forum: No registered users and 48 guests