Step-1
Use this following script to create a layer 7 with the name of Speed-test .
Use this following script to create a layer 7 with the name of Speed-test .
/ip firewall layer7-protocol add name=speedtest regexp="^.+(speedtest).*\\\$"
Step-2
/ip firewall mangle add action=mark-connection chain=forward comment=SPEEDTEST.NET layer7-protocol=speedtest new-connection-mark=speedtest_conn add action=mark-connection chain=prerouting new-connection-mark=speedtest_conn protocol=tcp src-port=8080 add action=mark-packet chain=prerouting connection-mark=speedtest_conn new-packet-mark=speedtest passthrough=no add action=mark-connection chain=postrouting dst-port=8080 new-connection-mark=speedtest_conn protocol=tcp add action=mark-packet chain=postrouting connection-mark=speedtest_conn new-packet-mark=speedtest passthrough=no
Step-3
Create the PCQ for per connections . Because if you will not create the pcq then it would not
be more efficient so you have to create the PCQ and same I discussed on my previous blogs
topics .
/queue type add kind=pcq name=download-2mb 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=2048k \ pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000 add kind=pcq name=upload-2mb 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=2048k \ pcq-src-address-mask=32 pcq-src-address6-mask=64 pcq-total-limit=2000
Step-4/queue simple add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment=Fir all users direction=both disabled=no interface=all limit-at=0/0 max-limit=0/0 name=\ Speedtest_net\ packet-marks=speedtest parent=none priority=8 queue=upload-2mb/download-2mb total-queue=default-small
No comments:
Post a Comment