Panduan Praktis Hotspot Enterprise MikroTik dengan RADIUS Server, Mikhmon, Rate Limiting, dan Custom Login Page
Implementasi Bertahap
Langkah konfigurasi dan tindakan lapangan yang dilakukan dari awal sampai siap diuji.
Tested & Verified On
MikroTik RouterOS v7.14+ & Mikhmon v3 / User Manager
Prerequisites
Pemahaman IP Address, DNS, DHCP Server, dan dasar RouterOS CLI
Skenario & Arsitektur Hotspot Enterprise
Dalam skenario jaringan kantor/kampus/hotel, sistem Hotspot digunakan untuk membatasi dan mengotentikasi perangkat tamu (*Guest*) yang terhubung ke jaringan Wi-Fi melalui portal web interaktif.
Langkah 1: Membuat IP Pool, DHCP Server, & Server Hotspot
Jalankan perintah setup Wizard Hotspot pada antarmuka khusus (vlan50-hotspot).
/ip pool add name=hs-pool-vlan50 ranges=172.16.50.10-172.16.50.254 /ip dhcp-server add name=dhcp-hs-vlan50 interface=vlan50-hotspot lease-time=1h address-pool=hs-pool-vlan50 disabled=no /ip dhcp-server network add address=172.16.50.0/24 gateway=172.16.50.1 dns-server=172.16.50.1 /ip hotspot add name=hs-enterprise interface=vlan50-hotspot address-pool=hs-pool-vlan50 profile=hsp-enterprise disabled=no /ip hotspot profile set hsp-enterprise dns-name="wifi.devnetcuk.com" hotspot-address=172.16.50.1 login-by=http-chap,cookie,http-pap use-radius=yes
Langkah 2: Integrasi ke External RADIUS Server / Mikhmon API
Hubungkan RouterOS ke server RADIUS / Mikhmon agar voucher & akun pengguna dapat dikelola dari pusat secara terpusat.
/radius add service=hotspot address=192.168.100.5 secret="DevNetRadiusSecret2026" timeout=3s comment="Mikhmon / RADIUS Server" /ip hotspot incoming set accept=yes port=3799
Langkah 3: Konfigurasi User Profile & Rate Limiting (Bandwidth Control)
Buat profil pembatasan kecepatan dinamis untuk pengguna (misal 5 Mbps Download / 5 Mbps Upload dengan Burst Limit).
/ip hotspot user profile add name="GUEST-5M" rate-limit="5M/5M 8M/8M 3M/3M 30s/30s 8" shared-users=1 status-autorefresh=1m add-mac-cookie=yes
Langkah 4: Setup Walled Garden & IP Binding untuk Bypass Device Kritis
Bypass perangkat printer kantor, Smart TV, atau CCTV dari keharusan login portal Hotspot menggunakan IP Binding.
/ip hotspot ip-binding add mac-address=AA:BB:CC:DD:EE:FF type=bypassed comment="Printer Xerox Office" add address=172.16.50.50 type=bypassed comment="Smart TV Ruang Meeting" /ip hotspot walled-garden add dst-host=*.devnetcuk.com comment="Izinkan akses website DevNetCUK tanpa login"
Contoh Konfigurasi / Command Penting
# RouterOS v7 Hotspot Quick Commands:
/ip hotspot active print
/ip hotspot user print
/radius monitor 0
CLI Command & Configuration Script
# RouterOS v7 Hotspot Quick Commands: /ip hotspot active print /ip hotspot user print /radius monitor 0