Hi every one here
I have pppoe server and everything ok
And made 4 profiles and gived 1mbit,2,3,4
So I have some sites I want make queue for them and give it 5 mbit
How can make this please
Please don’t copy / paste, only For example. Try to understand the logic, then apply & working fine.
# Mark facebook in Layer7 firewall
/ip firewall layer7-protocol
add name=facebook regexp=“^.+(facebook.com).*\$”
# Marking FACEBOOK.COM in mangle section using L7
/ip firewall mangle
add action=mark-connection chain=forward comment=FACEBOOK layer7-protocol=facebook new-connection-mark=facebook_conn
add action=mark-connection chain=prerouting new-connection-mark=facebook_conn protocol=tcp src-port=8080
add action=mark-packet chain=prerouting connection-mark=facebook_conn new-packet-mark=facebook_pkt passthrough=no
add action=mark-connection chain=postrouting dst-port=8080 new-connection-mark=facebook_conn protocol=tcp
add action=mark-packet chain=postrouting connection-mark=facebook_conn new-packet-mark=facebook_pkt passthrough=no
# ADD PCQ so that i can be applied on per ip bases later in simple queue
/queue type
add kind=pcq name=download-5mb pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=5120k pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
add kind=pcq name=upload-5mb pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 pcq-dst-address6-mask=64 pcq-limit=50 pcq-rate=5120k pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
# Add simple QUEUE to limit Facebook.com 5mb PER USER
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=“Limit every Users at 5mb using PCQ. for facebook only marked by mangle” direction=both disabled=no interface=all limit-at=0/0 max-limit=0/0 name=“Facebook.com 5Mb per use via g PCQ” packet-marks=facebook_pkt parent=none priority=8 queue=upload-5mb/download-5mb target-addresses=192.168.1.0/24 total-queue=default-small
Thanks for ur comment
In fact I have a good idea how its work coze all time iam reading the script and understanding it and after that I apply ito
Ur way can do it for any site let us say I want do for ex: www.aaaa.com
Same setups ?? In 7 layer
İf que is dnymic from radius ? And also ip’s. İs there another methot for this ?