Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/interface wireless

set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge \

    ssid=megakarya_wifi

/interface ethernet
set [ find default-name=ether1 ] name=ISP
set [ find default-name=ether2 ] name=PC-CCTV
set [ find default-name=ether4 ] name=Server-PPPoE
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
add dns-name=lookatthis.info hotspot-address=18.18.3.1 login-by=\
http-chap,http-pap,trial name=hsprof1
/ip pool
add name=dhcp_pool1 ranges=18.18.3.10-18.18.3.254
add name=PPPoE-pool ranges=19.19.4.10-19.19.4.254
add name=hs-pool-7 ranges=20.20.5.10-20.20.5.254
add name=dhcp_pool4 ranges=21.21.6.10-21.21.6.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=PC-CCTV name=dhcp2
add address-pool=dhcp_pool4 disabled=no interface=ether3 name=dhcp1
/ip hotspot
add address-pool=hs-pool-7 disabled=no interface=ether3 name=\ hotspot1
profile=hsprof1
/ppp profile
add local-address=19.19.4.1 name=profile1 rate-limit=2m/2m remote-address=\
PPPoE-pool
/interface pppoe-server server
add disabled=no interface=Server-PPPoE service-name=service1
/ip address
add address=18.18.3.1/24 interface=PC-CCTV network=18.18.3.0
add address=19.19.4.1/24 interface=Server-PPPoE network=19.19.4.0
add address=20.20.5.1/24 interface=bridge1-Hotspot network=20.20.5.0
/ip dhcp-client
add disabled=no interface=ISP
/ip dhcp-server network
add address=172.23.112.0/24 comment="hotspot network" gateway=172.23.112.1
add address=18.18.3.0/24 gateway=18.18.3.1
add address=19.19.4.0/24 comment="hotspot network" gateway=19.19.4.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat out-interface=ISP
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=172.23.112.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=18.18.3.0/24
/ip hotspot user
add name=admin
/ppp secret
add name=megakarya password=323472 profile=profile1 service=pppoe
/system clock
set time-zone-name=Asia/Jakarta

You might also like