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

.

> IP MEGA

/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

/ppp profile
add local-address=19.19.4.1 name=profile1 rate-limit=2m/2m remote-address=\
PPPoE-pool

/interface bridge port


add bridge=bridge1-Hotspot interface=ether3

/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

.> terahir

/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