Mikrotik | Forum Mikrotik Indonesia   Mikrotik Manual Mikrotik iSPY Mikrotik RSS Feed
This Logo is a Courtesy from RumahDowty

Go Back   Mikrotik | Forum Mikrotik Indonesia > Diskusi Mikrotik RouterOS > Scripting @ Mikrotik
iSpy My iTrade Register FAQ Members List Calendar Mark Forums Read

Diskusi Script Bikin Queues Tree B/W Limiter pada Scripting @ Mikrotik | Mikrotik | Forum Mikrotik Indonesia : maap baru gabung, ni coba posting script bikin queues tree buat B/W limiter. semoga ...




 
Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 09-10-2008, 09:59
aditya57164's Avatar
aditya57164 aditya57164 is offline
Member
 
Join Date: Sep 2008
Location: Solo
Posts: 110
iTrader: (0)
Thanks: 6
Thanked 7 Times in 6 Posts
aditya57164 is on a distinguished road
Send a message via Yahoo to aditya57164
Lightbulb Script Bikin Queues Tree B/W Limiter




maap baru gabung, ni coba posting script bikin queues tree buat B/W limiter. semoga bermanfaat.

kalo masih ada yang salah mohon di benerin yaa...

1. bikin mangle ya dulu, pake script seperti di bawah. (range IP 2 s/d 11)

:for e from 2 to 11 do={
/ip firewall mangle add chain=prerouting src-address=(192.168.224. . $e) action=mark-connection new-connection-mark=($e . indosatcon )
/ip firewall mangle add chain=prerouting connection-mark=($e . indosatcon ) protocol=!1 action=mark-packet new-packet-mark=($e . indosatflow ) passthrough=no
}

2. trus bikin queues nya, seperti ini.

:for e from 2 to 11 do={
/queue tree add name=("STREAM-DOWN-" . $e) parent=STREAM-DOWN packet-mark=($e . indosatflow)
/queue tree add name=("STREAM-UP-" . $e) parent=STREAM-UP packet-mark=($e . indosatflow)
}


tinggal copy paste di terminal nya... enter...

trus dah jadi dech...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

The Following 2 Users Say Thank You to aditya57164 For This Useful Post:
  #2 (permalink)  
Old 15-10-2008, 20:58
dna_09 dna_09 is offline
Baru Gabung
 
Join Date: Oct 2007
Posts: 12
iTrader: (0)
Thanks: 3
Thanked 0 Times in 0 Posts
dna_09 is on a distinguished road
ko saya bingung bacanya yah ..

itu ko ada parent dan


juga

itu ko IP nya ko g lengkap ???

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 16-10-2008, 14:18
aditya57164's Avatar
aditya57164 aditya57164 is offline
Member
 
Join Date: Sep 2008
Location: Solo
Posts: 110
iTrader: (0)
Thanks: 6
Thanked 7 Times in 6 Posts
aditya57164 is on a distinguished road
Send a message via Yahoo to aditya57164
:for e from 2 to 11 do={

yaitu perintah untuk membuat script dari angka atau ip yang angka belakangnya 2 sampe dengan 11

src-address=(192.168.224. . $e)

yaitu opsi source ip localnya yang di pakai pada LAN nya, kenapa gak di tulis lengkap, karena untuk alamat ip yang paling belakang udah di buat secara otomatis seperti diatas.

ooo.. iya maap sedikit tambahan, sebelum kita buat script pada queues, kita buat queues secara manual dulu untuk parrent nya. yaitu parent=STREAM-DOWN dan parent=STREAM-UP.

hehehe... maap kalo kurang jelas tulisan ne... maklum masih belajar juga mas...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 27-10-2008, 01:50
lonthong2002's Avatar
lonthong2002 lonthong2002 is offline
Member Senior
 
Join Date: Jul 2007
Posts: 350
iTrader: (1)
Thanks: 17
Thanked 27 Times in 24 Posts
lonthong2002 will become famous soon enoughlonthong2002 will become famous soon enough
Send a message via MSN to lonthong2002 Send a message via Yahoo to lonthong2002
wahh makin mantep aja newbie sekarang

trus yang jelas dan komplet gimana dong script nya
ntar kalau bagus kan bisa dimasukin di halaman tutorial


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 27-10-2008, 09:35
unique_leader's Avatar
unique_leader unique_leader is online now
Member Senior
 
Join Date: Jul 2007
Posts: 318
iTrader: (0)
Thanks: 19
Thanked 28 Times in 17 Posts
unique_leader is on a distinguished roadunique_leader is on a distinguished road
mo nanya juga nih. trus untuk ngelimit bw nya. dimana ??

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28-10-2008, 17:46
aditya57164's Avatar
aditya57164 aditya57164 is offline
Member
 
Join Date: Sep 2008
Location: Solo
Posts: 110
iTrader: (0)
Thanks: 6
Thanked 7 Times in 6 Posts
aditya57164 is on a distinguished road
Send a message via Yahoo to aditya57164
Quote:
Originally Posted by unique_leader View Post
mo nanya juga nih. trus untuk ngelimit bw nya. dimana ??
di queues>>queues tree.

tinggal dobel klik nanti tinggal isi aja limitnya.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 28-10-2008, 18:09
unique_leader's Avatar
unique_leader unique_leader is online now
Member Senior
 
Join Date: Jul 2007
Posts: 318
iTrader: (0)
Thanks: 19
Thanked 28 Times in 17 Posts
unique_leader is on a distinguished roadunique_leader is on a distinguished road
Quote:
Originally Posted by aditya57164 View Post
di queues>>queues tree.

tinggal dobel klik nanti tinggal isi aja limitnya.
oow berarti packet marknya udah tersedia ya. tinggal di masukin aja di queue treenya

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 29-10-2008, 03:07
mr toni's Avatar
mr toni mr toni is offline
Baru Gabung
 
Join Date: Oct 2008
Posts: 17
iTrader: (0)
Thanks: 3
Thanked 0 Times in 0 Posts
mr toni is on a distinguished road
Send a message via Yahoo to mr toni
Quote:
Originally Posted by aditya57164 View Post
maap baru gabung, ni coba posting script bikin queues tree buat B/W limiter. semoga bermanfaat.

kalo masih ada yang salah mohon di benerin yaa...

1. bikin mangle ya dulu, pake script seperti di bawah. (range IP 2 s/d 11)

:for e from 2 to 11 do={
/ip firewall mangle add chain=prerouting src-address=(192.168.224. . $e) action=mark-connection new-connection-mark=($e . indosatcon )
/ip firewall mangle add chain=prerouting connection-mark=($e . indosatcon ) protocol=!1 action=mark-packet new-packet-mark=($e . indosatflow ) passthrough=no
}

2. trus bikin queues nya, seperti ini.

:for e from 2 to 11 do={
/queue tree add name=("STREAM-DOWN-" . $e) parent=STREAM-DOWN packet-mark=($e . indosatflow)
/queue tree add name=("STREAM-UP-" . $e) parent=STREAM-UP packet-mark=($e . indosatflow)
}


tinggal copy paste di terminal nya... enter...

trus dah jadi dech...
tambahin dikit donk biar lengkap
masih bingung nih bosss

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 30-10-2008, 21:24
aditya57164's Avatar
aditya57164 aditya57164 is offline
Member
 
Join Date: Sep 2008
Location: Solo
Posts: 110
iTrader: (0)
Thanks: 6
Thanked 7 Times in 6 Posts
aditya57164 is on a distinguished road
Send a message via Yahoo to aditya57164
Siap...

1. kita bikin queue di queue tree dengan name=STREAM-DOWN untuk parrent=global-in
2. bikin lagi queue di queue tree dengan name=STREAM-UP untuk parrent=global-out
3.membuat mangle pada /ip firewall. dengan menjalankan script seperti di bawah pada terminal

untuk miktrotik v 2.9.xx

:for e from 2 to 11 do={
/ip firewall mangle add chain=prerouting src-address=(192.168.224. . $e) action=mark-connection new-connection-mark=($e . indosatcon )
/ip firewall mangle add chain=prerouting connection-mark=($e . indosatcon ) protocol=!1 action=mark-packet new-packet-mark=($e . indosatflow ) passthrough=no
}


untuk mikrotik v 3.x

:for e from=2 to=11 do={
/ip firewall mangle add chain=prerouting src-address="192.168.224.$e" action=mark-connection new-connection-mark="$e. indosatcon"
/ip firewall mangle add chain=prerouting connection-mark="$e. indosatcon" protocol=!1 action=mark-packet new-packet-mark="$e. indosatflow" passthrough=no
}


cek pada /ip firewall mangle memastikan bahwa script nya berjalan.

4. kemudian kita buat queue tree nya dengan menjalan kan script seperti di bawah.

untuk mikrotik v 2.9.xx

:for e from 2 to 11 do={
/queue tree add name=(”STREAM-DOWN-” . $e) parent=STREAM-DOWN packet-mark=($e. indosatflow)
/queue tree add name=(”STREAM-UP-” . $e) parent=STREAM-UP packet-mark=($e. indosatflow)
}


untuk mikrotik v 3.xx

:for e from=2 to=20 do={
/queue tree add name="STREAM-DOWN-.$e" parent=STREAM-DOWN packet-mark="$e. indosatflow"
/queue tree add name="STREAM-UP-. $e" parent=STREAM-UP packet-mark="$e. indosatflow"
}


cek juga pada queue tree nya apa kah sudah ada list queue nya.

5. coba melimit salah sati ip dan amati... apakah sudah bener berjalan.

maap kalo masih pada bingung... baru posting pertama... dan baru sinau... jadi masih hancur nerangin nya.....

semoga para pakar mikrotiker bisa mebantu...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 31-10-2008, 09:35
unique_leader's Avatar
unique_leader unique_leader is online now
Member Senior
 
Join Date: Jul 2007
Posts: 318
iTrader: (0)
Thanks: 19
Thanked 28 Times in 17 Posts
unique_leader is on a distinguished roadunique_leader is on a distinguished road
Quote:
Originally Posted by aditya57164 View Post
Siap...

1. kita bikin queue di queue tree dengan name=STREAM-DOWN untuk parrent=global-in
2. bikin lagi queue di queue tree dengan name=STREAM-UP untuk parrent=global-out
3.membuat mangle pada /ip firewall. dengan menjalankan script seperti di bawah pada terminal

untuk miktrotik v 2.9.xx

:for e from 2 to 11 do={
/ip firewall mangle add chain=prerouting src-address=(192.168.224. . $e) action=mark-connection new-connection-mark=($e . indosatcon )
/ip firewall mangle add chain=prerouting connection-mark=($e . indosatcon ) protocol=!1 action=mark-packet new-packet-mark=($e . indosatflow ) passthrough=no
}


untuk mikrotik v 3.x

:for e from=2 to=11 do={
/ip firewall mangle add chain=prerouting src-address="192.168.224.$e" action=mark-connection new-connection-mark="$e. indosatcon"
/ip firewall mangle add chain=prerouting connection-mark="$e. indosatcon" protocol=!1 action=mark-packet new-packet-mark="$e. indosatflow" passthrough=no
}


cek pada /ip firewall mangle memastikan bahwa script nya berjalan.

4. kemudian kita buat queue tree nya dengan menjalan kan script seperti di bawah.

untuk mikrotik v 2.9.xx

:for e from 2 to 11 do={
/queue tree add name=(”STREAM-DOWN-” . $e) parent=STREAM-DOWN packet-mark=($e. indosatflow)
/queue tree add name=(”STREAM-UP-” . $e) parent=STREAM-UP packet-mark=($e. indosatflow)
}


untuk mikrotik v 3.xx

:for e from=2 to=20 do={
/queue tree add name="STREAM-DOWN-.$e" parent=STREAM-DOWN packet-mark="$e. indosatflow"
/queue tree add name="STREAM-UP-. $e" parent=STREAM-UP packet-mark="$e. indosatflow"
}


cek juga pada queue tree nya apa kah sudah ada list queue nya.

5. coba melimit salah sati ip dan amati... apakah sudah bener berjalan.

maap kalo masih pada bingung... baru posting pertama... dan baru sinau... jadi masih hancur nerangin nya.....

semoga para pakar mikrotiker bisa mebantu...
kalo ngelimitnya juga pake script bisa ga?? juga mo tnya nih kok protocolnya 1 = icmp knp tuh.


Last edited by unique_leader : 02-11-2008 at 08:56.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to unique_leader For This Useful Post:
  #11 (permalink)  
Old 07-11-2008, 08:53
adeldian adeldian is offline
Member Senior
 
Join Date: Nov 2007
Posts: 377
iTrader: (2)
Thanks: 1
Thanked 82 Times in 58 Posts
adeldian has a spectacular aura aboutadeldian has a spectacular aura aboutadeldian has a spectacular aura aboutadeldian has a spectacular aura aboutadeldian has a spectacular aura about
Send a message via Yahoo to adeldian
itu maskusnya yang bukan ICMP (!1) === (!) artinya "yang bukan"
jadi protoclo udp,tcp dll kena limit hehhehe dan icmp tidak kena lmit
semoga membantu

teirma kasih

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-11-2008, 09:30
unique_leader's Avatar
unique_leader unique_leader is online now
Member Senior
 
Join Date: Jul 2007
Posts: 318
iTrader: (0)
Thanks: 19
Thanked 28 Times in 17 Posts
unique_leader is on a distinguished roadunique_leader is on a distinguished road
Quote:
Originally Posted by adeldian View Post
itu maskusnya yang bukan ICMP (!1) === (!) artinya "yang bukan"
jadi protoclo udp,tcp dll kena limit hehhehe dan icmp tidak kena lmit
semoga membantu

teirma kasih
aku kira tanda ! [note] itu untuk menandai paket itu. mslhnya ada bbrp script/mangle jika kita memberikan tanda ! baru jalan packet nya. jika di ilangkan malah ga jalan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 27-12-2008, 02:07
pendekar pendekar is offline
Baru Gabung
 
Join Date: Dec 2008
Posts: 3
iTrader: (0)
Thanks: 0
Thanked 0 Times in 0 Posts
pendekar is on a distinguished road
ini kenapa yah....pas jajal yg script

:for e from 3 to 200 do={
/queue tree add name=(”STREAM-DOWN-” . $e) parent=STREAM-DOWN packet-mark=($e. indosatflow)
/queue tree add name=(”STREAM-UP-” . $e) parent=STREAM-UP packet-mark=($e. indosatflow)
}

hasilnya

not enough arguments for difference
invalid expression
not enough arguments for difference
invalid expression


itu kenapa yah...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ask] bikin bandwitch management pk queue tree Dr.Geyonk Beginner Basics 2 30-10-2008 21:49
ASk: PPPOE and Simple Queues cooling General Networking 20 16-09-2008 14:02
help me bw limiter motokare2006 Beginner Basics 3 13-03-2008 23:30
Bikin Script lagi ??? eddysubakir Scripting @ Mikrotik 3 08-03-2008 08:04
script mangle - queue tree di ISP ponywaterhouse