Selasa, 25 April 2017


KONFIGURASI MIKROTIK BERBASIS CLI (COMAND LINE INTERFACES)

1.      Memberi Nama Admin
[ admin@MikroTik ] > system identity set name=nama

2.      Menambah User

[admin@nama]>user add name=nama anda password=anda
groub: full
[admin@nama]>quit
[ admin@MikroTik ] >lalu masuk ke user yang anda buat

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

4.      Memberi Nama Interface
[ admin@nama ] > interface set 0 name=internet

[ admin@nama ] > interface set 1 name=lan

[ admin@nama ] > interface set 2 name=hotspot

[ 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
2     R            hotspot                       ether                           1500

5.      Memberi Ip Address
[ admin@nama ] > ip address add address=192.168.1.1/24 interface=internet (sesuaikan dg ip dari isp)

[ admin@nama ] > ip address add address=192.168.100.1/26 interface=lan

[ admin@nama ] > ip address add address=192.168.200.1/24 interface=hotspot

6.      Memberi Ip Gateway
[ admin@nama ] > ip route add gateway=192.168.100.1

7.      Setting DNS
[ admin@nama ] > ip dns set servers=8.8.8.8 allow-remote-requests=yes


[ 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
[ admin@nama ] > ip dns static add name=www.smkn3kotabumi.sch.id address=192.168.100.1

[ admin@nama ] > ip dns static print
Flags : D – dynamic, X – disabled, R – regexp
   #    NAME                                                                        ADDRESS                              TTL
   1     www.smkn3kotabumi.sch.id                                 192.168.100.1

8.      Setting Firewall Nat
[ admin@nama ] > ip 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

  [ admin@nama]/ ip firewall nat /

9.      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

[admin@nama]/ip firewall filter>/

10.  Setting DHCP
[ admin@nama ] >  ip dhcp-server setup
Select interface to run DHCP server on

dhcp server interface: hotspot
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.62
Select DNS servers

dns servers: 8.8.8.8
Select lease time
lease time: 3d
[ admin@nama ] >

11.  Setting Hotspot Setup
[ admin@nama ] > ip hotspot setup
Select interface to run Hotspot on
hotspot interface : hotspot
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.62
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 :smkn3kotabumi.sch.id
Create local hotspot user

name of local hotspot user : admin
password for the user :

[ admin@nama ] >

12.  Setting Access Point TP-Link
Akses Ip Default Radio 192.168.0.254 Di browser
Nama pengguna : admin
Password : admin lalu klik ok
Quit Setup pilih Next
Operation Mode pilih Access Point lalu klik Next
Wireless Mode lalu diganti :
Wireless Network Name (SSID): HOTSPOT (Nama Peserta)
Wireless Security : Pilih (No Security) Lalu klik Next
Network Setting (DHCP Server pilih Enable) lalu klik Next
Finish lalu klik Reboot lalu klik yes tunggu proses reboot
Bila proses reboot selesai lalu pilih WPS (WPS Status pilih Disable) lalu klik please click here to reboot.

13.  Rubah Tampilan Hotspot
[admin@nama] > file edit number=hotspot/login.html
value-name: contents

Tambahkan file setelah script <body>
<body>
<h1>  <center> SELAMAT DATANG DI SMKN 3 KOTABUMI </center> </h1>

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


SILAHKAN KLIK LINK DIBAWAH INI

1.Link 3 Tutorial Konfiguarasi Instalasi Wordpress di Linux Debian 8.7

2.Link 4 Driver USB WIFI TP-LINK

3.Link 5 TUTORIAL KONFIGURASI VLAN DI SWITCH MANAGED VERSI RG- ES208GC




SEMOGA BERMANFAAT 









KONFIGURASI MIKROTIK BERBASIS CLI (COMAND LINE INTERFACES) 1.       Memberi Nama Admin [ admin@MikroTik ] > system identity set n...