Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
What version on MT have you installled?
PCQ is designed to share bandwidth equally amongst users - that’s not what you want to do, right?
Read up the manual, I think using simple queues you should be able to limit your three clients easily.
Best regards,
Christian Meis
2.9.8
Any Solution for this… plz let me know .. i have problem…
in same.. of this
Myasin
Hi,
The following example limits bandwidth per user at 128K and within that 56K of p2p:
First mark p2p traffic
ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-out p2p=all-p2p action=accept
ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept
than create queue type with rate limit and tree for p2p
queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address
queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address
queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8
queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8
Mark the rest of the traffic
ip firewall mangle add action=accept mark-flow=all
Create queue type with rate limit and queue tree
queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address
queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address
queue tree add parent=global-in queue=PCQ-Down flow=all priority=1
queue tree add parent=global-out queue=PCQ-Up flow=all priority=1
This works for me without any problem, but only in version 2.8, in 2.9 it’s different configuration, I have the solution for that also.
regards
Faton
hello thank can configuration can u please also past the one for 2.9 i use 2.9 thanks in advances
Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
If you have only 15 users. Just create 15 simple queues
/queue simple
add name=“queue1” target-addresses=192.168.2.1/32 max-limit=512000/512000
add name=“queue1” target-addresses=192.168.2.2/32 max-limit=1024000/1024000
…
If you would like to offer more traffic to the users if it is unused at the moment:
/queue simple
add name=“main_queue” interface=local max-limit=10000000/10000000
add name=“queue1” target-addresses=192.168.2.1/32 parent=main_queue direction=both priority=2 limit-at=512000/512000 max-limit=2000000/2000000
add name=“queue2” target-addresses=192.168.2.2/32 parent=main_queue direction=both priority=3 limit-at=1024000/1024000 max-limit=3000000/3000000
…
So this way if 192.168.2.1 is the only one active user in the network - he will get up to 2M traffic
Think about bursts too.
Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances
Hi,
The following example limits bandwidth per user at 128K and within that 56K of p2p:
First mark p2p traffic
ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept
ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept
than create queue type with rate limit and tree for p2p
queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address
queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address
queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8
queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8
Mark the rest of the trafficip firewall mangle add action=accept mark-flow=all
Create queue type with rate limit and queue tree
queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address
queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address
queue tree add parent=global-in queue=PCQ-Down flow=all priority=1
queue tree add parent=global-out queue=PCQ-Up flow=all priority=1
This works for me without any problem, but only in version 2.8, in 2.9 it’s different configuration, I have the solution for that also.regards
Faton
Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances
fatonk:
Hi,
The following example limits bandwidth per user at 128K and within that 56K of p2p:
First mark p2p traffic
ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept
ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept
than create queue type with rate limit and tree for p2p
queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address
queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address
queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8
queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8
Mark the rest of the trafficip firewall mangle add action=accept mark-flow=all
Create queue type with rate limit and queue tree
queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address
queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address
queue tree add parent=global-in queue=PCQ-Down flow=all priority=1
queue tree add parent=global-out queue=PCQ-Up flow=all priority=1
This works for me without any problem, but only in version 2.8, in 2.9 it’s different configuration, I have the solution for that also.regards
Faton
3/4kbps is too little bandwith… try a little more… about 30 Kbps…
Regards
–
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?
onowojemma:
Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances
fatonk:
Hi,
The following example limits bandwidth per user at 128K and within that 56K of p2p:
First mark p2p traffic
ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept
ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept
than create queue type with rate limit and tree for p2p
queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address
queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address
queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8
queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8
Mark the rest of the trafficip firewall mangle add action=accept mark-flow=all
Create queue type with rate limit and queue tree
queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address
queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address
queue tree add parent=global-in queue=PCQ-Down flow=all priority=1
queue tree add parent=global-out queue=PCQ-Up flow=all priority=1
This works for me without any problem, but only in version 2.8, in 2.9 it’s different configuration, I have the solution for that also.regards
Faton
3/4kbps is too little bandwith… try a little more… about 30 Kbps…
Regards
–
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?
Are you talking about 30 kilo bits or 30 kilo bytes???
Regards
–
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
I think it 30kilo byte he is talking off,like what i did was to multiple 10243 =3kilo byte so it now going to be 102430=30kilo byte but that will finsh up what i got from my ISP it means i can only have 17 system on the network of 256/512 but the cost of runing it will be too much
i think the redhat linux does it better than mikrotik then,
So please if u still has help let me know thanks
Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?
Are you talking about 30 kilo bits or 30 kilo bytes???
Regards
–
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
Hi,
Upon request of onowojemma, I’m posting the queue rules for ver.2.9.x
ip firewall mangle add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn
ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p
ip firewall mangle add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=other
queue type add name=p2p-Down kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue type add name=p2p-Up kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
queue type add name=Down kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
queue type add name=Up kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000
queue tree add name=p2p-up parent=WAN packet-mark=p2p limit-at=0 queue=p2p-Up priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=p2p-Down parent=LAN packet-mark=p2p limit-at=0 queue=p2p-Down priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=Upload parent=WAN packet-mark=other limit-at=0 queue=Up priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
queue tree add name=Download parent=LAN packet-mark=other limit-at=0 queue=Down priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
Regards,
Faton
Thx for your all advence!Work! ![]()