0% found this document useful (0 votes)
115 views4 pages

Setting Mikrotik 5.118

1. This document outlines the steps to configure the network settings on a MikroTik router, including naming the device and interfaces, setting IP addresses, configuring DNS, DHCP, firewall NAT, proxy, and hotspot settings. 2. Configuration includes setting LAN, WAN, and hotspot IP addresses and subnets, enabling masquerade and port forwarding NAT rules, configuring DNS and proxy servers, creating a DHCP server for the hotspot subnet, and setting up a local hotspot with users and profiles. 3. Advanced options covered are blocking specific websites via the proxy, customizing the hotspot login page, setting rate limits for user profiles, bypassing a site via the hotspot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views4 pages

Setting Mikrotik 5.118

1. This document outlines the steps to configure the network settings on a MikroTik router, including naming the device and interfaces, setting IP addresses, configuring DNS, DHCP, firewall NAT, proxy, and hotspot settings. 2. Configuration includes setting LAN, WAN, and hotspot IP addresses and subnets, enabling masquerade and port forwarding NAT rules, configuring DNS and proxy servers, creating a DHCP server for the hotspot subnet, and setting up a local hotspot with users and profiles. 3. Advanced options covered are blocking specific websites via the proxy, customizing the hotspot login page, setting rate limits for user profiles, bypassing a site via the hotspot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Ip SETTING MIKROTIK

MIKROTIK 5.18

1. Memberi Nama Admin

[ admin@MikroTik ] > system identity set name=nama

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

4. Memberi Ip Address

[ admin@nama ] > ip address add address=192.168.100.150/24 interface=internet (sesuaikan dg ip


dari isp)

[ admin@nama ] > ip address add address=192.168.20.1/24 interface=lan

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

5. Memberi Ip Gateway

[ admin@nama ] > ip route add gateway=192.168.100.1

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

7. 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 > add chain=dstnat protocol=tcp dst-port=80 action=redirect
to-ports=3128 klo tdk berhasil ganti 3128 menjadi 8080

[ admin@nama ] /ip firewall nat > print


Flags : X – disabled, I – invalid, D – dinamyc
0 chain=srcnat action=masquerade out-interface=internet

1 chain=dstnat action=redirect to-ports=3128 protocol=tcp dst-port=80 atau

2 chain=dstnat action=redirect to-ports=8080 protocol=tcp dst-port=80

[ admin@nama ] /ip firewall nat > /

8. 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 ] >

9. Setting Proxy

[ admin@nama ] > ip proxy

[ admin@nama ] / ip proxy > set enabled=yes src-address=0.0.0.0 port=3128 parent-proxy=0.0.0.0


[email protected] /

[ admin@nama ] / ip proxy > set enabled=yes src-address=0.0.0.0 port=8080 parent-proxy=0.0.0.0


[email protected]

10. Proxy Blocking Site

[ admin@nama ] / ip proxy > access add dst-host=*kompas* action=deny

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
Set ip address = 192.168.200.2
Net mask=255.255.255.0
Gateway=192.168.200.1

Ssid=nama@hotspot
Security= no
Klik Network Disable DHCP
reboot

13. Rubah Tampilan Hotspot


[admin@arie] > 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@arie] > ip hotspot walled-garden add action=allow dst-host=bsnp-indonesia.org
[admin@arie] > 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

You might also like