Memanipulasi ToS ICMP & DNS di MikroTik

Tujuan :

  • Memperkecil delay ping dari sisi klien ke arah Internet.
  • Mempercepat resolving hostname ke ip address.

Asumsi : Klien-klien berada pada subnet 10.10.10.0/28

  1. Memanipulasi Type of Service untuk ICMP Packet :
    > ip firewall mangle add chain=prerouting src-address=10.10.10.0/28 protocol=icmp action=mark-connection new-connection-mark=ICMP-CM passthrough=yes
    > ip firewall mangle add chain=prerouting connection-mark=ICMP-CM action=mark-packet new-packet-mark=ICMP-PM passthrough=yes
    > ip firewall mangle add chain=prerouting packet-mark=ICMP-PM action=change-tos new-tos=min-delay
  2. Memanipulasi Type of Service untuk DNS Resolving :
    > ip firewall mangle add chain=prerouting src-address=10.10.10.0/28 protocol=tcp dst-port=53 action=mark-connection new-connection-mark=DNS-CM passthrough=yes
    > ip firewall mangle add chain=prerouting src-address=10.10.10.0/28 protocol=udp dst-port=53 action=mark-connection new-connection-mark=DNS-CM passthrough=yes
    > ip firewall mangle add chain=prerouting connection-mark=DNS-CM action=mark-packet new-packet-mark=DNS-PM passthrough=yes
    > ip firewall mangle add chain=prerouting packet-mark=DNS-PM action=change-tos new-tos=min-delay
  3. Menambahkan Queue Type :
    > queue type add name="PFIFO-64" kind=pfifo pfifo-limit=64
  4. Mengalokasikan Bandwidth untuk ICMP Packet :
    > queue tree add name=ICMP parent=INTERNET packet-mark=ICMP-PM priority=1 limit-at=8000 max-limit=16000 queue=PFIFO-64
  5. Mengalokasikan Bandwidth untuk DNS Resolving :
    > queue tree add name=DNS parent=INTERNET packet-mark=DNS-PM priority=1 limit-at=8000 max-limit=16000 queue=PFIFO-64
  6. Good Luck!!

4 Comments

  1. Posted Juni 30, 2007 at 9:33 pm | Permalink

    ma kasih banyak om klo ada refrensi lagi pless om kirim ke eamil aq sukes selalu buat om;)) ;))

  2. Posted Juli 4, 2007 at 7:58 pm | Permalink

    maaf yah soale aku mudah lupa neh minta izin tuk comot tulisannya😀 kalo aku taruh di web ku pun pasti tak sertain nama nya pak de😀 hehe

  3. oleng
    Posted Agustus 15, 2010 at 12:24 pm | Permalink

    sumbernya di sebutin pak

    • irfa
      Posted November 6, 2010 at 9:23 am | Permalink

      Bozz
      klu settingan utk ping ke geteway spy ngga ikut pengaruh dr queues jd gede2 pada saat full BW , gmn bozz.? yg maksudnya… di client ping ke geteway nya ngga ikut gede2 ms nya… pada saat full BW nya. ada settingannya ga bozz?


Tulis sebuah Komentar

You must be logged in to post a comment.
%d blogger menyukai ini: