Marking Speedtest And Set Different Bandwitdh Speed

We can provide different speed on speedtest when your user doing speedtest it's can also give an special role whether you want to block the speedtest or any other else.

The frist time you have to create regext to match spesific target in this case is speedtest
/ip firewall layer7-protocol
add name=speedtest regexp="^.+(speedtest).*\\\$"

Next step you have to create mangle to marking connection and packet
/ip firewall mangle
add action=mark-connection chain=forward comment=speedtest_conn layer7-protocol=speedtest new-connection-mark=speedtest_conn passthrough=yes
add action=mark-connection chain=prerouting comment=speedtest_conn new-connection-mark=speedtest_conn passthrough=yes protocol=tcp src-port=8080
add action=mark-connection chain=postrouting comment=speedtest_conn dst-port=8080 new-connection-mark=speedtest_conn passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting comment=speedtest_pkt connection-mark=speedtest_conn new-packet-mark=speedtest_pkt passthrough=no
add action=mark-packet chain=postrouting comment=speedtest_pkt connection-mark=speedtest_conn new-packet-mark=speedtest_pkt passthrough=no

Next step create queue type upload and download and give how much BW do you spend for speedtest
/queue type
add kind=pcq name=PCQ-UPLOAD-5M pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=5M pcq-src-address6-mask=64
add kind=pcq name=PCQ-DOWNLOAD-5M pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=5M pcq-src-address6-mask=64
add kind=pcq name=PCQ-DOWNLOAD-10M pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=10M pcq-src-address6-mask=64
add kind=pcq name=PCQ-UPLOAD-10M pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=10M pcq-src-address6-mask=64
add kind=pcq name=Speedtest-download-15Mbps pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=15M pcq-src-address6-mask=64
add kind=pcq name=Speedtest-upload-15Mbps pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=15M pcq-src-address6-mask=64

Last step create queue simple for speedtest with packet mark corresponding with mangle that you already created before. Pay attention that the speedtest role have to put at the first line because queue will read from up to button./queue simple
add max-limit=10M/10M name=speedtest-15mb packet-marks=speedtest_pkt queue=Speedtest-upload-15Mbps/Speedtest-download-15Mbps target=192.168.1.0/24
add max-limit=3M/3M name="PARENT 1" queue=PCQ-UPLOAD-5M/PCQ-DOWNLOAD-5M target=192.168.1.0/24

Tulis komentar anda... Conversion Conversion Emoticon Emoticon

Thanks for your comment