Queue tree untuk warnet

catatan saya kali ini tentang seting queue di mikrotik untuk warnet…….saya memakai queue tree, kenap kok g pake simple queue……?? karena simple queue (versi mikrotik petani) idm bs lolos. lansung saja kita lihat dan kita buat :

asumsi  kecepatan internet :

download min=800k  max=1m

upload min =200k max =300k

1.      Set Ip Address

Code:

ip address add address=192.200.1.2/24 interface=ether1
ip address add address=192.168.1.1/24 interface=ether2

2.      Setting DNS

Code:

ip dns static add name=Sejahtera.com address=192.168.1.1
ip dns set primary-dns=202.134.1.10 secondary-dns=208.67.222.222 allow-remote-requests=yes

3.      Nat masquerade

Code:

ip firewall nat add chain=srcnat src-address=192.168.1.0/28 action=masquerade

4.      Member Gateway

Code:

ip route add gateway=192.168.1.1

5.      Membuat Mark Connection yang nantinya di pakai untuk memilah Paket

Code:

ip firewall mangle add chain=forward src-address=192.168.1.2 action=mark-connection new-connection-mark=server
ip firewall mangle add chain=forward src-address=192.168.1.3 action=mark-connection new-connection-mark=client1
ip firewall mangle add chain=forward src-address=192.168.1.4 action=mark-connection new-connection-mark=client2
ip firewall mangle add chain=forward src-address=192.168.1.5 action=mark-connection new-connection-mark=client3
ip firewall mangle add chain=forward src-address=192.168.1.6 action=mark-connection new-connection-mark=client4
ip firewall mangle add chain=forward src-address=192.168.1.7 action=mark-connection new-connection-mark=client5
ip firewall mangle add chain=forward src-address=192.168.1.8 action=mark-connection new-connection-mark=client6
ip firewall mangle add chain=forward src-address=192.168.1.9 action=mark-connection new-connection-mark=client7
ip firewall mangle add chain=forward src-address=192.168.1.10 action=mark-connection new-connection-mark=client8
ip firewall mangle add chain=forward src-address=192.168.1.11 action=mark-connection new-connection-mark=client9
ip firewall mangle add chain=forward src-address=192.168.1.12 action=mark-connection new-connection-mark=client10

6.      Membuat mark packet untuk Queue, yang didapat dari mark connection

Code:

ip firewall mangle add chain=forward connection-mark=server action=mark-packet new-packet-mark=server
ip firewall mangle add chain=forward connection-mark=client1 action=mark-packet new-packet-mark=client1
ip firewall mangle add chain=forward connection-mark=pc2 action=mark-packet new-packet-mark=client2
ip firewall mangle add chain=forward connection-mark=client3 action=mark-packet new-packet-mark=client3
ip firewall mangle add chain=forward connection-mark=client4 action=mark-packet new-packet-mark=client4
ip firewall mangle add chain=forward connection-mark=client5 action=mark-packet new-packet-mark=client5
ip firewall mangle add chain=forward connection-mark=client6 action=mark-packet new-packet-mark=client6
ip firewall mangle add chain=forward connection-mark=client7 action=mark-packet new-packet-mark=client7
ip firewall mangle add chain=forward connection-mark=client8 action=mark-packet new-packet-mark=client8
ip firewall mangle add chain=forward connection-mark=client9 action=mark-packet new-packet-mark=client9
ip firewall mangle add chain=forward connection-mark=client10 action=mark-packet new-packet-mark=client10

7.      Membuat Parent tertinggi Queue

Code:

queue tree add name=sejahtera parent=ether2 max-limit=10000000

8.      Membuat Queue download per terminal

Code:

queue tree add name=serverbiling packet-mark=server parent=sejahtera limit-at=128000 max-limit=512000
queue tree add name=client1 packet-mark=client1 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client2 packet-mark=client2 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client3 packet-mark=client3 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client4 packet-mark=client4 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client5 packet-mark=client5 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client6 packet-mark=client6 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client7 packet-mark=client7 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client8 packet-mark=client8 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client9 packet-mark=client9 parent=sejahtera limit-at=64000 max-limit=250000
queue tree add name=client10 packet-mark=client10 parent=sejahtera limit-at=64000 max-limit=250000

9.      Membuat Queue upload per terminal

queue tree add name=sejahteraup parent=ether1 max-limit=500000
queue tree add name=serverbilingup packet-mark=server parent=sejahteraup limit-at=200000 max-limit=300000
queue tree add name=client1up packet-mark=client1 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client2up packet-mark=client2 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client3up packet-mark=client3 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client4up packet-mark=client4 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client5up packet-mark=client5 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client6up packet-mark=client6 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client7up packet-mark=client7 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client8up packet-mark=client8 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client9up packet-mark=client9 parent=sejahteraup limit-at=20000 max-limit=30000
queue tree add name=client10up packet-mark=client10 parent=sejahteraup limit-at=20000 max-limit=30000

rfrensi :

http://www.forum.devilzc0de.com/printthread.php?tid=2532

Tentang faish83

langkah maju
Pos ini dipublikasikan di Uncategorized dan tag . Tandai permalink.

2 Balasan ke Queue tree untuk warnet

  1. Kalau sempat 100 clientnya cemana bro😦 capek bener ngetikin itu markconnection 1per satu😦

  2. Kang Mamuza berkata:

    Salam kenal sebelumnya kang faish, catatan yang sangat jelas dan terarah.
    Kang saya masih newbie apakah bisa membinimbing untuk setting proxy dan kang faish pernah mengalami untuk buat server lokal (webserver, mail server, print server, file server, dns server, etc) juga

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s