Limitasi per User Hotspot menggunakan Mikrotik

Proses untuk pembatasan per-user pada hotspot yang menggunakan system DHCP agak sedikit rumit, hal ini dikarenakan user bisa menerima IP yang berbeda2 setiap kali terhubung pada layanan hotspot/RT-RWnet yang kita kelola.
Selain itu, user juga bisa saja memiliki perangkat/gadget lebih dari satu yang kesemuanya digunakan untuk konek ke dalam RT/RWnet atau hotspot yang kita kelola, sehingga mengakibatkan akan ada IP baru lagi setiap kali user konek dengan perangkat yang berbeda.

Untuk itu maka seluruh IP user perlu di lease static-kan terlebih dahulu satu persatu, dan kemudian dimasukkan ke dalam Address List, yang nantinya akan kita kelola pada mangle dan queue.

Cek user yang aktif pada : IP > Hotspot > Active, catat IPnya






















Tetapkan lease static pada user2 yang aktif tersebut, masuk ke :
IP > DHCP Server > Lease. Klik salah satu IP yang ingin di-static-kan, kemudian klik "Make Static"
Catatan : (secara bertahap nantinya seluruh user memiliki IP lease static)




Masukkan daftar IP yang telah di-static-kan tersebut ke dalam Address List, sesuai nama yang diinginkan. Pada Address List kita bisa saja memasukkan sejumlah IP untuk satu nama, tergantung banyaknya IP yang digunakan oleh user/pelanggan kita.



Setelah semua proses pendaftaran IP pelanggan selesai, kita dapat melakukan pemisahan paket2 koneksi klien untuk keperluan pembatasannya nanti, baik downstream maupun upstream-nya.
dalam hal ini, salah satu contoh mangle sebagai berikut :

/ip firewall mangle
add chain=prerouting src-address-list=criptecs action=mark-connection new-connection-mark=criptecs-con passthrough=yes comment="MANGLE PER USER HOTSPOT - CRIPTECS"
add chain=prerouting connection-mark=criptecs-con action=mark-packet new-packet-mark=criptecs passthrough=no comment=""



Copykan script mangle ini untuk seluruh address list yang telah dibuat sebelumnya.

Setelah seluruh mangle selesai dibuat baru kita atur limitasinya menggunakan Queue tree



 /queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=1M name="ALL DOWNLOAD" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=75k \
    max-limit=200k name=criptecs packet-mark=criptecs parent="ALL DOWNLOAD" \
    priority=2 queue=default

Note : Mohon kritik, saran dan koreksi dapat dimasukkan lewat fitur komentar pada blog ini, trims.
  

11 komentar:

Akhmad Julian Noor mengatakan...

pertamax... wah sudah 33 pelanggan nih lah....

Ari mengatakan...

hahaha...mantap niich brooo....

Criptecs Pangkalan Bun mengatakan...

@Pak Yayan : jumlah pelanggan masih 26 pak, itu item 33 karena ada rule lain yang ga keliatan di queue tree-nya :D
@Arief : thanks bro.. silakan dicicipin dulu :D

Akhmad Julian Noor mengatakan...

bagaimana pak Sulis bila 1 user hanya bisa digunakan pada 1 perangkat/gadget.
misal:
si A beli paket Wifi untuk Android, nah.. si A gak bisa pake usernya di perangkat/gadget lain, user tersebut hanya bisa di gunakan pada Androidnya yg pertama kali login...

Criptecs Pangkalan Bun mengatakan...

Kalo usernya dibuatkan lewat userman saya kurang tau pak..
kecuali usernya dibuat lewat winbox, IP > Hotspot > User.. disitu ada peng-klasifikasian user berdasarkan MAC dan IP tertentu.. jadi IP dan MAC selain yang kita definisikan, ngga akan bisa login menggunakan login user yang ada..

Unknown mengatakan...

Saya SIch Kurang paham ni gan.. alx kami akses cuma pake 1 user dan 1 password.. jadi bisa makai sepuasnya... itu sistem gmana kerjanya ya.. terus gimana mau ganti user sama pasword yang sekarang?

jhon marfun mengatakan...

Is your Gemini 2fa status as yet pending? Gemini Support Number
Do you know the means and procedure to change over your pending status to affirm? On the off chance that truly, dial Gemini customer support number at 1-800-665-6722 and get a lot of arrangements and cures from the experts. Extraordinary compared to other characteristics about the experts is that they are constantly dynamic and go to each client's question finely. You can rely on them generally as they convey perfect arrangements.
Gemini customer support number
Gemini Number
Gemini Contact Number
Gemini Toll Free Number
Gemini Support Number
Gemini Phone Number
Gemini Helpline number
Gemini Support Phone number
Gemini Customer Support
Gemini Customer Service
Gemini Customer Service Number
Gemini Wallet phone Number

jhon martu mengatakan...

Facing trouble in finding coins and funds in your Binance exchange? Seeking best assistance to eliminate it as soon as possible? If yes, just do one easy step, dial Binance support number +1877-209-3306 and get rid of all your problems in a jiffy by connecting to Binance Support Number the well-experienced professionals. The accomplished professionals are present round the clock to assist users in their difficult time.

jhon kally mengatakan...

Blockchain is a blessing for the crypto business world. If you ever encounter any issue with Blockchain , you can ask for the assistance from the adroit professionals by dialling Blockchain customer service number or via chat. The chat customer care expert’s service is the flashing mode to overcome the difficulty. They fix your all Blockchain problems instantly Blockchain Customer Service Number related to your Blockchain account so that you can focus on your business performance. They deliver instant viable solutions to the clients. You can also call on the number at any time irrespective of odd hours.

jhon martu mengatakan...

Facing problem logging in to Binance account? Are you looking to get rid of the problems that are occurring due to this error? If yes, then quickly get toll free number. All you have to do is grab your phone and dial Binance support phone number and a team of experts will deliver the best possible Binance Customer Service Number solutions. These customer support are always here to help you out irrespective of time; they are entirely committed and will always solve your queries in order to make your life easier.

galiagaede mengatakan...

black titanium ring - The History of Art and Technology
The black titanium ring was introduced in China gr5 titanium in citizen promaster titanium the late 19th titanium 3d printer century. The ring was designed to protect against intruders oakley titanium sunglasses who entered into

Posting Komentar

 
Powered By Blogger | Portal Design By Trik-tips Blog © 2009 | Resolution: 1024x768px | Best View: Firefox | Top