SUPONO.
โ† Modul LabmtcumeMenengah30 Menit

Lab 6: Hotspot Captive Portal Setup & Walled Garden

Target: RouterOS v7 | 12 Oktober 2026Buka di NetLab Simulator โ†’

๐ŸŽฏ Sasaran Praktikum

Membangun sistem autentikasi publik Hotspot Captive Portal untuk kafe, hotel, atau kampus, mengatur masa sewa pengguna (uptime limit), dan mengonfigurasi Walled Garden agar situs web resmi dapat diakses tanpa login.

  • Tingkat Kesulitan: INTERMEDIATE
  • Estimasi Waktu: 30 Menit
  • Target RouterOS: RouterOS v7 (v7.12+ direkomendasikan)

โฑ๏ธ Alur Kerja & Timeline Praktikum

Durasi Fase Lab Deskripsi Aktivitas
00:00 - 08:00 Fase 1: Setup Hotspot Server Definisikan interface hotspot (ether3/wlan), IP pool, dan server profile DNS name (hotspot.supono.id).
08:00 - 18:00 Fase 2: Konfigurasi User Profile & Voucher Buat profil user dengan batasan shared-users=1 dan rate-limit 2M/3M.
18:00 - 30:00 Fase 3: Konfigurasi Walled Garden Daftarkan domain institusi agar dapat diakses oleh user sebelum login captive portal.

๐Ÿ—บ๏ธ Topologi Jaringan

[Pengguna Smartphone WiFi] โ”€โ”€โ”€(Koneksi HTTP)โ”€โ”€โ”€> [R1-Hotspot-Server: Port 80 Intercept]
                                                        โ”‚
                      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                      โ–ผ                                                                   โ–ผ
             [ Login Captive Portal ]                                            [ Walled Garden Bypass ]
           (hotspot.supono.id: User/Pass)                                        (*supono.my.id - Bebas Akses)

Daftar Perangkat dalam Topologi:

  • R1-Hotspot-Server (mikrotik) - Hotspot IP: 192.168.50.1/24
  • Smartphone-Guest (pc) - Klien WiFi publik

๐Ÿ› ๏ธ Langkah Demi Langkah Konfigurasi Lengkap (RouterOS v7)

Langkah 1: R1-Hotspot - Konfigurasi Server Hotspot dan Profile

Siapkan parameter captive portal pada interface jaringan tamu.

# Node: R1-Hotspot-Server
/ip pool add name=pool-hotspot ranges=192.168.50.10-192.168.50.250
/ip hotspot profile add name=hsprof1 hotspot-address=192.168.50.1 dns-name="hotspot.supono.id" html-directory=hotspot login-by=http-chap,cookie
/ip hotspot add name=hotspot1 interface=ether3 address-pool=pool-hotspot profile=hsprof1 disabled=no

Langkah 2: R1-Hotspot - Buat User Profile dan Akun Tamu

Atur kuota waktu dan kecepatan untuk pengguna voucher.

# Node: R1-Hotspot-Server
/ip hotspot user profile add name=prof-tamu shared-users=1 rate-limit=2M/3M session-timeout=2h
/ip hotspot user add name="tamu01" password="123" profile=prof-tamu limit-uptime=2h comment="Voucher Tamu 2 Jam"

Langkah 3: R1-Hotspot - Konfigurasi Walled Garden Bypass

Izinkan pengunjung membuka situs web tertentu sebelum memasukkan voucher.

# Node: R1-Hotspot-Server
/ip hotspot walled-garden
add dst-host="*supono.my.id*" action=allow comment="Bypass Website Instruktur"
add dst-host="*mikrotik.com*" action=allow comment="Bypass Website MikroTik"

๐Ÿ” Pengujian & Verifikasi CLI

Jalankan perintah audit pengguna aktif dan daftar walled garden di terminal:

/ip hotspot active print
/ip hotspot user print
/ip hotspot walled-garden print

Ekspektasi Output Terminal:

[admin@R1-Hotspot-Server] > /ip hotspot active print
Flags: R - RADIUS
Columns: SERVER, USER, ADDRESS, MAC-ADDRESS, UPTIME, TIME-LEFT
# SERVER    USER    ADDRESS        MAC-ADDRESS        UPTIME  TIME-LEFT
0 hotspot1  tamu01  192.168.50.15  00:50:79:66:68:09  14m32s  1h45m28s

Analisis Output: User tamu01 tercatat aktif dengan sisa durasi sewa TIME-LEFT yang terus berkurang otomatis.

โœ… Checklist Keberhasilan Lab:

  • Klien otomatis diarahkan ke halaman login captive portal http://hotspot.supono.id.
  • Website di dalam Walled Garden (supono.my.id) dapat dibuka sebelum proses login.
  • Klien berhasil login dan terputus otomatis saat batas 2 jam tercapai.

โš ๏ธ Troubleshooting & Catatan Penting

[!WARNING] Halaman Login Tidak Muncul Otomatis: Perangkat smartphone menggunakan fitur โ€œCaptive Portal Detectionโ€ via HTTP query. Pastikan router tidak memblokir port 80 pada tahap unauthenticated.


๐Ÿ“ฅ Panduan Lengkap & Resource

Gunakan panduan lengkap seluruh lab MikroTik certification di Panduan Lengkap Skenario Lab MikroTik atau ikuti kelas resmi tatap muka kami di Daftar Pelatihan MikroTik MTCUME.

Topologi Jaringan

[Tamu WiFi] โ”€โ”€โ”€(HTTP Intercept)โ”€โ”€โ”€> [MikroTik Hotspot Login] โ”€โ”€โ”€> [Walled Garden Bypass]

Ingin Menguji Praktikum Ini Langsung di Browser?

Gunakan NetLab Studio simulator untuk membuat topologi, menghubungkan kabel, dan mengetes CLI secara interaktif.

Jalankan di Simulator Web โ†’

Download Lab File

Masukkan email untuk mendapatkan file lab (.rsc, topologi, panduan) dan akses materi latihan lainnya.

Dengan mendaftar, Anda setuju menerima email dari Supono Training. Unsubscribe kapan saja.