ABDURROZAK
HOME ABOUT ME MICROSITE KONTAK PERSEMBAHAN HELP
ABDURROZAK.MY.ID // MIKROTIK TUTORIAL

HOTSPOT SERVER

RB941 hAP LITE - IMPLEMENTASI LENGKAP CAPTIVE PORTAL

Panduan step-by-step membangun sistem hotspot voucher dengan captive portal: setup hotspot server, user profile, voucher generator, walled garden, IP binding, custom login page, integrasi queue tree, monitoring, dan troubleshooting. Konfigurasi dual: CLI (Terminal) & WinBox (GUI).

SPESIFIKASI HARDWARE RB941-2nD

RB941 hAP lite cocok untuk hotspot skala kecil: cafe, warung, kos-kosan, atau RT/RW Net awal. Kapasitas ideal 10-20 user concurrent. Untuk hotspot >30 user, pertimbangkan upgrade ke hAP ac^2 atau CCR series.

CPU
AR9344 - 650MHz
RAM
32 MB DDR2
STORAGE
16 MB FLASH
ETHERNET
4x 10/100 Mbps
WIRELESS
2.4GHz b/g/n
HOTSPOT
BUILT-IN
USER MAX
~20 CONCURRENT
VOUCHER
UNLIMITED
POWER
5V DC / USB
OS
RouterOS v6 L4
DIMENSI
113 x 89 x 28mm
BERAT
160 gram
LIMITASI HOTSPOT RB941: RAM 32MB terbatas untuk banyak user + Layer7. Hindari L7 protocol + hotspot bersamaan. Batasi max 20-30 concurrent user. Jika butuh lebih, upgrade hardware.
TOPOLOGI HOTSPOT SCHEMA
// TOPOLOGI HOTSPOT SERVER + CAPTIVE PORTAL // [ INTERNET / ISP ] | | kabel UTP v +--------------------------------------+ | MikroTik RB941 | | HOTSPOT SERVER + CAPTIVE PORTAL | | | | ether1 = WAN (IP dari ISP) | | | | bridge1 (LAN Gateway) | | |- ether2 (LAN) | | |- ether3 (LAN) | | |- ether4 (LAN) | | |- wlan1 (WIFI) SSID: CAFE-WIFI | | | | IP Gateway: 10.5.50.1/24 | | HOTSPOT = aktif di bridge | | LOGIN PAGE = http://10.5.50.1/login | | USER PROFILE = 1jam, 3jam, 1hari | | VOUCHER = user/pass auto-generate | | WALLED GARDEN = WhatsApp, IG, dll | +--------------------------------------+ | | | v v v [ TAMU ] [ TAMU ] [ TAMU ] connect WiFi login page input voucher -> browse -> voucher -> internet
ALUR HOTSPOT: (1) Tamu connect WiFi, (2) Buka browser -> redirect ke login page, (3) Input username & password (voucher), (4) Router verifikasi, (5) Jika valid -> akses internet sesuai limit profile, (6) Setelah limit habis -> otomatis logout.
ANIMASI CAPTIVE PORTAL FLOW LIVE FLOW

Visualisasi captive portal: tamu connect WiFi, traffic diblokir (merah), di-redirect ke login page, setelah login berhasil -> traffic lolos (hijau) ke internet.

INTERNET ISP / MODEM MIKROTIK RB941 HOTSPOT SERVER - CAPTIVE PORTAL WAN ether1 HOTSPOT ENGINE Captive Portal + Auth + Walled Garden e2 LAN WIFI wlan1 SUBNET: 10.5.50.0/24 | HOTSPOT: bridge | AUTH: PAP/CHAP VOUCHER: 1jam / 3jam / 1hari / 1minggu HP TAMU BELUM LOGIN BLOCKED LAPTOP INPUT VOUCHER LOGIN PAGE HP TAMU SUDAH LOGIN INTERNET OK TABLET VOUCHER 1JAM INTERNET OK // CAPTIVE PORTAL FLOW // CONNECT -> BLOCKED -> LOGIN PAGE -> VOUCHER -> INTERNET | AUTO LOGOUT SAAT LIMIT HABIS
Belum Login (Blocked)
Login Page (Captive)
Sudah Login (Passed)
Wireless Link
Response Packet
CAPTIVE PORTAL: Router memblokir semua traffic HTTP/HTTPS dari client yang belum login, lalu redirect ke login page. Setelah autentikasi berhasil, IP/MAC client di-whitelist dan traffic diizinkan sesuai limit profile.
KONSEP DASAR HOTSPOT FUNDAMENTAL

Hotspot di MikroTik adalah fitur captive portal yang memaksa client untuk login sebelum dapat akses internet. Berbeda dengan WiFi password biasa, hotspot memberikan kontrol penuh: limit bandwidth, limit waktu, limit kuota, voucher, walled garden, dan monitoring.

KOMPONEN HOTSPOT
KOMPONENFUNGSICONTOH
Hotspot ServerService utama yang aktif di interfacehotspot1 di bridge
User ProfileTemplate: limit bandwidth, waktu, shared-user1jam-2Mbps, 1hari-10Mbps
UserVoucher: username & passwordv001 / abc123
IP BindingBypass/Block berdasarkan MAC/IPBypass admin, block device
Walled GardenSitus yang bisa diakses tanpa loginWhatsApp, Instagram, login page
Login PageHalaman HTML untuk input voucherCustom HTML/CSS/JS
MAC CookieAuto-login berdasarkan MAC addressDevice familiar tidak perlu login ulang
ALUR HOTSPOT
1
CLIENT CONNECT WIFI
Tamu connect ke SSID hotspot (open network, tanpa password WiFi). DHCP beri IP address.
2
CAPTIVE PORTAL INTERCEPT
Router intercept semua HTTP request, redirect ke login page (http://10.5.50.1/login). HTTPS juga di-redirect via SSL redirect.
3
CLIENT INPUT VOUCHER
Client buka browser, lihat login page, input username & password (voucher). Klik login.
4
ROUTER VERIFIKASI
Router cek username & password di database user. Jika valid -> IP/MAC client di-whitelist.
5
AKSES INTERNET
Client dapat akses internet sesuai limit profile (bandwidth, waktu, kuota). Queue otomatis dibuat.
6
AUTO LOGOUT
Saat limit waktu/kuota habis, atau idle timeout tercapai, router otomatis logout client. IP dikembalikan ke pool.
HOTSPOT vs WIFI PASSWORD
ASPEKHOTSPOTWIFI PASSWORD
AutentikasiUsername & password (voucher)Password WiFi saja
Limit bandwidthPer user (via profile)Tidak bisa
Limit waktuPer user (uptime limit)Tidak bisa
Limit kuotaPer user (bytes limit)Tidak bisa
MonitoringDetail per userHanya per device
VoucherBisa jual voucherTidak bisa
Walled gardenBisaTidak bisa
KompleksitasLebih kompleksSimpel
Use caseCafe, hotel, RT/RW NetRumah, kantor private
KAPAN PAKAI HOTSPOT? Jika Anda butuh: (1) kontrol akses per user, (2) limit bandwidth/waktu/kuota, (3) jual voucher, (4) monitoring detail, (5) walled garden. Untuk rumah/kantor private yang tidak butuh fitur ini, WiFi password biasa sudah cukup.
PERSIAPAN SEBELUM KONFIGURASI STEP 01

Siapkan hal-hal berikut agar proses konfigurasi hotspot berjalan lancar.

YANG HARUS DISIAPKAN
ITEMKETERANGANCATATAN
Router RB941Sudah terpasang adaptor 5VLED PWR harus menyala
Kabel UTPMinimal 2 buah (straight)1 untuk WAN, 1 untuk PC
PC/LaptopDengan port ethernetUntuk akses awal via kabel
WinBoxDownload dari mikrotik.comAtau pakai browser (WebFig)
Info ISPJenis koneksi: DHCP/PPPoE/StaticTanya ISP jika tidak tahu
Skema IP HotspotSubnet untuk hotspotContoh: 10.5.50.0/24
Nama SSIDNama WiFi hotspotContoh: CAFE-WIFI
Rencana VoucherPaket voucher yang akan dijual1jam, 3jam, 1hari, dll
SKEMA IP HOTSPOT
KOMPONENIP ADDRESSKETERANGAN
Gateway Hotspot10.5.50.1/24IP router di hotspot network
Subnet10.5.50.0/24Range: .0 - .255
DHCP Pool10.5.50.2 - 10.5.50.254253 IP untuk client hotspot
Login Pagehttp://10.5.50.1/loginURL login page hotspot
RENCANA VOUCHER
Rp 2.000
1 JAM
Bandwidth2M / 5M
Uptime1 jam
Shared1 user
Rp 5.000
3 JAM
Bandwidth3M / 7M
Uptime3 jam
Shared1 user
Rp 10.000
1 HARI
Bandwidth5M / 10M
Uptime24 jam
Shared2 user
Rp 50.000
1 MINGGU
Bandwidth10M / 20M
Uptime7 hari
Shared3 user
TIPS: Sesuaikan harga voucher dengan bandwidth ISP dan target pasar. Untuk cafe/warung, voucher 1-3 jam paling laku. Untuk kos-kosan, voucher harian/mingguan lebih cocok.
RESET & AKSES ROUTER STEP 02

Reset router ke factory default, lalu akses via WinBox atau browser.

VIA HARDWARE
1
Cabut power router
2
Tekan tombol RESET dengan pin
3
Colok power sambil tekan RESET
4
Tunggu ~5 detik sampai LED ACT berkedip
5
Lepas tombol, router reboot
6
Tunggu 1-2 menit sampai fully boot
VIA CLI
# Reset dengan default config [admin@MikroTik] > /system reset-configuration Do you really want to reset configuration? [y/N] y # Reset tanpa default config [admin@MikroTik] > /system reset-configuration no-defaults=yes skip-backup=yes ! WARNING: semua konfigurasi terhapus
AKSES ROUTER
VIA WINBOX (RECOMMENDED)
1
Colok kabel UTP dari PC ke ether2
2
Buka WinBox
3
Tab Neighbors, tunggu router muncul
4
Klik MAC address router
5
Login: admin | Password: (kosong)
6
Klik Connect
VIA WEBFIG (BROWSER)
1
Colok kabel UTP dari PC ke ether2
2
Buka browser
3
Ketik: http://192.168.88.1
4
Login: admin | Password: (kosong)
5
Masuk ke WebFig
PENTING: Selalu connect via MAC address di WinBox. Jika IP berubah atau salah konfigurasi, Anda masih bisa akses via MAC.
IDENTITY & GANTI PASSWORD STEP 03

Beri nama router dan GANTI PASSWORD ADMIN. WAJIB sebelum router terhubung internet.

VIA CLI
# 1. Set identity [admin@MikroTik] > /system identity set name="HOTSPOT-CAFE" [admin@HOTSPOT-CAFE] > # 2. Ganti password admin (WAJIB!) [admin@HOTSPOT-CAFE] > /user set admin password="Rozak@Hotspot2024!" # 3. Cek list user [admin@HOTSPOT-CAFE] > /user print # NAME GROUP 0 admin full
VIA WINBOX
1
Menu: System -> Identity
2
Name: HOTSPOT-CAFE
3
Klik OK
4
Menu: System -> Users
5
Double-click admin -> tombol Password
6
Password baru (min 12 karakter)
7
Klik OK -> OK
KRITIS: Password admin harus KUAT. Minimal 12 karakter, kombinasi huruf besar, kecil, angka, dan simbol. CATAT di tempat aman. Jika lupa, harus reset fisik router.
CEK & NAMA INTERFACE STEP 04

Cek interface, beri nama yang jelas. ether1 = WAN, ether2-4 = LAN, wlan1 = WIFI.

VIA CLI
# 1. Cek interface [admin@HOTSPOT-CAFE] > /interface print # NAME TYPE MTU 0 ether1 ether 1500 1 ether2 ether 1500 2 ether3 ether 1500 3 ether4 ether 1500 4 wlan1 wlan 1500 5 bridge1 bridge 1500 # 2. Rename interface [admin@HOTSPOT-CAFE] > /interface set ether1 name="WAN" [admin@HOTSPOT-CAFE] > /interface set ether2 name="LAN1" [admin@HOTSPOT-CAFE] > /interface set ether3 name="LAN2" [admin@HOTSPOT-CAFE] > /interface set ether4 name="LAN3"
VIA WINBOX
1
Menu: Interfaces
2
Double-click ether1 -> Name: WAN
3
Ulangi untuk ether2-4: LAN1, LAN2, LAN3
4
Klik Apply -> OK
BRIDGE SETUP STEP 05

Bridge menyatukan LAN (ether2-4) dan WiFi (wlan1) menjadi satu jaringan. Hotspot akan aktif di bridge ini.

VIA CLI
# 1. Cek bridge port default [admin@HOTSPOT-CAFE] > /interface bridge port print # INTERFACE BRIDGE PVID 0 ether2 bridge1 1 1 ether3 bridge1 1 2 ether4 bridge1 1 3 wlan1 bridge1 1 # 2. Optimasi bridge [admin@HOTSPOT-CAFE] > /interface bridge set bridge1 protocol-mode=none fast-forward=yes # protocol-mode=none untuk hotspot # (RSTP bisa konflik dengan hotspot)
VIA WINBOX
1
Menu: Bridge
2
Tab Ports: cek ether2-4, wlan1 sudah ada
3
Double-click bridge1
4
Tab Advanced: Protocol Mode: none
5
Tab HW: centang Fast Forward
6
Klik Apply -> OK
PENTING: Untuk hotspot, set protocol-mode=none. RSTP bisa menyebabkan masalah dengan hotspot captive portal. Jangan masukkan ether1 (WAN) ke bridge!
IP ADDRESS GATEWAY HOTSPOT STEP 06

Setup IP address untuk bridge. IP ini akan jadi gateway untuk semua client hotspot dan jadi URL login page.

VIA CLI
# 1. Ganti IP gateway hotspot [admin@HOTSPOT-CAFE] > /ip address set [find interface=bridge] address=10.5.50.1/24 # 2. Verifikasi [admin@HOTSPOT-CAFE] > /ip address print # ADDRESS NETWORK INTERFACE 0 10.5.50.1/24 10.5.50.0 bridge ! Setelah ganti IP, akses router ! via IP baru: 10.5.50.1 ! Login page: http://10.5.50.1/login
VIA WINBOX
1
Menu: IP -> Addresses
2
Double-click entry bridge
3
Address: 10.5.50.1/24
4
Interface: bridge
5
Klik Apply -> OK
6
Akses router via 10.5.50.1
TIPS: IP gateway ini akan jadi URL login page: http://10.5.50.1/login. Pilih IP yang mudah diingat atau sesuai skema network Anda.
DHCP CLIENT (WAN) STEP 07

Setup DHCP client di WAN agar router dapat IP dari ISP.

VIA CLI
# Setup DHCP client di WAN [admin@HOTSPOT-CAFE] > /ip dhcp-client add interface=ether1 disabled=no use-peer-dns=yes use-peer-ntp=no add-default-route=yes # Cek status - harus "bound" [admin@HOTSPOT-CAFE] > /ip dhcp-client print # INTERFACE STATUS ADDRESS 0 ether1 bound 10.10.10.5/24
VIA WINBOX
1
Menu: IP -> DHCP Client
2
+ Add: Interface: ether1
3
Add Default Route: yes
4
Use Peer DNS: yes
5
Klik OK
6
Status harus bound
NAT MASQUERADE STEP 08

NAT masquerade WAJIB agar client hotspot bisa akses internet.

VIA CLI
[admin@HOTSPOT-CAFE] > /ip firewall nat add chain=srcnat action=masquerade out-interface=ether1 comment="NAT to ISP" [admin@HOTSPOT-CAFE] > /ip firewall nat print # CHAIN ACTION OUT-INTERFACE 0 srcnat masquerade ether1
VIA WINBOX
1
Menu: IP -> Firewall
2
Tab NAT -> + Add
3
Chain: srcnat
4
Out. Interface: ether1
5
Action: masquerade
6
Klik OK
DNS FORWARDING STEP 09

Setup DNS agar client hotspot bisa resolve domain.

VIA CLI
[admin@HOTSPOT-CAFE] > /ip dns set servers=1.1.1.1,8.8.8.8 allow-remote-requests=yes cache-size=2048KiB [admin@HOTSPOT-CAFE] > /ip dns print servers: 1.1.1.1, 8.8.8.8 allow-remote-requests: yes [admin@HOTSPOT-CAFE] > /ping google.com count=4
VIA WINBOX
1
Menu: IP -> DNS
2
Servers: 1.1.1.1, 8.8.8.8
3
Centang Allow Remote Requests
4
Cache Size: 2048 KiB
5
Klik Apply -> OK
NTP & TIMEZONE STEP 10

Setup NTP agar waktu router akurat. Penting untuk uptime limit voucher.

VIA CLI
[admin@HOTSPOT-CAFE] > /system ntp client set enabled=yes mode=unicast primary-ntp=132.163.96.1 secondary-ntp=8.8.8.8 [admin@HOTSPOT-CAFE] > /system clock set time-zone-name=Asia/Jakarta [admin@HOTSPOT-CAFE] > /system clock print date and time: 2024-11-15 14:32:08 time-zone-name: Asia/Jakarta
VIA WINBOX
1
Menu: System -> NTP Client
2
Centang Enabled
3
Primary NTP: 132.163.96.1
4
Secondary NTP: 8.8.8.8
5
Menu: System -> Clock
6
Time Zone Name: Asia/Jakarta
7
Klik OK
PENTING: NTP WAJIB untuk hotspot. Jika waktu router salah, uptime limit voucher tidak akurat. User bisa dapat waktu lebih banyak atau lebih sedikit dari yang seharusnya.
FIREWALL DASAR STEP 11

Setup firewall dasar untuk melindungi router.

VIA CLI
# 1. Allow established/related [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=input connection-state=established,related action=accept in-interface=ether1 # 2. Drop invalid [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=input connection-state=invalid action=drop in-interface=ether1 # 3. Allow ICMP [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=input protocol=icmp action=accept in-interface=ether1 # 4. Drop semua dari WAN [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=input action=drop in-interface=ether1 # 5. Forward: allow established [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=forward connection-state=established,related action=accept # 6. Forward: drop invalid [admin@HOTSPOT-CAFE] > /ip firewall filter add chain=forward connection-state=invalid action=drop
VIA WINBOX
1
Menu: IP -> Firewall -> Tab Filter Rules
2
+ Add Rule 1: Chain: input, Conn. State: established,related, In. Interface: ether1, Action: accept
3
+ Add Rule 2: Chain: input, Conn. State: invalid, In. Interface: ether1, Action: drop
4
+ Add Rule 3: Chain: input, Protocol: icmp, In. Interface: ether1, Action: accept
5
+ Add Rule 4: Chain: input, In. Interface: ether1, Action: drop
6
+ Add Rule 5: Chain: forward, Conn. State: established,related, Action: accept
7
+ Add Rule 6: Chain: forward, Conn. State: invalid, Action: drop
PENTING: Urutan rule firewall SANGAT PENTING. Rule accept established HARUS di paling atas. Hotspot akan otomatis tambahkan rule-nya sendiri (hs-auth, hs-unauth) - JANGAN dihapus.
WIRELESS SETUP (OPEN NETWORK) STEP 12

Setup WiFi sebagai open network (tanpa password WiFi). Autentikasi dilakukan via login page hotspot, bukan WiFi password.

VIA CLI
# 1. Set mode AP, SSID [admin@HOTSPOT-CAFE] > /interface wireless set wlan1 mode=ap-bridge ssid="CAFE-WIFI" country=indonesia frequency-mode=regulatory-domain # 2. Set channel [admin@HOTSPOT-CAFE] > /interface wireless set wlan1 channel=6 band=2ghz-b/g/n # 3. OPEN NETWORK (no security) [admin@HOTSPOT-CAFE] > /interface wireless security-profiles set [find default=yes] mode=none authentication-types="" # 4. Set tx-power [admin@HOTSPOT-CAFE] > /interface wireless set wlan1 tx-power-mode=all-rates-fixed tx-power=17 # 5. Verifikasi [admin@HOTSPOT-CAFE] > /interface wireless print
VIA WINBOX
1
Menu: Wireless
2
Double-click wlan1
3
Tab Wireless: Mode: ap-bridge
4
SSID: CAFE-WIFI
5
Band: 2GHz-B/G/N, Channel: 6
6
Tab Security Profiles -> edit default
7
Mode: none (OPEN NETWORK)
8
Authentication Types: (kosongkan)
9
Klik OK -> Apply -> OK
KENAPA OPEN NETWORK? Hotspot butuh open network agar captive portal bisa bekerja. Jika WiFi pakai password, client tidak bisa connect tanpa password dulu, sehingga tidak bisa di-redirect ke login page. Autentikasi dilakukan via login page, bukan WiFi password.
HOTSPOT SERVER SETUP HOTSPOT CORE

Aktifkan hotspot server di interface bridge. Ini adalah inti dari captive portal. Setelah setup, semua client yang connect akan di-redirect ke login page.

VIA CLI
# 1. Setup hotspot (wizard CLI) [admin@HOTSPOT-CAFE] > /ip hotspot setup # Step 1: Pilih interface Hotspot interface: bridge # Step 2: Create local hotspot user? Create local hotspot user? [y/N]: y # Step 3: DNS name DNS name: hotspot.cafe.local # Step 4: Hotspot IP address Hotspot IP address: 10.5.50.1 # Step 5: IP pool IP pool: hotspot-pool Pool range: 10.5.50.2-10.5.50.254 # Step 6: SMTP server SMTP server: 0.0.0.0 # Step 7: Hotspot user Hotspot user: admin Password: admin123 # 2. Verifikasi [admin@HOTSPOT-CAFE] > /ip hotspot print # NAME INTERFACE ADDRESSES IDLE-TIMEOUT 0 hotspot1 bridge 1 5m # 3. Cek rule firewall otomatis [admin@HOTSPOT-CAFE] > /ip firewall nat print # CHAIN ACTION PROTO DST-PORT 0 dstnat redirect tcp 80 # Hotspot otomatis tambahkan rule redirect port 80
VIA WINBOX
1
Menu: IP -> Hotspot
2
Klik tombol Hotspot Setup
3
Interface: bridge -> Next
4
Create local user: Yes -> Next
5
DNS Name: hotspot.cafe.local -> Next
6
IP Address: 10.5.50.1 -> Next
7
IP Pool: hotspot-pool -> Next
8
SMTP: 0.0.0.0 -> Next
9
User: admin, Password: admin123 -> Next
10
Setup selesai. Hotspot otomatis aktif.
YANG DIBUAT OTOMATIS OLEH HOTSPOT
KOMPONENDETAILFUNGSI
DHCP Serverdi bridge, pool hotspot-poolBeri IP ke client hotspot
NAT Redirectdst-nat port 80 -> hotspot loginRedirect HTTP ke login page
Filter Ruleshs-auth, hs-unauth, hotspotControl akses client
IP Address10.5.50.1 di bridgeGateway hotspot
Files/hotspot/ folderLogin page HTML, CSS, JS
Useradmin / admin123User pertama untuk test
TEST HOTSPOT
# 1. Connect HP/Laptop ke SSID "CAFE-WIFI" # 2. HP dapat IP 10.5.50.x dari DHCP # 3. Buka browser, akses http://google.com # 4. Akan di-redirect ke login page: # http://10.5.50.1/login # 5. Login dengan: # Username: admin # Password: admin123 # 6. Jika berhasil -> dapat akses internet # Cek user aktif [admin@HOTSPOT-CAFE] > /ip hotspot active print # SERVER USER ADDRESS UPTIME 0 hotspot1 admin 10.5.50.100 2m 15s
PENTING: Setelah hotspot setup, JANGAN hapus rule firewall hs-auth, hs-unauth, hotspot. Rule ini yang mengontrol captive portal. Jika dihapus, hotspot tidak bekerja.
HOTSPOT USER PROFILE HOTSPOT CORE

User Profile adalah template untuk voucher. Di sini kita set limit bandwidth, limit waktu, shared users, dll. Satu profile bisa dipakai banyak user.

VIA CLI
# 1. Profile 1 JAM - Rp 2.000 [admin@HOTSPOT-CAFE] > /ip hotspot user profile add name="1jam-2Mbps" rate-limit="2M/5M" idle-timeout=10m keepalive-timeout=30s shared-users=1 status-autorefresh=1m # 2. Profile 3 JAM - Rp 5.000 [admin@HOTSPOT-CAFE] > /ip hotspot user profile add name="3jam-3Mbps" rate-limit="3M/7M" idle-timeout=15m shared-users=1 # 3. Profile 1 HARI - Rp 10.000 [admin@HOTSPOT-CAFE] > /ip hotspot user profile add name="1hari-5Mbps" rate-limit="5M/10M" idle-timeout=30m shared-users=2 # 4. Profile 1 MINGGU - Rp 50.000 [admin@HOTSPOT-CAFE] > /ip hotspot user profile add name="1minggu-10Mbps" rate-limit="10M/20M" idle-timeout=1h shared-users=3 # 5. Verifikasi [admin@HOTSPOT-CAFE] > /ip hotspot user profile print # NAME RATE-LIMIT SHARED-USERS 0 default 1 1jam-2Mbps 5M/2M 1 2 3jam-3Mbps 7M/3M 1 3 1hari-5Mbps 10M/5M 2 4 1minggu-10Mbps 20M/10M 3
VIA WINBOX
1
Menu: IP -> Hotspot
2
Tab User Profiles
3
+ Add profile baru
4
Tab General: Name: 1jam-2Mbps
5
Tab Limits:
6
Rate Limit: 2M/5M (up/down)
7
Idle Timeout: 10m
8
Shared Users: 1
9
Klik OK
10
Ulangi untuk profile lain
PARAMETER USER PROFILE
PARAMETERFUNGSICONTOH
nameNama profile1jam-2Mbps
rate-limitLimit bandwidth (up/down)2M/5M (upload 2M, download 5M)
idle-timeoutLogout jika tidak aktif10m (10 menit)
keepalive-timeoutInterval ping ke client30s (30 detik)
shared-usersJumlah device yang bisa login bersamaan1 (1 device saja)
status-autorefreshInterval refresh status page1m (1 menit)
login-byMetode loginhttp-chap, http-pap, cookie, mac
on-loginScript saat loginUntuk logging, notifikasi
on-logoutScript saat logoutUntuk logging
TIPS RATE-LIMIT
FORMAT: UP/DOWN
Rate-limit selalu format upload/download. Contoh: 2M/5M = upload 2Mbps, download 5Mbps.
DOWNLOAD > UPLOAD
Download biasanya 2-3x upload. User lebih banyak download (browsing, streaming) daripada upload.
SHARED USERS
1 = 1 device saja (voucher pribadi). 2-3 = bisa dipakai beberapa device (voucher keluarga/kantor).
IDLE TIMEOUT
Logout otomatis jika tidak ada aktivitas. Hemat bandwidth. 10-30 menit cocok untuk voucher singkat.
TIPS: Profile "default" yang dibuat saat setup hotspot bisa dihapus atau dimodifikasi. Buat profile baru sesuai paket voucher yang akan dijual.
USER & VOUCHER HOTSPOT CORE

User adalah voucher yang akan diberikan ke tamu. Setiap user punya username, password, profile, dan limit uptime.

VIA CLI
# 1. Voucher 1 JAM [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v001" password="abc123" profile="1jam-2Mbps" limit-uptime=1h comment="Voucher 1 Jam - Rp 2000" # 2. Voucher 3 JAM [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v002" password="xyz789" profile="3jam-3Mbps" limit-uptime=3h comment="Voucher 3 Jam - Rp 5000" # 3. Voucher 1 HARI [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v003" password="daily2024" profile="1hari-5Mbps" limit-uptime=1d comment="Voucher 1 Hari - Rp 10000" # 4. Voucher 1 MINGGU [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v004" password="weekly2024" profile="1minggu-10Mbps" limit-uptime=7d comment="Voucher 1 Minggu - Rp 50000" # 5. Voucher dengan limit kuota [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v005" password="quota1gb" profile="1hari-5Mbps" limit-bytes-total=1G comment="Voucher 1GB - Rp 10000" # 6. Verifikasi [admin@HOTSPOT-CAFE] > /ip hotspot user print # NAME PROFILE UPTIME LIMIT-UPTIME 0 admin default 1 v001 1jam-2Mbps 0s 1h 2 v002 3jam-3Mbps 0s 3h 3 v003 1hari-5Mbps 0s 1d 4 v004 1minggu-10Mbps 0s 7d 5 v005 1hari-5Mbps 0s -
VIA WINBOX
1
Menu: IP -> Hotspot
2
Tab Users
3
+ Add user baru
4
Tab General:
5
Name: v001 (username)
6
Password: abc123
7
Profile: 1jam-2Mbps
8
Tab Limits:
9
Uptime: 1h (limit waktu)
10
Comment: Voucher 1 Jam - Rp 2000
11
Klik OK
12
Ulangi untuk voucher lain
CONTOH VOUCHER
v001 / abc123
1 JAM - Rp 2.000
Profile1jam-2Mbps
Bandwidth2M / 5M
Uptime1 jam
Shared1 user
v002 / xyz789
3 JAM - Rp 5.000
Profile3jam-3Mbps
Bandwidth3M / 7M
Uptime3 jam
Shared1 user
v003 / daily2024
1 HARI - Rp 10.000
Profile1hari-5Mbps
Bandwidth5M / 10M
Uptime24 jam
Shared2 user
v005 / quota1gb
1 GB - Rp 10.000
Profile1hari-5Mbps
Bandwidth5M / 10M
Quota1 GB
Shared1 user
LIMIT UPTIME FORMAT
FORMATARTICONTOH
30s30 detikTrial singkat
10m10 menitTrial
1h1 jamVoucher 1 jam
3h3 jamVoucher 3 jam
1d1 hari (24 jam)Voucher harian
7d7 hariVoucher mingguan
30d30 hariVoucher bulanan
LIMIT BYTES (KUOTA)
# limit-bytes-total = total upload + download # limit-bytes-in = download saja # limit-bytes-out = upload saja # Format: # 100M = 100 MB # 1G = 1 GB # 5G = 5 GB # Contoh: voucher 1GB [admin@HOTSPOT-CAFE] > /ip hotspot user add name="v005" password="quota1gb" profile="1hari-5Mbps" limit-bytes-total=1G # Saat total upload+download mencapai 1GB, # user otomatis logout.
TIPS: Username & password case-sensitive. "abc123" berbeda dengan "ABC123". Buat username yang mudah diingat tapi tidak mudah ditebak. Jangan pakai nama umum seperti "admin", "user", "test".
AUTO GENERATOR VOUCHER HOTSPOT ADVANCED

Buat script untuk generate voucher otomatis. Lebih cepat daripada buat manual satu per satu. Bisa generate 10-100 voucher dalam hitungan detik.

VIA CLI - SCRIPT
# 1. Buat script generator [admin@HOTSPOT-CAFE] > /system script add name="gen-voucher-1jam" source=" :local profile \"1jam-2Mbps\" :local uptime \"1h\" :local count 10 :local prefix \"v1h\" :local chars \"abcdefghijkmnpqrstuvwxyz23456789\" :for i from=1 to=$count do={ :local num [:pick (\"00\" . $i) ([:len (\"00\" . $i)]-3) [:len (\"00\" . $i)]] :local user ($prefix . $num) :local pass \"\" :for j from=1 to=6 do={ :local r [:rndnum from=0 to=([:len $chars]-1)] :set pass ($pass . [:pick $chars $r ($r+1)]) } /ip hotspot user add name=$user password=$pass profile=$profile limit-uptime=$uptime comment=\"Auto-generated\" :put (\"Created: \" . $user . \" / \" . $pass) } " # 2. Jalankan script [admin@HOTSPOT-CAFE] > /system script run gen-voucher-1jam Created: v1h001 / a3k8m2 Created: v1h002 / b4l9n3 Created: v1h003 / c5m0p4 ... # 3. Cek voucher yang dibuat [admin@HOTSPOT-CAFE] > /ip hotspot user print where comment="Auto-generated"
VIA WINBOX
1
Menu: System -> Scripts
2
+ Add script baru
3
Name: gen-voucher-1jam
4
Source: paste script generator di atas
5
Klik OK
6
Pilih script -> klik tombol Run Script
7
Voucher otomatis dibuat
8
Cek di IP -> Hotspot -> Users
EXPORT VOUCHER UNTUK DICETAK
# Export voucher ke format yang bisa dicetak [admin@HOTSPOT-CAFE] > /ip hotspot user print where comment="Auto-generated" # NAME PASSWORD PROFILE UPTIME 0 v1h001 a3k8m2 1jam-2Mbps 1h 1 v1h002 b4l9n3 1jam-2Mbps 1h 2 v1h003 c5m0p4 1jam-2Mbps 1h # Export ke file [admin@HOTSPOT-CAFE] > /ip hotspot user print file="voucher-list" # Download file via WinBox: # Menu Files -> drag file voucher-list.txt ke desktop # Print file tersebut untuk jadi voucher fisik # ATAU pakai tool external: # - Mikhmon (web-based hotspot manager) # - UserManager (MikroTik official) # - Script Python untuk generate + print
TIPS AUTO GENERATOR
PASSWORD RANDOM
Pakai karakter random untuk password. Hindari password yang mudah ditebak. 6-8 karakter cukup untuk voucher.
USERNAME SEQUENTIAL
Username dengan prefix + nomor: v1h001, v1h002, dst. Mudah di-track dan di-manage.
PAKAI COMMENT
Beri comment untuk setiap voucher: "Auto-generated", "Voucher 1 Jam", dll. Memudahkan filtering.
SCHEDULER
Bisa jadwalkan script generator otomatis tiap hari/minggu untuk stok voucher baru.
TIPS: Untuk produksi, pertimbangkan pakai Mikhmon atau tool external yang lebih lengkap: generate voucher, print voucher, monitoring, reporting, dll. Script di atas hanya contoh dasar.
WALLED GARDEN HOTSPOT ADVANCED

Walled Garden memungkinkan client akses situs tertentu TANPA login hotspot. Berguna untuk: WhatsApp, Instagram, situs pembayaran, situs internal, dll.

VIA CLI
# 1. Allow WhatsApp (tanpa login) [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.whatsapp.net" action=accept comment="WhatsApp" [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.whatsapp.com" action=accept # 2. Allow Instagram [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.instagram.com" action=accept comment="Instagram" [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.cdninstagram.com" action=accept # 3. Allow Facebook [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.facebook.com" action=accept comment="Facebook" [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.fbcdn.net" action=accept # 4. Allow situs pembayaran [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.gojek.com" action=accept comment="Gojek" [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add host="*.grab.com" action=accept comment="Grab" # 5. Allow by IP (untuk situs yang IP-nya tetap) [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden add dst-host="10.5.50.1" action=accept comment="Login page" # 6. Verifikasi [admin@HOTSPOT-CAFE] > /ip hotspot walled-garden print
VIA WINBOX
1
Menu: IP -> Hotspot
2
Tab Walled Garden
3
+ Add rule baru
4
Action: accept
5
Tab General:
6
Host: *.whatsapp.net
7
Comment: WhatsApp
8
Klik OK
9
Ulangi untuk situs lain
CONTOH WALLED GARDEN POPULER
SITUSHOST PATTERNKEGUNAAN
WhatsApp*.whatsapp.net, *.whatsapp.comChat tanpa login
Instagram*.instagram.com, *.cdninstagram.comBrowse IG tanpa login
Facebook*.facebook.com, *.fbcdn.netBrowse FB tanpa login
Gojek/Grab*.gojek.com, *.grab.comAkses aplikasi ride-hailing
Bank/E-wallet*.bca.com, *.mandiri.comAkses mobile banking
Login Page10.5.50.1Akses login page hotspot
Internal10.5.50.0/24Akses network internal
KAPAN PAKAI WALLED GARDEN?
APLIKASI POPULER
WhatsApp, Instagram, Facebook. User bisa tetap chat/browse tanpa harus login dulu.
SITUS PEMBAYARAN
Bank, e-wallet, payment gateway. User bisa bayar voucher tanpa login hotspot.
SITUS INTERNAL
Server internal, printer network, dll. Akses tanpa perlu login.
JANGAN ABUSE
Jangan masukkan semua situs ke walled garden. Nanti user tidak perlu login sama sekali.
CATATAN: Walled garden hanya bekerja untuk HTTP. Untuk HTTPS, perlu tambahan walled-garden-IP atau walled-garden-IP6. Beberapa aplikasi modern (WhatsApp, Instagram) pakai HTTPS, jadi perlu tambahkan IP address-nya juga.
IP BINDING HOTSPOT ADVANCED

IP Binding untuk bypass atau block client berdasarkan MAC address. Berguna untuk: admin bypass (tidak perlu login), block device tertentu, atau fix IP untuk device tertentu.

VIA CLI
# 1. BYPASS: Admin tidak perlu login [admin@HOTSPOT-CAFE] > /ip hotspot ip-binding add mac-address="A1:B2:C3:D4:E5:F6" type=bypassed comment="Admin Laptop" # 2. BYPASS: Printer tidak perlu login [admin@HOTSPOT-CAFE] > /ip hotspot ip-binding add mac-address="B2:C3:D4:E5:F6:01" type=bypassed comment="Printer" # 3. BLOCK: Device tidak boleh connect [admin@HOTSPOT-CAFE] > /ip hotspot ip-binding add mac-address="XX:XX:XX:XX:XX:XX" type=blocked comment="Device Blocked" # 4. REGULAR: Fix IP untuk device [admin@HOTSPOT-CAFE] > /ip hotspot ip-binding add mac-address="C3:D4:E5:F6:01:02" address=10.5.50.50 type=regular comment="NAS Server" # 5. Verifikasi [admin@HOTSPOT-CAFE] > /ip hotspot ip-binding print # MAC-ADDRESS ADDRESS TYPE 0 A1:B2:C3:D4:E5:F6 bypassed 1 B2:C3:D4:E5:F6:01 bypassed 2 XX:XX:XX:XX:XX:XX blocked 3 C3:D4:E5:F6:01:02 10.5.50.50 regular
VIA WINBOX
1
Menu: IP -> Hotspot
2
Tab IP Binding
3
+ Add binding baru
4
MAC Address: A1:B2:C3:D4:E5:F6
5
Type: bypassed
6
Comment: Admin Laptop
7
Klik OK
8
Ulangi untuk device lain
TIPE IP BINDING
TYPEFUNGSIKEGUNAAN
regularFix IP untuk MAC tertentuDevice selalu dapat IP yang sama
bypassedBypass hotspot (tidak perlu login)Admin, printer, server internal
blockedBlock device (tidak dapat IP)Device tidak diinginkan
KASUS PENGGUNAAN
ADMIN BYPASS
Laptop admin tidak perlu login setiap kali connect. Pakai type=bypassed.
PRINTER / SERVER
Device yang butuh IP tetap dan tidak perlu login. Pakai type=bypassed atau regular.
BLOCK DEVICE
Block device yang tidak diinginkan (misal device bekas karyawan). Pakai type=blocked.
FIX IP
Device selalu dapat IP yang sama (seperti static lease DHCP). Pakai type=regular + address.
TIPS: Untuk lihat MAC address client yang sedang connect, cek di /ip hotspot active print atau /ip dhcp-server lease print. Catat MAC address device yang ingin di-bypass/block.
CUSTOM LOGIN PAGE HOTSPOT ADVANCED

Ganti tampilan login page default dengan design custom. Bisa pakai HTML, CSS, JavaScript. Tambahkan logo, info voucher, harga, dll.

PREVIEW LOGIN PAGE CUSTOM
STRUKTUR FILE HOTSPOT
# File login page ada di folder /hotspot/ /hotspot/ |- login.html <- Halaman login utama |- a.html <- Halaman setelah login sukses |- rlogin.html <- Redirect setelah login |- status.html <- Halaman status user aktif |- logout.html <- Halaman setelah logout |- error.html <- Halaman error |- css/ <- Folder CSS |- img/ <- Folder gambar |- js/ <- Folder JavaScript # Edit file login.html untuk custom design # Upload via WinBox: Menu Files -> /hotspot/ -> drag file
CONTOH TEMPLATE LOGIN.HTML
# Template dasar login.html <!DOCTYPE html> <html> <head> <title>CAFE WIFI - Login</title> <meta charset="UTF-8"> <style> body { font-family: Arial, sans-serif; background: linear-gradient(135deg, #667eea, #764ba2); margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; } .login-box { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 350px; width: 90%; } h1 { color: #667eea; text-align: center; margin-bottom: 5px; } .subtitle { text-align: center; color: #666; margin-bottom: 20px; } input { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; } button { width: 100%; padding: 12px; background: #667eea; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; } button:hover { background: #764ba2; } .error { color: red; margin: 10px 0; } .info { text-align: center; margin-top: 15px; font-size: 12px; color: #666; } </style> </head> <body> <div class="login-box"> <h1>CAFE WIFI</h1> <div class="subtitle">FREE INTERNET HOTSPOT</div> $(if error) <div class="error">$(error)</div> $(endif) <form name="login" action="$(link-login-only)" method="post"> <input type="hidden" name="dst" value="$(link-orig)"> <input type="text" name="username" placeholder="Username" required> <input type="password" name="password" placeholder="Password" required> <button type="submit">LOGIN</button> </form> <div class="info"> Voucher 1 Jam: Rp 2.000 | 3 Jam: Rp 5.000 | 1 Hari: Rp 10.000<br> Beli voucher di kasir </div> </div> </body> </html> # Variabel MikroTik yang bisa dipakai: # $(link-login-only) - URL untuk submit login # $(link-orig) - URL asli yang mau diakses # $(error) - Pesan error jika login gagal # $(username) - Username yang diinput
UPLOAD FILE CUSTOM
VIA WINBOX
1
Buat file login.html custom di PC
2
Menu WinBox: Files
3
Buka folder hotspot
4
Drag file login.html dari PC ke folder
5
Timpa file lama (overwrite)
6
Test di browser: http://10.5.50.1/login
VIA FTP
1
Aktifkan FTP service: IP -> Services -> ftp
2
Connect FTP client ke 10.5.50.1
3
Login: admin / password admin
4
Navigate ke folder /hotspot/
5
Upload file login.html custom
6
Test di browser
TIPS CUSTOM LOGIN
LOGO & BRANDING
Tambahkan logo cafe/warung. Upload gambar ke folder /hotspot/img/. Pakai di HTML.
RESPONSIVE DESIGN
Pastikan login page tampil bagus di HP dan tablet. Pakai CSS responsive (media query).
INFO VOUCHER
Tampilkan daftar harga voucher di login page. User tahu pilihan yang tersedia.
MULTI LANGUAGE
Bisa buat login page multi bahasa (ID/EN) dengan JavaScript atau multiple file.
TIPS: Backup file login.html default sebelum dimodifikasi. Jika ada masalah, bisa restore ke default. Test login page di browser incognito untuk hindari cache.
HOTSPOT + QUEUE TREE (QOS) HOTSPOT ADVANCED

Hotspot otomatis buat simple queue per user berdasarkan rate-limit di profile. Untuk QOS lebih advanced, bisa integrasi dengan queue tree.

VIA CLI
# Hotspot otomatis buat simple queue # saat user login [admin@HOTSPOT-CAFE] > /queue simple print # NAME TARGET MAX-LIMIT 0 hs-v001 10.5.50.100 5M/2M 1 hs-v002 10.5.50.101 7M/3M 2 hs-v003 10.5.50.102 10M/5M # Queue otomatis dihapus saat user logout # Untuk total bandwidth hotspot: [admin@HOTSPOT-CAFE] > /queue simple add name="total-hotspot" target="10.5.50.0/24" max-limit="45M/48M" queue="pcq-upload-default/pcq-download-default" comment="Total Hotspot Bandwidth" # Cek queue aktif [admin@HOTSPOT-CAFE] > /queue simple print
VIA WINBOX
1
Menu: Queues
2
Lihat queue otomatis dari hotspot (hs-*)
3
+ Add queue baru untuk total
4
Name: total-hotspot
5
Target: 10.5.50.0/24
6
Max Limit: 45M/48M
7
Queue: pcq-upload-default/pcq-download-default
8
Klik OK
STRATEGI QOS HOTSPOT
STRATEGICARAKEGUNAAN
Per User (otomatis)Rate-limit di profileLimit bandwidth per voucher
Total HotspotSimple queue untuk subnetLimit total bandwidth hotspot
PCQQueue type PCQFair sharing antar user
PriorityQueue priorityPrioritas jenis traffic
TIPS: Untuk hotspot sederhana, rate-limit di profile sudah cukup. Untuk hotspot dengan banyak user, tambahkan total queue + PCQ agar bandwidth terdistribusi adil.
MONITORING HOTSPOT HOTSPOT MONITOR

Monitor performa hotspot: user aktif, bandwidth, voucher terpakai, log, dll.

VIA CLI
# 1. Cek user aktif [admin@HOTSPOT-CAFE] > /ip hotspot active print # SERVER USER ADDRESS UPTIME BYTES 0 hotspot1 v001 10.5.50.100 15m 32s 45MB/120MB 1 hotspot1 v002 10.5.50.101 2h 15m 120MB/450MB # 2. Cek semua user (aktif + tidak aktif) [admin@HOTSPOT-CAFE] > /ip hotspot user print # NAME PROFILE UPTIME LIMIT-UPTIME 0 admin default 1 v001 1jam-2Mbps 15m 32s 1h 2 v002 3jam-3Mbps 2h 15m 3h 3 v003 1hari-5Mbps 0s 1d # 3. Cek hit (berapa kali user login) [admin@HOTSPOT-CAFE] > /ip hotspot user print detail 1 name="v001" profile="1jam-2Mbps" uptime=15m 32s bytes-in=45MB bytes-out=120MB limit-uptime=1h hits=1 # 4. Cek log hotspot [admin@HOTSPOT-CAFE] > /log print where topics="hotspot" # 5. Monitor real-time [admin@HOTSPOT-CAFE] > /log print follow where topics="hotspot" # 6. Cek statistik server [admin@HOTSPOT-CAFE] > /ip hotspot print stats
VIA WINBOX
1
Menu: IP -> Hotspot
2
Tab Active: lihat user yang sedang online
3
Tab Users: lihat semua user + status
4
Tab Hosts: lihat semua device yang connect
5
Menu: Queues: lihat bandwidth per user
6
Menu: Log: filter topic hotspot
7
Menu: Tools -> Graphing: grafik bandwidth
METRIK YANG PERLU DIMONITOR
METRIKCARA CEKKETERANGAN
User aktif/ip hotspot active printBerapa user yang sedang online
Bandwidth per user/queue simple printBerapa bandwidth yang dipakai
Uptime user/ip hotspot user printBerapa lama user sudah online
Bytes in/out/ip hotspot user print detailTotal download/upload per user
Hits/ip hotspot user print detailBerapa kali user login
Log login/logout/log print where topics="hotspot"Log aktivitas user
CPU load/system resource printPastikan CPU tidak overload
TIPS MONITORING
GRAPHING
Aktifkan graphing untuk lihat grafik bandwidth historis. Berguna untuk analisis pola penggunaan.
LOGGING
Log semua aktivitas login/logout. Berguna untuk troubleshooting dan audit.
NOTIFIKASI
Script untuk notifikasi jika ada user login, atau jika CPU overload. Bisa kirim email/Telegram.
MIKHMON / USERMANAGER
Tool external untuk monitoring lebih lengkap: dashboard, reporting, user management, dll.
TIPS: Monitor hotspot secara rutin, terutama saat ramai. Jika CPU >80% atau banyak user complaint lambat, pertimbangkan upgrade hardware atau limit user concurrent.
TRIAL ACCESS HOTSPOT ADVANCED

Berikan akses trial gratis untuk menarik pelanggan. User bisa coba internet gratis beberapa menit sebelum memutuskan beli voucher.

VIA CLI
# 1. Buat profile trial [admin@HOTSPOT-CAFE] > /ip hotspot user profile add name="trial-15min" rate-limit="1M/2M" idle-timeout=5m shared-users=1 # 2. Buat user trial [admin@HOTSPOT-CAFE] > /ip hotspot user add name="trial" password="trial" profile="trial-15min" limit-uptime=15m comment="Free Trial 15 Menit" # 3. Test trial # Username: trial # Password: trial # Dapat 15 menit gratis # 4. ALTERNATIF: MAC-based trial # Setiap MAC dapat 1x trial # Butuh script custom untuk implementasi
VIA WINBOX
1
Menu: IP -> Hotspot -> User Profiles
2
+ Add: Name: trial-15min
3
Rate Limit: 1M/2M
4
Idle Timeout: 5m
5
Shared Users: 1
6
Klik OK
7
Tab Users -> + Add
8
Name: trial, Password: trial
9
Profile: trial-15min, Uptime: 15m
10
Klik OK
STRATEGI TRIAL
DURASI PENDEK
15-30 menit cukup untuk coba kecepatan. Tidak terlalu panjang agar user tetap beli voucher.
BANDWIDTH TERBATAS
Limit bandwidth trial lebih rendah dari voucher berbayar. User merasa butuh upgrade.
1x PER DEVICE
Batasi trial 1x per MAC address. Butuh script custom atau tool external.
PROMOSI DI LOGIN PAGE
Tampilkan info trial di login page. "Coba gratis 15 menit! Username: trial, Password: trial".
TIPS: Trial efektif untuk menarik pelanggan baru. Tapi jangan terlalu generous - nanti user tidak mau beli voucher. Trial 15 menit dengan bandwidth terbatas sudah cukup untuk demo.
TROUBLESHOOTING HOTSPOT SUPPORT

Masalah umum hotspot dan solusinya.

CLIENT TIDAK DIREDIRECT KE LOGIN PAGE
KEMUNGKINAN PENYEBAB:
1. Hotspot tidak aktif: /ip hotspot print
2. NAT redirect tidak ada: /ip firewall nat print
3. Client pakai HTTPS (hotspot hanya redirect HTTP)
4. Client sudah login (cek /ip hotspot active print)
5. DNS client tidak resolve ke hotspot IP
SOLUSI: Cek hotspot aktif, NAT redirect ada. Test akses http://10.5.50.1 langsung. Clear browser cache.
LOGIN GAGAL / USERNAME PASSWORD SALAH
KEMUNGKINAN PENYEBAB:
1. Username/password salah (case-sensitive)
2. User tidak ada: /ip hotspot user print
3. User disabled: cek kolom disabled
4. Uptime sudah habis (limit-uptime tercapai)
5. Shared users penuh (device lain sudah login)
6. Profile tidak ada: /ip hotspot user profile print
SOLUSI: Cek user ada & enabled. Reset uptime jika perlu. Cek shared users.
LOGIN BERHASIL TAPI TIDAK BISA INTERNET
KEMUNGKINAN PENYEBAB:
1. NAT masquerade tidak ada: /ip firewall nat print
2. Default route tidak ada: /ip route print
3. DNS tidak aktif: /ip dns print
4. Firewall block: /ip firewall filter print
5. Router tidak dapat IP dari ISP: /ip dhcp-client print
SOLUSI: Cek NAT, route, DNS. Test ping dari router ke 8.8.8.8.
HOTSPOT LAMBAT / CPU OVERLOAD
KEMUNGKINAN PENYEBAB:
1. Terlalu banyak user concurrent (>20 untuk RB941)
2. Layer7 protocol aktif (berat CPU)
3. Banyak walled garden rules
4. RAM penuh (32MB terbatas)
5. Bandwidth terlalu tinggi
SOLUSI: Cek CPU: /system resource print. Disable L7. Kurangi user. Upgrade hardware jika perlu.
USER TIDAK AUTO LOGOUT SAAT LIMIT HABIS
KEMUNGKINAN PENYEBAB:
1. NTP tidak sinkron (waktu router salah)
2. Keepalive timeout tidak aktif
3. Client tidak respond ke keepalive
4. Bug di RouterOS version
SOLUSI: Cek NTP: /system ntp client print. Set keepalive-timeout=30s. Update RouterOS.
WALLED GARDEN TIDAK BEKERJA
KEMUNGKINAN PENYEBAB:
1. Host pattern salah (pakai wildcard *.domain.com)
2. Aplikasi pakai HTTPS (butuh walled-garden-IP)
3. DNS tidak resolve domain
4. Rule walled garden disabled
SOLUSI: Cek pattern. Untuk HTTPS, tambahkan IP address di walled-garden-IP. Test di browser incognito.
DIAGNOSTIC COMMANDS
# Cek semua komponen hotspot > /ip hotspot print > /ip hotspot active print > /ip hotspot user print > /ip hotspot user profile print > /ip hotspot ip-binding print > /ip hotspot walled-garden print # Cek firewall & NAT > /ip firewall nat print > /ip firewall filter print # Cek DHCP > /ip dhcp-server print > /ip dhcp-server lease print # Cek log > /log print where topics="hotspot" > /log print follow where topics="hotspot" # Test connectivity > /ping 8.8.8.8 > /ping google.com
BEST PRACTICE HOTSPOT TIPS
PASSWORD VOUCHER KUAT
Jangan pakai password mudah ditebak (123456, password). Pakai random string 6-8 karakter.
NTP WAJIB
NTP wajib untuk uptime limit akurat. Jika waktu router salah, voucher tidak akurat.
VARIASI PAKET
Sediakan variasi paket: 1 jam, 3 jam, 1 hari, 1 minggu. Sesuaikan dengan kebutuhan user.
LOGIN PAGE MENARIK
Custom login page dengan logo, info voucher, harga. Meningkatkan profesionalisme.
WALLED GARDEN Bijak
Allow WhatsApp, Instagram untuk UX. Tapi jangan semua situs - nanti user tidak beli voucher.
LIMIT BANDWIDTH
Set rate-limit di profile. Cegah 1 user boros bandwidth. Fair sharing untuk semua user.
MONITOR RUTIN
Cek user aktif, CPU load, bandwidth. Deteksi dini jika ada masalah.
BACKUP CONFIG
Backup config sebelum ubah. Simpan 3 versi terakhir. Test restore berkala.
UPDATE ROUTEROS
Update ke versi stable terbaru untuk patch keamanan & bug fix. Backup dulu sebelum update.
LIMIT USER CONCURRENT
RB941 max 20-30 user. Jika lebih, upgrade hardware. Jangan paksakan.
MAC COOKIE Bijak
Untuk pelanggan tetap, mac cookie meningkatkan UX. Tapi jangan terlalu panjang.
DOKUMENTASI
Dokumentasikan: paket voucher, harga, login page, troubleshooting. Untuk referensi.
HOTSPOT CHEATSHEET QUICK REF
HOTSPOT COMMANDS
# SETUP HOTSPOT > /ip hotspot setup # Interface: bridge, IP: 10.5.50.1, Pool: hotspot-pool # USER PROFILE > /ip hotspot user profile add name="1jam-2Mbps" rate-limit="2M/5M" idle-timeout=10m shared-users=1 # USER / VOUCHER > /ip hotspot user add name="v001" password="abc123" profile="1jam-2Mbps" limit-uptime=1h # WALLED GARDEN > /ip hotspot walled-garden add host="*.whatsapp.net" action=accept # IP BINDING > /ip hotspot ip-binding add mac-address="A1:B2:C3:D4:E5:F6" type=bypassed # MAC COOKIE > /ip hotspot set [find] mac-cookie=yes mac-cookie-timeout=3d # MONITORING > /ip hotspot active print > /ip hotspot user print > /log print where topics="hotspot" # AUTO GENERATOR > /system script run gen-voucher-1jam # BACKUP > /system backup save name="hotspot-backup" > /export file="hotspot-config"
ABDURROZAK.MY.ID // JARINGAN SOSIAL

s.id

Link Tree Utama

GitHub

Repositori Kode

Instagram

Galeri Visual

Threads

Diskusi Ringkas

Facebook

Jaringan Sosial

TikTok

Konten Video Pendek

YT Teacher

Edukasi & Tutorial

YT Course

Materi Pembelajaran

YT Studio

Produksi Konten

Hashnode

Artikel Teknis

WhatsApp

Komunikasi Langsung

Email

abdurrozak.skom@gmail.com