How to limit PPPoE client bandwidth with Queue Tree?

as subject, i really confuse about this..

because PPPoE client get subnet mask 255.255.255.255 or /32. So, i can not add IP of PPPoE client with the network id: 192.168.5.0/32, then after i read the manual.. i guess i must set the Src. Address
List with pool1 at IP > Firewall > Mangle, like this:

ip firewall mangle> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting src-address-list=pool1 action=mark-connection new connection-mark=lap_works-con

1 chain=prerouting action=mark-packet new-packet-mark=lap_work

The pool1 range is 192.168.5.10-192.168.5.20

At the moment i try from client connect and get IP 192.168.5.15/32, gateway: 192.168.5.15, and 1st dns server ... and the 2nd either (taken from ipconfig /all).

and then i try to download something with Opera Browser.. but still got more than 10 KBps, even i already limit the speed to 2 KBps.


then i try little experiment to make sure the bandwidth limiter is works, so i change the IP address of client to 192.168.2.222/24 with gw 192.168.2.1 and i set the source address at IP > Firewall > Mange to 192.168.2.222, like this:

ip firewall mangle> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=prerouting src-address=192.168.2.222 action=mark-connection new-connection-mark=lap_works-con

1 chain=prerouting action=mark-packet new-packet-mark=lap_work

and then i try to download something with Opera Browser, and looks like the bandwidth limiter is working well, the speed is always under 2 KBps.


Please help me how to limit the IP Pool? what’s wrong with my setting, i will provides you all information if you need it to trace my setting failures. I’m on deadline :cry: i must submit my paper about this in this week… :unamused:

thanks.. :wink:


Best regards,
zack

For your information: I use Mikrotik OS v2.9.2

maybe there is problem with this version? please let me know :cry:

that version had some problems, better upgrade to 2.9.8 first

looks like i can’t upgrade, i just borrow this mikrotik from office where i write this paper for university…

just a minutes ago, i try to configure global-in and global-out, because before i use ether1 (local) and ether2 (public), like this:
queue tree> print
Flags: X - disabled, I - invalid
0 name=“Laptop-Wkst-Down” parent=global-in packet-mark=lap_work
limit-at=8000 queue=default priority=8 max-limit=16000 burst-limit=0
burst-threshold=0 burst-time=0s

1 name=“Laptop-Wkst-Up” parent=global-out packet-mark=lap_work limit-at=6000
queue=default priority=8 max-limit=12000 burst-limit=0 burst-threshold=0
burst-time=0s

and looks like it’s work now :smiley: i try to download a file with Opera Browser and the speed is under 2 KBps… i see the traffic in DU Meter is constant

thanks… btw if i do wrong, please let me know.. maybe i did wrong if i set it to global-in and global-out

For your information: (this what i have done at the moment)
when user’s pc & the network interface turn on, will get dhcp ip from range 192.168.3.1-192.168.3.20 (i set it from dhcp server and use ip pool from that range). Then when user want to use internet, so user must use the PPPoE to MT and MT will use freeradius for AAA (freeradius already integrated with MySQL database for accounting ~ count session time, upload, download; user login authentication), then i do queue tree to limit each user connection.

i hope global-in and global-out not affect to the LAN access (before connect to the internet with PPPoE), because i don’t test it.. but i will ASAP.