MIKROTIK / PELANGGAN

Hotspot Server

Hotspot dengan profil voucher dan pembuatan voucher acak.

PANDUAN Cara memakai Hotspot Server

WiFi berbayar dengan voucher. Pengguna membuka halaman login lalu memasukkan kode voucher.

SEBELUM MULAI

  • Setup Dasar sudah dijalankan dan router sudah bisa internet.
  • Port hotspot (misalnya ether4) tersambung ke access point. Atur access point dalam mode AP/bridge dan matikan DHCP server di access point.
  • Port hotspot tidak boleh masuk bridge LAN. Cek di Bridge → Ports.

CARA MENGISI

  • IP gateway /22 cukup untuk sekitar 1.000 perangkat. Untuk jaringan kecil boleh /24 (254 perangkat).
  • DNS name adalah alamat halaman login, bebas (contoh login.wifi).
  • Profil voucher: nama,upload/download,shared-users,masa-aktif. Shared-users = berapa perangkat boleh memakai satu voucher bersamaan. Masa aktif: 1h = 1 jam, 1d = 1 hari, 7d = 7 hari.
  • Isi Jumlah voucher lebih dari 0 untuk membuat kode acak. Username dan password voucher sama.

SETELAH SCRIPT DIJALANKAN

  • Sambungkan HP ke WiFi, buka browser: halaman login harus muncul sendiri. Coba masuk dengan salah satu kode voucher.
  • Daftar voucher ada di IP → Hotspot → Users; yang sedang online di tab Active.
  • Masa aktif menghitung waktu online, bukan tanggal kalender.
Baru pertama kali? Cara menempel script ke MikroTik & arti istilah

JARINGAN HOTSPOT

PROFIL VOUCHER

Satu baris: nama,upload/download,shared-users,masa-aktif — contoh 1JAM,2M/2M,1,1h

BUAT VOUCHER OTOMATIS opsional

HASIL / SCRIPT

Hotspot Server

    # ===================================================
    #  HOTSPOT
    #  Dibuat 2026-11-25 oleh SatuKonfig (satukonfig.com)
    #  Tempel di Winbox > New Terminal (RouterOS v6 & v7)
    # ===================================================
    
    # --- IP, pool, DHCP ---
    /ip address add address=172.16.0.1/22 interface=ether4 comment="SatuKonfig hotspot: Hotspot"
    /ip pool add name=pool-hotspot ranges=172.16.0.10-172.16.3.254 comment="SatuKonfig hotspot:"
    /ip dhcp-server add name=sk-dhcp-hotspot interface=ether4 address-pool=pool-hotspot lease-time=1h disabled=no
    /ip dhcp-server network add address=172.16.0.0/22 gateway=172.16.0.1 dns-server=172.16.0.1 comment="SatuKonfig hotspot:"
    /ip dns set servers=8.8.8.8,1.1.1.1 allow-remote-requests=yes
    
    # --- server hotspot ---
    /ip hotspot profile add name=sk-hsprof hotspot-address=172.16.0.1 dns-name="login.wifi" login-by=http-chap,http-pap,cookie
    /ip hotspot add name=sk-hotspot interface=ether4 address-pool=pool-hotspot profile=sk-hsprof disabled=no
    
    # --- profil voucher (rate-limit) ---
    /ip hotspot user profile add name=1JAM rate-limit=2M/2M shared-users=1
    /ip hotspot user profile add name=1HARI rate-limit=3M/3M shared-users=1
    /ip hotspot user profile add name=1MINGGU rate-limit=5M/5M shared-users=2
    
    # --- NAT ---
    /ip firewall nat add chain=srcnat src-address=172.16.0.0/22 action=masquerade comment="SatuKonfig hotspot: NAT hotspot"

    Contoh isian di form hanya contoh; sesuaikan dengan jaringan Anda. Backup dulu sebelum menempel: /system backup save name=sebelum-satukonfig. Cara lengkap ada di Panduan di atas.