Code:
/ip firewall layer7-protocol add name=http-video regexp="http/(0\.9|1\.0|1\.1)[\x09-\x0d ][1-5][0-9][0-9][\x09-\x0d -~]*(content-type: video)"
Code:
/ip frewall mangle add action=mark-packet chain=prerouting comment="http-video mark-packet" \ disabled=no layer7-protocol=http-video new-packet-mark=http-video \ passthrough=no
Code:
/queue simple add max-limit=0/64000 name=http-video packet-marks=http-video
Selamat mencoba
#kalau ga jalan, mungkin proses penandaannya yang salah atau di queuenya ga sesuai atau di layer 7 nya yang kurang pas.
kalau settingan test di routerku jalan aja kok, tapi aku pake pcq ya..
cuman ya setingan seorang newbie yang ga pernah makan pojokan sekolah, kalau emang kurang pas tolong dikoreksi.
oh ya, aku pake MT versi 3 yang udah aku upgrade ke 3.23 dua hari lalu
Code:
/ip firewall layer7-protocol add comment="" name=http-video regexp="http/(0\\.9|1\\.0|1\\.1)[\\x09-\\x0d ][\ 1-5][0-9][0-9][\\x09-\\x0d -~]*(content-type: video)"
Code:
/ip fi ma add action=mark-packet chain=prerouting comment="Mark Packet HTTP Video" \ disabled=no in-interface=ether1 layer7-protocol=http-video \ new-packet-mark=http-video-up passthrough=no add action=mark-connection chain=forward comment="" disabled=no \ layer7-protocol=http-video new-connection-mark=video-stream passthrough=\ yes add action=mark-packet chain=forward comment="" connection-mark=video-stream \ disabled=no in-interface=ether2 layer7-protocol=http-video \ new-packet-mark=http-video-down passthrough=no
Code:
/que typ add kind=pcq name=http-video-up pcq-classifier=src-address pcq-limit=50 \ pcq-rate=0 pcq-total-limit=2000 add kind=pcq name=http-video-down pcq-classifier=dst-address pcq-limit=50 \ pcq-rate=0 pcq-total-limit=2000
Code:
/que sim add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \ direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=\ 64k/128k max-limit=64k/128k name="7. HTTP Video Traffict" packet-marks=\ http-video-up,http-video-down parent=none priority=8 queue=\ http-video-up/http-video-down total-queue=default-small add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \ direction=both disabled=no dst-address=0.0.0.0/0 interface=all limit-at=\ 0/0 max-limit=16k/96k name="Queue HTTP Video" packet-marks=\ http-video-up,http-video-down parent="7. HTTP Video Traffict" priority=8 \ queue=http-video-up/http-video-down target-addresses=0.0.0.0/0 \ total-queue=default-small
tapi sepertinya urutan peletakan menentukan prestasi
ket:
ether1 interface ke klien
ether2 interface ke ISP