Full Setting Mikrotik dari Awal untuk Hotspot Voucher Lengkap || Konfigurasi hAP Lite RB941-2nD
Table of Contents
Introduction
This tutorial guides you through the process of setting up a MikroTik router, specifically the hAP Lite RB941-2nD, for a hotspot voucher system using Winbox. You'll learn everything from initial configuration to creating user vouchers. The steps outlined can be applied to various MikroTik router models, making this guide versatile for different setups.
Step 1: Understanding Network Topology
- Familiarize yourself with the network layout.
- Ether-1: Connects to the ISP and uses dynamic IP from your provider.
- Ether-2: Connects to your laptop/computer with a static IP of
192.168.22.1/24
and an IP pool from192.168.22.10
to192.168.22.20
. - Ether-3: Used for hotspot vouchers, with a static IP of
10.20.30.1/24
, an IP pool for access points from10.20.30.2
to10.20.30.10
, and a voucher pool from10.20.30.11
to10.20.30.254
.
Step 2: Using Winbox
- Download Winbox from the provided link: Winbox Download.
- Connect your laptop to the MikroTik router via Ether-2.
- Launch Winbox and connect using the router's MAC address or IP.
Step 3: Reset Configuration
- Reset the router to factory settings.
- Access the router through Winbox and click on "System" > "Reset Configuration."
- Choose to reset without backup to start fresh.
Step 4: Naming Interfaces
- Go to "Interfaces" in Winbox.
- Rename interfaces for easier identification (e.g., ISP, LAN, Hotspot) by double-clicking each interface.
Step 5: Connecting ISP to MikroTik
- Set up a DHCP client for Ether-1.
- Navigate to "IP" > "DHCP Client" and click "Add."
- Choose Ether-1 and apply the settings. This allows the router to receive an IP from the ISP.
Step 6: Creating a DNS Server
- Go to "IP" > "DNS."
- Check "Allow Remote Requests" to enable DNS queries.
- Add your preferred DNS servers to ensure proper domain name resolution.
Step 7: Configuring Firewall for Internet Access
- Navigate to "IP" > "Firewall."
- Under the "Filter Rules" tab, create rules to allow traffic from your LAN to the internet.
- Example rule:
- Chain:
forward
- Src. Address:
192.168.22.0/24
- Action:
accept
- Chain:
Step 8: Setting Client IP Address
- Define the IP address for clients connecting to the network.
- Use the IP address range established in the topology for your DHCP server.
Step 9: Configuring DHCP Server for Ether-2
- Go to "IP" > "DHCP Server."
- Click "DHCP Setup" and select Ether-2.
- Follow the wizard to define the DHCP range using
192.168.22.10
to192.168.22.20
.
Step 10: Setting Up User Login
- Navigate to "System" > "Users."
- Create a new user with admin rights.
- Set a strong password for security.
Step 11: Configuring Date and Time
- Go to "System" > "Clock."
- Set the correct time zone and configure the NTP client to synchronize time.
Step 12: Configuring Hotspot for Voucher Usage
- Navigate to "IP" > "Hotspot."
- Use the Hotspot Setup wizard to configure Ether-3.
- Follow the prompts to set up the hotspot network, including the IP range and login page settings.
Conclusion
By following this tutorial, you have successfully configured your MikroTik router for a hotspot voucher system. Key steps included setting up network topology, configuring DHCP and DNS, and establishing a hotspot. For additional features like creating user vouchers, refer to the linked resources. You can start experimenting with advanced features or consider integrating voucher management systems for enhanced control.