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 Cara blok ip gmn sih? pada Scripting @ Mikrotik | Mikrotik | Forum Mikrotik Indonesia : Ouh iya bwt para master mikrotik mohon bantuannya nih gmn sih cara blok ip? jadi ...




 
Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 26-07-2007, 10:12
server_2net's Avatar
server_2net server_2net is offline
Baru Gabung
 
Join Date: Jul 2007
Posts: 1
iTrader: (0)
Thanks: 0
Thanked 0 Times in 0 Posts
server_2net is on a distinguished road
Cara blok ip gmn sih?




Ouh iya bwt para master mikrotik mohon bantuannya nih gmn sih cara blok ip? jadi hanya ip tertentu aja yg bisa di gunakan misalnya yg mau sy pake 192.168.1.1 ampe 192.168.1.50 trs ip yg gk di pakenya di blok gmn tuh? terima kasih

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

  #2 (permalink)  
Old 26-07-2007, 10:37
okto_2005's Avatar
okto_2005 okto_2005 is offline
Member Super Senior
 
Join Date: Jul 2007
Posts: 638
iTrader: (0)
Thanks: 10
Thanked 250 Times in 104 Posts
okto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to beholdokto_2005 is a splendid one to behold
Send a message via Yahoo to okto_2005 Send a message via Skype™ to okto_2005
ada macem macem bro
pertama pake subnetting nah biasanya kalo /24 dipake semua (256 ip) /25 128 ip /26 64 ip. ini tgt jaringann elo bro... kalo kantoran biasanya sih pake /24 nanti di firewall rulenya tinggal di drop aja ip yg ga boleh akses inet kalo gamecenter lebih enak pake /26 ato /25 tgt kapasitas kompi juga.

semakin kecil subnet broadcast ip nya makin cepet jadi latency makin kecil.

kalo menurut tulisan elo.. cuman pake ip 192.168.1.1 - 50 pake subnet yg /26 aja terus ip yg ga boleh akses di drop aja di rule firewall.

@admin
ini salah kamar nigh pindahin yah ^^

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to okto_2005 For This Useful Post:
  #3 (permalink)  
Old 26-07-2007, 10:44
locantop's Avatar
locantop locantop is online now
Member
 
Join Date: Jul 2007
Posts: 156
iTrader: (0)
Thanks: 37
Thanked 5 Times in 5 Posts
locantop is on a distinguished road
Send a message via MSN to locantop Send a message via Yahoo to locantop
coba gini
ip firewall filter>add chain=forward src-address=192.168.x.x action=accept

(sampai ip yang mau u kasih akses )
trus di bawah nya

ip firewall filter add chain=forward action=drop

nah jadi selain ip yang u masukin ga bakalan bisa konek ke mikrotik/internet

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 26-07-2007, 11:19
sky16's Avatar
sky16 sky16 is offline
Newbie
 
Join Date: Jun 2007
Posts: 27
iTrader: (0)
Thanks: 1
Thanked 12 Times in 4 Posts
sky16 is on a distinguished road
Quote:
Originally Posted by server_2net View Post
Ouh iya bwt para master mikrotik mohon bantuannya nih gmn sih cara blok ip? jadi hanya ip tertentu aja yg bisa di gunakan misalnya yg mau sy pake 192.168.1.1 ampe 192.168.1.50 trs ip yg gk di pakenya di blok gmn tuh? terima kasih
@server_2net
Itu pake ip firewall aja bro..
tinggal anda urutin yang mao di blok dan mana yang di passthrough..
set yang 192.168.1.1 - 192.168.1.50 actionnya = accept.Selain itu actionnya = drop.

Semoga membantu..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 26-07-2007, 19:13
nux's Avatar
nux nux is offline
Member
 
Join Date: Jul 2007
Posts: 238
iTrader: (0)
Thanks: 4
Thanked 44 Times in 30 Posts
nux will become famous soon enoughnux will become famous soon enough
Quote:
Originally Posted by server_2net View Post
Ouh iya bwt para master mikrotik mohon bantuannya nih gmn sih cara blok ip? jadi hanya ip tertentu aja yg bisa di gunakan misalnya yg mau sy pake 192.168.1.1 ampe 192.168.1.50 trs ip yg gk di pakenya di blok gmn tuh? terima kasih
misal sisa ip yg gak kepake adl 192.168.1.51 - 192.168.1.255, script nya berarti..
drop input:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=input src-address=(192.168.1. . $e) action=drop }
drop forward:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=forward src-address=(192.168.1. . $e) action=drop }
drop output:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=output src-address=(192.168.1. . $e) action=drop }
coba test bro...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to nux For This Useful Post:
  #6 (permalink)  
Old 26-07-2007, 19:26
[a]'s Avatar
[a] [a] is online now
Administrator
 
Join Date: Jun 2007
Location: Jakarta
Posts: 1,477
iTrader: (1)
Thanks: 190
Thanked 339 Times in 139 Posts
[a] has disabled reputation
Send a message via Yahoo to [a]
tadinya sih salah kamar nih thread...

tapi terimakasih ke bro nux, akhirnya thread ini kembali ke jalannya


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 26-07-2007, 19:46
nux's Avatar
nux nux is offline
Member
 
Join Date: Jul 2007
Posts: 238
iTrader: (0)
Thanks: 4
Thanked 44 Times in 30 Posts
nux will become famous soon enoughnux will become famous soon enough
bro [a], biar code bisa keliatan semua gimana tuh??, gak usah pake scroll bar.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 26-07-2007, 19:50
[a]'s Avatar
[a] [a] is online now
Administrator
 
Join Date: Jun 2007
Location: Jakarta
Posts: 1,477
iTrader: (1)
Thanks: 190
Thanked 339 Times in 139 Posts
[a] has disabled reputation
Send a message via Yahoo to [a]
wuahh....postbitnya musti dikulik mah klo gituh....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 26-07-2007, 19:53
nux's Avatar
nux nux is offline
Member
 
Join Date: Jul 2007
Posts: 238
iTrader: (0)
Thanks: 4
Thanked 44 Times in 30 Posts
nux will become famous soon enoughnux will become famous soon enough
postbit sebelah mana??

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 26-07-2007, 19:59
[a]'s Avatar
[a] [a] is online now
Administrator
 
Join Date: Jun 2007
Location: Jakarta
Posts: 1,477
iTrader: (1)
Thanks: 190
Thanked 339 Times in 139 Posts
[a] has disabled reputation
Send a message via Yahoo to [a]
Quote:
Originally Posted by nux View Post
postbit sebelah mana??
itu salah satu elemen di template forum ini bro...

musti dikulik dan dipelajarin nih ribuan baris template itu..

tapi pada dasarnya sih gua setuju sama ide lo...

thanks yahh...

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 [a] For This Useful Post:
  #11 (permalink)  
Old 28-07-2007, 21:36
bu5y3t bu5y3t is offline
Newbie
 
Join Date: Jul 2007
Posts: 20
iTrader: (0)
Thanks: 9
Thanked 2 Times in 2 Posts
bu5y3t is on a distinguished road
Quote:
Originally Posted by nux View Post
misal sisa ip yg gak kepake adl 192.168.1.51 - 192.168.1.255, script nya berarti..
drop input:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=input src-address=(192.168.1. . $e) action=drop }
drop forward:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=forward src-address=(192.168.1. . $e) action=drop }
drop output:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=output src-address=(192.168.1. . $e) action=drop }
coba test bro...

wah uda di coba mantaf bos

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to bu5y3t For This Useful Post:
  #12 (permalink)  
Old 14-08-2007, 17:43
aa_uwan aa_uwan is offline
Baru Gabung
 
Join Date: Aug 2007
Posts: 19
iTrader: (0)
Thanks: 1
Thanked 1 Time in 1 Post
aa_uwan is on a distinguished road
Quote:
Originally Posted by nux View Post
misal sisa ip yg gak kepake adl 192.168.1.51 - 192.168.1.255, script nya berarti..
drop input:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=input src-address=(192.168.1. . $e) action=drop }
drop forward:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=forward src-address=(192.168.1. . $e) action=drop }
drop output:
Code:
:for e from 51 to 255 do={ /ip firewall filter add chain=output src-address=(192.168.1. . $e) action=drop }
coba test bro...
thank's banget pencerahannya, tapi saya masih awam bikin skripnya kalau pake winbox dimananya ya.. trus skripnya dijalankan dimana,dan yang dimaksut di skrip yang tulisan
src-address=(192.168.1. . $e) "..$e" nya maksutnya dan harus ditulus apa , mohon pencerahannya lebih lanjut


Last edited by aa_uwan : 14-08-2007 at 17:45.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to aa_uwan For This Useful Post:
  #13 (permalink)  
Old 14-08-2007, 21:28
nux's Avatar
nux nux is offline
Member
 
Join Date: Jul 2007
Posts: 238
iTrader: (0)
Thanks: 4
Thanked 44 Times in 30 Posts
nux will become famous soon enoughnux will become famous soon enough
Quote:
Originally Posted by aa_uwan View Post
thank's banget pencerahannya, tapi saya masih awam bikin skripnya kalau pake winbox dimananya ya.. trus skripnya dijalankan dimana,dan yang dimaksut di skrip yang tulisan
src-address=(192.168.1. . $e) "..$e" nya maksutnya dan harus ditulus apa , mohon pencerahannya lebih lanjut
skripnya tinggal kopi paste di terminal (kalo pake winbox), tp edit dulu disesuiakan dengan ip yg mo diblok. misal:
ip yg mo diblok 3 biji (192.168.0.1-192.168.0.3), jadi skripnya:

:for e from 1 to 3 do={ /ip firewall filter add chain=input src-address=(192.168.0. . $e) action=drop }


note: $e gak usah diganti, biarkan seperti itu, kan utk e udah didefinisikan di depan (for e from 1 to 3 do), yg perlu diedit yaitu ip mana aja yg mo diblok, contoh di sini adl antara 1 ampe 3, dan sesuaikan ip address anda, contoh disini adl 192.168.0.1-192.168.0.3 maka di skripnya 192.168.0. . $e

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to nux For This Useful Post:
  #14 (permalink)  
Old 16-08-2007, 14:52
aa_uwan aa_uwan is offline
Baru Gabung
 
Join Date: Aug 2007
Posts: 19
iTrader: (0)
Thanks: 1
Thanked 1 Time in 1 Post
aa_uwan is on a distinguished road
Quote:
Originally Posted by nux View Post
skripnya tinggal kopi paste di terminal (kalo pake winbox), tp edit dulu disesuiakan dengan ip yg mo diblok. misal:
ip yg mo diblok 3 biji (192.168.0.1-192.168.0.3), jadi skripnya:

:for e from 1 to 3 do={ /ip firewall filter add chain=input src-address=(192.168.0. . $e) action=drop }


note: $e gak usah diganti, biarkan seperti itu, kan utk e udah didefinisikan di depan (for e from 1 to 3 do), yg perlu diedit yaitu ip mana aja yg mo diblok, contoh di sini adl antara 1 ampe 3, dan sesuaikan ip address anda, contoh disini adl 192.168.0.1-192.168.0.3 maka di skripnya 192.168.0. . $e
oc banget pencerahannya tararequ , thanksbanget

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 23-08-2007, 13:41
chiepot chiepot is offline
Baru Gabung
 
Join Date: Jul 2007
Posts: 4
iTrader: (0)
Thanks: 0
Thanked 0 Times in 0 Posts
chiepot is on a distinguished road
kl pake DHCP gimana cara blok nya???
Thanks...