Page 1 of 1

Stranges with sharing bandwidth example from the manual

Posted: Sun Aug 05, 2007 2:38 pm
by sergeda
Hi everyone.
I am trying to setup sharing bandwidth example from the manual in my network. Everything looks ok, but when I look at queue tree in Winbox I see that my Upload queue allways have rate bigger than Download queue. It's impossible. Even when I initiate download, grows my Upload queue. That's why I think something is wrong. Help me please with this. Here is my setup:

[admin@MikroTik] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=forward src-address=10.1.1.0/24 dst-address=!10.1.1.2 action=mark-connection new-connection-mark=all-user-con
passthrough=yes

1 chain=forward connection-mark=all-user-con action=mark-packet new-packet-mark=user-packets passthrough=yes

[admin@MikroTik] > queue tree print
Flags: X - disabled, I - invalid
0 name="Download" parent=Internal packet-mark="" limit-at=0 queue=default priority=8 max-limit=524288 burst-limit=0
burst-threshold=0 burst-time=0s

1 name="users-download" parent=Download packet-mark=user-packets limit-at=0 queue=pcq-download priority=8 max-limit=0
burst-limit=0 burst-threshold=0 burst-time=0s

2 name="Upload" parent=External packet-mark="" limit-at=0 queue=default priority=8 max-limit=524288 burst-limit=0
burst-threshold=0 burst-time=0s

3 name="users-upload" parent=Upload packet-mark=user-packets limit-at=0 queue=pcq-upload priority=8 max-limit=0 burst-limit=0
burst-threshold=0 burst-time=0s

[admin@MikroTik] > queue type print

5 name="pcq-download" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

6 name="pcq-upload" kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

Re: Stranges with sharing bandwidth example from the manual

Posted: Mon Aug 06, 2007 12:06 pm
by sergeda
The problem was connection not being marking because I've redirected 80 port to proxy on Mikrotik. After I've disabled this redirection all connections going to right queue. Now the question how to make it work with redirection to proxy. :)

Re: Stranges with sharing bandwidth example from the manual

Posted: Mon Aug 06, 2007 4:35 pm
by sergeda
Newermind.
I've found what I need to be able to use transparent proxy and bandwidth sharing together.
Just added 2 rules to mange to mark traffic going through proxy:

3 chain=input dst-address=10.1.1.2 protocol=tcp dst-port=8080 action=mark-connection new-connection-mark=all-user-con
passthrough=yes

4 chain=input connection-mark=all-user-con action=mark-packet new-packet-mark=user-packets passthrough=yes