====MENGGANTI NAMA SISTEM====
[admin@Mikrotik]> system identity
set name=Tekaje
[admin@Tekaje]>
====MENGGANTI NAMA INTERFACE====
[admin@Tekaje]> interface
[admin@Tekaje]/interface> set 0
name=internet
[admin@Tekaje]/interface> set 1 name=lan
====MENAMBAH IP ADDRESS ====
[admin@Tekaje]>ip address add
address=192.168.50.1/27 interface=lan
====DHCP CLIENT ====
[admin@Tekaje]>ip dhcp-client add
interface=internet disabled=no
[admin@Tekaje]>ip dhcp-client
print
Kalo ada akses internet maka akan mendapatkan ip
dari ISP
====DHCP SERVER ====
[admin@Tekaje]>ip dhcp-server
setup
Lengkapi isian berikut
dhcp server interface : lan
dhcp address space: 192.168.50.0/27
(otomatis)
gateway for dhcp network: 192.168.50.1
(otomatis muncul)
addresses to give out:
192.168.50.2-192.168.50.26
dns servers: 192.168.1.1 (otomatis)
lease time:3d (otomatis)
[admin@Tekaje]>ip route print
====FIREWALL NAT
(MASQUERADE) ====
[admin@Tekaje]>ip firewall nat add
chain=srcnat out-interface=internet src-address=192.168.50.0/27
action=masquerade
Test koneksi internet Test ping ke google.com
[admin@Tekaje]>ping google.com
Tekan Ctrl+C untuk menghentikan proses
====HOTSPOT & BANDWIDTH ====
[admin@Tekaje]> ip hotspot setup
Lengkapi isian berikut
hotspot interface:lan
local address of network: 192.168.50.1/27
masquerade network: yes
address pool of network:
192.168.50.2-192.168.50.26
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 192.168.50.1
dns name: smkn1maros.sch.id
name of local hotspot user: admin
password for the user: 1
[admin@Tekaje]> ip hotspot print
[admin@Tekaje]> ip hotspot profile
[admin@Tekaje]/ ip hotspot profile> set 0,1
login-by=http-chap
[admin@Tekaje]/ ip hotspot profile>set 1
rate-limit=256k/512k
[admin@Tekaje]/ ip hotspot profile>print
[admin@Tekaje]/ ip hotspot profile>..
[admin@Tekaje]/ ip hotspot>user
[admin@Tekaje]/ ip hotspot user>print
Tambah user baru
[admin@Tekaje]/ ip hotspot user> add name=vanessa
password=tkj
[admin@Tekaje]/ ip hotspot user>print
Tambah profil baru
[admin@Tekaje]/ ip hotspot user>profile
[admin@Tekaje]/ ip hotspot user profile> add name=siswa
shared-users=10 transparent-proxy=yes
[admin@Tekaje]/ ip hotspot user profile>print
[admin@Tekaje]/ ip hotspot user profile>set 0
transparent-proxy=yes
[admin@Tekaje]/ ip hotspot user profile>set 1 rate-limit=256k/512k
[admin@Tekaje]/ ip hotspot user profile>..
Tambah user baru dalam profil
[admin@Tekaje]/ ip hotspot user >add name=siswa1
password=1 profile=siswa
[admin@Tekaje]/ ip hotspot user >add name=siswa2
password=2 profile=siswa
[admin@Tekaje]/ ip hotspot user >print
[admin@Tekaje]/ ip hotspot user >/
====PROXY SERVER ====
[admin@Tekaje]> ip proxy
[admin@Tekaje]/ip proxy> print
[admin@Tekaje]/ip proxy> set enabled=yes
src-address=0.0.0.0 parent-proxy=0.0.0.0 cache-administrator=aariska.ayhu46@gmail.com cache-on-disk=yes
[admin@Tekaje]/ip proxy> print
====MENAMBAH SITUS YANG INGIN DI BLOK ====
[admin@Tekaje]/ip proxy>access
[admin@Tekaje]/ip proxyaccess> add
src-address=192.168.50.0/27 dst-host=*.facebook* action=deny
[admin@Tekaje]/ip proxy access> add
src-address=192.168.50.0/27 dst-host=*.youtube* action=deny
[admin@Tekaje]/ip proxy access>print
====FIREWALL NAT / REDIRECT ====
[admin@Tekaje]/ip proxy access>/
[admin@Tekaje]> ip firewall nat add
chain=dstnat protocol=tcp src-address=192.168.50.0/27 dst-port=80,3128,8000
action=redirect to-ports=8080
[admin@Tekaje]> ip firewall nat
print
====BANDWIDTH /QUEUE SIMPLE ====
[admin@Tekaje]> queue simple add
name=limit-lan target=lan max-limit=256k/512k
============SELAMAT MENCOBA======================