This document summarizes the configuration of a MikroTik router for a school network. It describes how to configure IP addresses, set the gateway and DNS, enable internet sharing, block YouTube access, set up a hotspot on Ethernet 3 with an address pool and user authentication, bypass a website, and add teacher and student user accounts. It also explains how to customize the hotspot login page.
This document summarizes the configuration of a MikroTik router for a school network. It describes how to configure IP addresses, set the gateway and DNS, enable internet sharing, block YouTube access, set up a hotspot on Ethernet 3 with an address pool and user authentication, bypass a website, and add teacher and student user accounts. It also explains how to customize the hotspot login page.
This document summarizes the configuration of a MikroTik router for a school network. It describes how to configure IP addresses, set the gateway and DNS, enable internet sharing, block YouTube access, set up a hotspot on Ethernet 3 with an address pool and user authentication, bypass a website, and add teacher and student user accounts. It also explains how to customize the hotspot login page.
[admin@MikroTik] >ip address add address=192.168.10.1/ [admin@MikroTik] >ip address add address=192.168.20.1/ [admin@MikroTik] >ip address print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK INTERFACE 0 192.168.0.123/24 192.168.0.0 ether1 1 192.168.10.1/24 192.168.10.0 ether2 2 192.168.20.1/24 192.168.20.0 ether3 [admin@MikroTik] > 5. Gateway dan DNS [admin@MikroTik] >ip route add gateway=192.168.0.1 [admin@MikroTik] >ipdns set servers=192.168.0.1,8.8.8.8 allow-remote-requests=yes 6. Internet Sharing / Pembagian internet ke client [admin@MikroTik] >ip firewall nat add chain=srcnat out-interface=ether1 action=masqu erade [admin@MikroTik] > 7. Blokiryoutube [admin@MikroTik] >ip firewall layer7-protocol print # NAME REGEXP 0 youtube ^.+(youtube).*$ [admin@MikroTik] >ip firewall filter add chain=forward layer7-protocol=youtubeacti on=drop in-interface=ether2 [admin@MikroTik] > 8. Hotspot pada Ether 3 [admin@MikroTik] >ip hotspot setup Select interface to run HotSpot on hotspot interface: ether3 Set HotSpot address for interface local address of network: 192.168.20.1/24 masquerade network: yes Set pool for HotSpot addresses address pool of network: 192.168.20.2-192.168.20.100 Select hotspot SSL certificate select certificate: import-other-certificate Import SSL certificate passphrase: Select hotspot SSL certificate select certificate: none Select SMTP server ip address of smtp server: 0.0.0.0 Setup DNS configuration
dns servers: 192.168.0.1,8.8.8.8
DNS name of local hotspot server dns name: Create local hotspot user name of local hotspot user: admin password for the user: 9. Bypass bsnp-indonesia.org [admin@MikroTik] >ip hotspot walled-garden add dst-host=*bsnp-indonesia.org* 10. Menambah user guru dansiswa [admin@MikroTik] >ip hotspot user add name=guru password=guru limit-bytes-in=2560 00k [admin@MikroTik] >ip hotspot user add name=siswa password=siswa limit-bytes-in=25 6000k 11. Mengganti default halaman login user Klikpada menu file, carifile login.html di folder hotspot drag ke computer kita, kemudian buka menggunakan wordpad file tersebut dan cari kata-kata welcome atau sesuaikan, kemudian rubah menjadi Selamat Datang di Hotspot@nama_peserta, kemudian save dan drag ke Winbox namun sebelumnya hapus terlebih dahulu file login.html di /hotspot/ pada mikrotik.