/system identity set name=bayu
/password 1
/interface ethernet set ether1 name=internet
/interface ethernet set ether2 name=lan
/ip address add address=192.168.10.25/24 interface=internet
/ip address add address=192.168.100.1/25 interface=lan
/ip route add gateway=192.168.10.1
/ip firewall nat add chain=srcnat out- interface=int action=masquerade
/ip dns set server=8.8.8.8, 8.8.4.4 allow- remote-request=yes
/ip dhcp-server setup => dhcp server interface=lan
/system NTP client set enable=yes Primary–Ntp=203.160.128.3 (Indonesia)
/ip proxy set enable=yes cache-on-disk=yes port=8080 cache-administrator=bayu@smkwima.sch.id
2. MENGAKTIFKAN WIRELESS MIKROTIK/BISA JUGA MENGGUNAKAN AP TINGGAL MENYESUAIKAN (yang akan di aktifkan dan tambahkan ip)
/interface enable wlan 1
/ip address add address=192.168.200.1/24 interface=wlan1
/interface wireless set 0 mode=ap-bridge ssid=bayu@proxyukk
/ip dhcp-server setup => wlan1
3. MENAMBAH HOTSPOT
/ip hotspot setup => select certificate=none
/ip hotspot user add name=1 password=1
4. 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 action=drop
5. 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 action=drop
6. CATATAN LOGGING DAN TERSIMPAN DI DISK
/ip firewall filter add chain=forward in-interface=lan action=accept log=yes
/ip system loggin set 0,1,2,3 action=disk
7. 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
8. Blok Situs dan File
/ip firewall Nat Add chain=dstnat protokol=TCP dst-port=80 in-interface=lan action=redirect to-port=8080
/ip proxy access add dst-host=*linux.org action=deny
/ip proxy access add dst-port=80 path :*.mp3 action : deny
/ip proxy access add dst-port=80 path :*.mkv action : deny
Atau bisa juga blok menggunakan firrewall caranya=
Klik menu IP > Firewall > Filter Rules > Chain: forward > Advanced > Content: linux.org > Action:drop > OK
Untuk memblok file berekstensi .mp3, dan .mkv langkah-langkahnya:
Klik menu IP > Firewall > Filter Rules > Chain: forward > Advanced > Content: .mp3 > Action:drop > OK
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 "Konfigurasi dasar mikrotik"
Posting Komentar