Friday, June 23, 2017

High Priority For Speed Test 8Mb Per User (speedtest.net)



/ip firewall layer7-protocol
add name=SpeedTest regexp="^.+(speedtest).*\\\$"
/ip firewall mangle
add action=mark-connection chain=forward comment="Speed Test Server" \
    layer7-protocol=SpeedTest new-connection-mark=SpeedTest_Con passthrough=yes
add action=mark-connection chain=prerouting new-connection-mark=SpeedTest_Con \
    passthrough=yes protocol=tcp src-port=8080
add action=mark-packet chain=prerouting connection-mark=SpeedTest_Con \
    new-packet-mark=SpeedTest_Packets passthrough=no
add action=mark-connection chain=postrouting dst-port=8080 new-connection-mark=\
    SpeedTest_Con passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=SpeedTest_Con \
    new-packet-mark=SpeedTest_Packets passthrough=no
/queue type
add kind=pcq name=Dow8MB pcq-classifier=dst-address pcq-dst-address6-mask=64 \
    pcq-rate=8192k pcq-src-address6-mask=64
add kind=pcq name=Up8MB pcq-classifier=src-address pcq-dst-address6-mask=64 \
    pcq-rate=8192k pcq-src-address6-mask=64
/queue simple
add comment="Speed Test 8Mb Per User" name="Speed Test" packet-marks=\
    SpeedTest_Packets queue=Up8MB/Dow8MB target=192.168.2.0/24
/

19 comments:

  1. Hamza Bhi ya lo MY PC or *MB Target keya han wo kon sa han

    ReplyDelete
  2. Can it run on rb951ui 2nd?

    ReplyDelete
  3. target=192.168.2.0/24 ya server ka lan ip ha?
    yaha may apny server ka LAN ip add karo bahi jo kay 200.168100.1/24 ha??

    ReplyDelete
  4. aslm my network range is split different.very cofused sheikh

    ReplyDelete
  5. Hamza Bhai apna cell number mjy es number py SMS karein plz.0312_7201209

    ReplyDelete
    Replies
    1. Sorry, you can call me on facebook
      https://www.facebook.com/hamzakhalil202

      Delete
    2. that script can work on pppoe user ??

      Delete
  6. HI DEAR

    I USE 10.5.50.1 FOR HOTSPOT USERS , AND 23.23.23.1 FOR PPPOE USERS
    HOW I CAN ADD IP TO SCRIPT FOR ALL USERS(HOTSPOT + PPPOE)??

    ReplyDelete
  7. Mare mikrotik ma ya kam nahe kar re

    ReplyDelete
  8. 8080 ko kis port se change krna ha dear

    ReplyDelete
  9. Hi Hamza,

    Nice to see your post on this query of the customers, but it wont work until we have a backbone of more then 8 Mbps, Customers in my network are getting File download properly but they are not getting same speed on speedtest websites.

    ReplyDelete