🌐
📘 Bagian 2 (Lanjutan & Penerapan) • Modul 13
100% Standar Industri & Vokasi
Hotspot Gateway & Voucher QR-Code
Membangun Hotspot captive portal, user profile, Walled Garden bypass, IP binding statik, dan kustomisasi template login voucher dengan QR-Code.
1. Konsep Hotspot Captive Portal
Hotspot Server pada MikroTik memaksa setiap perangkat nirkabel yang terhubung untuk melakukan autentikasi (Username & Password / Voucher) melalui halaman web login (Captive Portal) sebelum diizinkan mengakses internet.
2. Skrip Konfigurasi Hotspot & User Profile
# 1. Setup IP Pool & Server Profile Hotspot
/ip pool add name=pool-hotspot ranges=172.16.0.10-172.16.0.254
/ip hotspot profile add name=hsprof-sekolah hotspot-address=172.16.0.1 dns-name="wifi.smk.sch.id" html-directory=hotspot login-by=http-chap,http-pap
# 2. Setup Hotspot Server pada Interface WLAN / Bridge
/ip hotspot add name=hotspot-sekolah interface=bridge-utama address-pool=pool-hotspot profile=hsprof-sekolah disabled=no
# 3. Buat User Profile Voucher (Contoh: Paket 2 Jam, Speed 2 Mbps, 1 User Login)
/ip hotspot user profile add name="Paket-Siswa-2Mbps" shared-users=1 rate-limit="1M/2M" session-timeout=2h keepalive-timeout=2m
# 4. Bypass CCTV / Printer agar Tidak Perlu Login (IP Binding)
/ip hotspot ip-binding add mac-address=AA:BB:CC:DD:EE:FF type=bypassed comment="Bypass CCTV Ruang Guru"
# 5. Walled Garden: Izinkan Akses Web Sekolah Tanpa Harus Login
/ip hotspot walled-garden add dst-host="*.smk.sch.id" action=allow comment="Bypass Portal Sekolah"