SETTING MIKROTIK
1. Memberi Nama Admin
[ admin@MikroTik ] system identity set name=nama
2. Menambah User
[admin@nama] user add name=nama anda password=anda
group=full
3. Melihat Interface
[ admin@nama ] interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
# NAME TYPE MTU L2MTU MAX-L2MTU
0 R ether1 ether 1500
1 R ether2 ether 1500
2 R ether3 ether 1500
3 R ether4 ether 1500
4 Wlan1 ether 1500
4. Memberi Nama Interface
[ admin@nama ] interface set 0 name=Internet
[ admin@nama ] interface set 1 name=LAN
Menampilkan Nama Interface
[ admin@nama ] interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
# NAME TYPE MTU L2MTU MAX-L2MTU
0 R Internet ether 1500
1 R LAN ether 1500
5. Memberi Ip Address
[ admin@nama ] ip address add address=192.168.4.1/24 interface=Internet (sesuaikan dg ip dari isp)
[ admin@nama ] ip address add address=192.168.100.1/24 interface=LAN
[ admin@nama ] ip address add address=192.168.200.1/24 interface=wlan1
6. Memberi Ip Gateway
[ admin@nama ] ip route add gateway=192.168.4.1
7. Setting DNS
[ admin@nama ] ip dns set servers=8.8.8.8 allow-remote-requests=yes
Menampilkan DNS
[ admin@nama ] ip dns print
Servers : 8.8.8.8
dynamic-servers :
allow-remote-requests : yes
max-udp-packet-size : 4096
cache-size : 2048KiB
cache-max-ttl : 1w
cache-used : 10KiB
8. Setting Firewall Nat
[ admin@nama ] ip firewall nat add chain=srcnat action=masquerade out-interface=internet
[ admin@nama ] ip firewall nat print
Flags : X – disabled, I – invalid, D – dinamyc
0 chain=srcnat action=masquerade out-interface=internet
9. Setting Hotspot di RouterBoard
[ admin@nama ] interfaces wireless enable wlan1
[ admin@nama ] interfaces wireless edit wlan1 ssid (Nama @ Peserta)
[ admin@nama ] interfaces wireless edit wlan1 mode (ap-bridge)
10. Setting firewall filter bloksitus
[admin@nama] ip firewall filter
[admin@nama] ip firewall filter add action=drop chain=forward content=youtube.com in-interface=lan out-interface internet
[admin@nama] ip firewall filter print
0. x ;;; place, hotspot rule here
Chain used-hs-chain action=passthrough
1. chain=forward action=drop in-interface=lan out-interface=internet content=youtube.com
11. Setting DHCP
[ admin@nama ] ip dhcp-server setup
Select interface to run DHCP server on
dhcp server interface: wlan1
Select network for DHCP addresses
dhcp address space: 192.168.200.0/24
Select gateway for given network
gateway for dhcp network: 192.168.200.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 192.168.200.2-192.168.200.100
Select DNS servers
dns servers: 8.8.8.8
Select lease time
lease time: 3d
[ admin@nama ]
12. Setting Hotspot Setup
[ admin@nama ] ip hotspot setup
Select interface to run Hotspot on
hotspot interface : wlan1
Set Hotspot address for interface
local address of network : 192.168.200.1/24
masquerade network : yes
Set pool for Hotspot addresses
address pool of network : 192.168.200.2-192.168.200.100
Select hotspot SSL certificate
select certificate : import-other-certificate dihapus, ubah menjadi none
select SMPT server
ip address of smtp server : 0.0.0.0
Setup DNS configuration
dns server : 8.8.8.8
DNS name of local hotspot server
dns name : smkmuhabungsemuli.sch.id
Create local hotspot user
name of local hotspot user : admin
password for the user :
[ admin@nama ]
13. Rubah Tampilan Hotspot
[admin@nama] file edit number=hotspot/login.html
value-name: contents
Tambahkan file setelah script
SELAMAT DATANG DI
HOTSPOT SMK MUHAMMADIYAH ABUNG SEMULI
14. Membuat User Hotspot
[ admin@nama ] ip hotspot user Pofile add name=master rate-limit=512k/1m
[ admin@nama ] ip hotspot user Pofile add name=murid rate-limit=256k/256m
[ admin@nama ] ip hotspot user add name=guru password=guru profile=master
[ admin@nama ] ip hotspot user add name=siswa password=siswa profile=murid
15. Bypass Alamat http://bsnp-indonesia.org
admin@nama] ip hotspot walled-garden add action=allow dst-host=bsnp-indonesia.org
[admin@nama] ip hotspot walled-garden print
Flags: X - disabled, D - dynamic
# SERVER METHOD DST-HOST DST-PORT PATH ACTION HITS
0 bsnp-indon... allow 0
16. Menghapus cache
Ip hotspot profile edit hsprof1 login-by
Cookie, http-chap
Yang dihapus cookie
http-chap
disimpan pke perintah Ctrl O
Komentar
Posting Komentar