Dokumentasi Konfigurasi MikroTik Lengkap
DHCP, Hotspot, Queue, Firewall, dan PPPoE
1. Konfigurasi DHCP Server
Tujuan
Memberikan IP otomatis ke client
Langkah Konfigurasi
Set IP Address di interface LAN:
IP → Addresses → Add New
- Address: 192.168.1.1/24
- Interface: ether1
Buat DHCP Server:
IP → DHCP Server → DHCP Setup
- Interface: ether1
- Address Pool: 192.168.1.100-192.168.1.200
- Gateway: 192.168.1.1
- DNS: 8.8.8.8
- Lease Time: 1d
Static Lease (untuk perangkat tetap):
IP → DHCP Server → Leases
Klik ganda client → Centang "Make Static"
- Client dapat IP otomatis
- Cek lease di IP → DHCP Server → Leases
2. Konfigurasi Hotspot
Tujuan
Membuat login WiFi dengan web portal
Langkah Konfigurasi
Setup Hotspot:
IP → Hotspot → Hotspot Setup
- Interface: wlan1
- Local IP: 192.168.2.1/24
- DNS: 8.8.8.8
Buat User:
IP → Hotspot → Users → Add New
- Name: user1
- Password: pass123
Custom Login Page (Opsional):
IP → Hotspot → Server Profiles → html
Upload file HTML custom
- Akses WiFi → Redirect ke halaman login
- Login dengan
user1/pass123
3. Konfigurasi Queue
Tujuan
Limit bandwidth per user
Langkah Konfigurasi
Simple Queue:
Queues → Simple Queues → Add New
- Name: Limit-User1
- Target: 192.168.1.100/32
- Max Limit: 2M/1M (download/upload)
PCQ (untuk banyak user):
Queues → Queue Types → Add New
- Name: PCQ-Download
- Kind: pcq
- Rate: 1M
- Test speed di speedtest.net
- Harus sesuai limit yang ditetapkan
4. Konfigurasi Firewall
Tujuan
Keamanan jaringan
Langkah Konfigurasi
Blok Ping dari Internet:
IP → Firewall → Filter Rules → Add New
- Chain: input
- Protocol: icmp
- In. Interface: ether2-WAN
- Action: drop
NAT:
IP → Firewall → NAT → Add New
- Chain: srcnat
- Out. Interface: ether2-WAN
- Action: masquerade
Blokir Situs:
IP → Firewall → Layer7 Protocols → Add New
- Name: block-fb
- Regex: ^.*facebook.*$
IP → Firewall → Filter Rules → Add New
- Chain: forward
- Layer7 Protocol: block-fb
- Action: drop
- Ping dari WAN → Timeout
- Akses facebook.com → Diblokir
5. Konfigurasi PPPoE Server
Tujuan
Koneksi dial-up seperti ISP
Langkah Konfigurasi
Enable PPPoE Server:
PPP → PPPoE Server → Enable
- Interface: ether1-LAN
Buat User:
PPP → Secrets → Add New
- Name: pelanggan1
- Password: 12345
- Service: pppoe
- Client connect via PPPoE
- Cek status di PPP → Active Connections
Troubleshooting
Masalah | Solusi |
---|---|
DHCP tidak bekerja | Cek IP → DHCP Server → Networks |
Hotspot tidak redirect | Pastikan DNS berfungsi |
PPPoE gagal connect | Cek log di Log → Filter: ppp |
- Backup config: Files → Backup
- Reset config: System → Reset Configuration