Limit Youtube di Mikrotik Menggunakan Layer7 Protocol
Melimit dengan Layer 7 protocol
/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)"
dan tuntuk firewal mangele
/ip firewall mangle add action=mark-connection chain=forward comment="batasi download" connection-bytes=1024000-4294967295 disabled=no \ in-interface=Wan new-connection-mark=download_con passthrough=yes
/ip firewall mangle add action=mark-packet chain=forward comment="" connection-mark=download_con disabled=no in-interface=Wan \ new-packet-mark=download_pkt passthrough=yes
/ip firewall mangle add action=mark-packet chain=prerouting comment="limit video streaming" disabled=no layer7-protocol=http-video \ new-packet-mark=http-video-up passthrough=yes protocol=tcp
/ip firewall mangle add action=mark-packet chain=prerouting comment="limit audio streaming" disabled=no layer7-protocol=http-audio \ new-packet-mark=http-audio-up passthrough=yes protocol=tcp
dan untuk queue type adalah salah satu feature dari MikroTik untuk membantu memanage traffic rate dan traffic packet, disini saya mencoba menuliskan catatan kecil mengenai perhitungan
classifier dst.address dan dst.port atau yg lebih di kenal memanage traffic download
/queue type
/queue type add kind=pcq name=batasidownload pcq-classifier=dst-address pcq-limit=50 pcq-rate=256000 pcq-total-limit=2000
Penjelasan Queue Simple : merupakan cara termudah untuk melakukan management bandwidth yang diterapkan pada jaringan skala kecil sampai menengah untuk mengatur pemakaian bandwidth upload dan download tiap user.
/queue simple 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/8k max-limit=128k/128k name="HTTP Video Traffict" packet-marks=http-video-up parent=none \ priority=8 queue=default-small/default-small total-queue=default-small
/queue simple 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=128k/128k name="Queue HTTP Video" packet-marks=http-video-up parent= \ "HTTP Video Traffict" priority=8 queue=default-small/default-small target-addresses=0.0.0.0/0 total-queue= \ default-small
Queue Tree : mirip seperti queue simple tapi lebih rumit, yaitu dapat melakukan pembatasan bandwidth berdasarkan group bahkan secara hierarki. Kita harus mengaktifkan fitur Mangle pada Firewall jika ingin menggunakan Queue Tree
/queue tree add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=256k name=batasidownloadfreebrowsing \ packet-mark=download_pkt parent=global-out priority=8 queue=batasidownload
Friday, 27 March 2015
Limit Youtube di Mikrotik Menggunakan Layer7 Protocol
Posted By: Rufaidah-network - 22:51About Rufaidah-network
Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment
Subscribe to:
Post Comments (Atom)
Popular
Tags
Videos
0 komentar:
Post a Comment