1. BERI NAMA ROUTER
/system identity set name=bayu
2. BERI NAMA INTERFACE dan AKTIFKAN WLAN
/interface ethernet set ether1 name=ether1-internet
/interface ethernet set ether2 name=ether2-lan
/interface enable wlan1
/interface wireless set wlan1 name=wlan1-hotspot
3. KONFIGURASI WLAN JADI AP dan SSID
/interface wireless set 0 mode=ap-bridge ssid=bayu@proxyUKK
4. KOFIGURASI JARINGAN TERHUBUNG INTERNET
(penambahan ip)
/ip address add address=192.168.100.1/25 interface=ether2-lan
/ip address add address=192.168.200.1/24 interface=wlan1-hotspot
/ip dhcp-client add interface=ether1-internet
(Lalu cek secara gui dhcp client kemudian aktifkan. atau bisa gunakan perintah dibawah untuk setting ip internet static)
/ip address add address=192.168.10.25/24 interface=ether1-internet
/ip route add gateway=192.168.10.1
(dhcp server, atur agar 99 client)
/ip dhcp-server setup => lan
/ip dhcp-server setup => wlan1
(dns server)
/ip dns set server=8.8.8.8,8.8.4.4 allow-remote-request=yes
(Firewall agar terhubung internet)
/ip firewall nat add chain=srcnat out-interface=ether1-internet action=masquerade
(Setiap sesudah konfigurasi firewall beri comen/keterangan nama secara GUI)
5. KONFIGURASI HOTSPOT
/ip hotspot setup
=> select certificate=none =>dns name=bayu.com
user=admin
Password=1234
Kemudian GUI cek di hotspot>server profile>login= nonaktifkan cookie
6. SETTING NTP
/system ntp client set enable=yes primary=202.65.114.202 secondary=162.159.200.1
/system clock set time-zone-name=Asia/Jakarta
7. WEB PROXY
/ip proxy set enable=yes cache-on-disk=yes port=8080 cache-administrator=bayu@smkwima.sch.id
8. BLOK SITE dan FILE
/ip proxy access add src-address=192.168.200.0/24 dst-port=80 dst-host=www.linux.org action=deny
/ip proxy access add src-address=192.168.200.0/24 dst-port=80 path=*mp3* action=deny
/ip proxy access add src-address=192.168.200.0/24 dst-port=80 path=*mkv* action=deny
Kemudian buat transparent firewall untuk blok.
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 in-interface=wlan1-hotspot action=redirect to-port=8080
9. IP TIDAK DAPAT PING KE ROUTER
/ip firewall filter add chain=input src-address=192.168.100.2-192.168.100.50 dst-address=192.168.100.1 protocol=icmp action=drop
10. IP TIDAK DAPAT PING KE CLIENT WIRELESS
/ip firewall filter add chain=input src-address=192.168.100.51-192.168.100.100 dst-address=192.168.200.1 protocol=icmp action=drop
11. CATATAN LOGGING DAN TERSIMPAN DI DISK
/ip firewall filter add chain=forward in-interface=ether2-lan action=accept log=yes
/system logging set 0,1,2,3 action=disk
12. MEMBUAT 20 ACCOUNT HOTSPOT SECARA RANDOM DI RADIUS dan ACCOUNT HOTSPOT HANYA BISA MENGGUNAKAN INTERNET PADA PUKUL 07.00 - 16.00
(cara lengkap disini) https://smkautomatsuda.sch.id/read/99/pembahasan-modul-ukk-tkj-paket-4
(Untuk mikrotik yang belum ada user manager harus install dulu) https://labkom.co.id/mikrotik/install-user-manager-dan-menghubungkan-dengan-hotspot-mikrotik-di-rb1100ahx2?amp
Konfigurasi tambahan.
1. BLOK CONTEN (COVID, FB, YT)
/ip firewall raw add chain=preraouting conten=covid action=Deny
2. SCHEDULE ETHER 2
/system schedule add name=off interval= 1d start-time=14:00:00 on-event= "interface ethernet disable lan"
/system schedule add name=on interval=1d start-time=14:05:00 on-event="interface ethernet enable lan"
3. SCHEDULE HOTSPOT
/system scrip add name=off source="ip hotspot user disable [find name = siswa]"
/system scrip add name=on source="ip hotspot user enable [find name = siswa]"
4. BLOK YT DI HP &PC
/ip firewall layer7-protocol add name=yt regexp="^.+(YouTube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.1.google.com|i.google.com|Google video.com|youtu.be).*$"
/ip firewall filter add chain=forward layer7-protocol=yt action=drop
5. BLOK IDM
/ip firewall layer7-protocol add name=idm regexp="^.+(exe|rar|iso|zip|7z|fiv|mu|avi| mp4|3gp|mp3|dat|mov|.mp4).*$"
/ip firewall filter add chain=forward protokol=TCP layer7-protocol=idm out-interface=lan action=drop
6. MENGALIHKAN YT KE ILMU KOMPUTER
/ip web proxy access add dst-port=80 dst-host=*YouTube.com redirect-to= ilmukomputer.com action=deny
/ip firewall filter add chain=forward protokol=TCP dst-port=80
°Sebelum di blok, dialihkan dulu
7. IP BINDING
/ip hotspot binding add mac-address :... Address :... To-address :... Server=hotspot type=bypassed
8. LIMIT USER
/ip hotspot user profil add rate-limit=512k/512k name=siswa
/ip hotspot user add name=siswa password=1 profile=siswa
9. VLAN
/interface vlan add name=vlan1 vlan-id=1 interface=lan
/interface vlan add name=vlan2 vlan-id=2 interface=lan
/ip address add address=10.10.100.1/24 interface=vlan1
/ip address add address=10.10.200.1/24 interface=vlan2
/ip pool add name=vlan1 ranges=10.10.100.2-10.10.100.50
/ip pool add name=vlan2 ranges=10.10.200.2-10.10.200.50
10. MENAMBAH SCRIPT QR CODE agar bisa SCAN QR
/ip hotspot walled-garden IP add action= accept comment="mikhmon QR code scanner" disabled=no dst-host=laksaqo.github.io/myqr
/ip hotspot walled-garden add dst-host=laksa19.github.io/myqr action=allow
11. Backup konfigurasi
/export file=bayuproxyukk
0 Response to "UKKP4-TKJ"
Posting Komentar