And I'm having some trouble or I have missed something.
Code below is the script.
Anyone can help? Thank you.
Code: Select all
/interface bridge
add name=bridge1_hotspot
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
add dns-name=ngn.wifi.net hotspot-address=50.1.0.1 name=hsprof1 use-radius=\
yes
/ip pool
add name=hs-pool-19 ranges=50.1.0.2-50.1.255.254
/ip dhcp-server
add address-pool=hs-pool-19 interface=bridge1_hotspot lease-time=1h name=\
dhcp1
/ip hotspot
add address-pool=hs-pool-19 addresses-per-mac=1 disabled=no interface=\
bridge1_hotspot name=hotspot1 profile=hsprof1
/port
set 0 name=serial0
set 1 name=serial1
/user-manager limitation
add name=15mbps rate-limit-burst-rx=30000000B rate-limit-burst-threshold-rx=\
15000000B rate-limit-burst-threshold-tx=15000000B \
rate-limit-burst-time-rx=30s rate-limit-burst-time-tx=30s \
rate-limit-burst-tx=30000000B rate-limit-rx=15000000B rate-limit-tx=\
15000000B
/user-manager profile
add name=15Mbps name-for-users=15Mbps
/user-manager user
add name=user1
/interface bridge port
add bridge=bridge1_hotspot interface=ether16
/ip address
add address=50.1.0.1/16 interface=bridge1_hotspot network=50.1.0.0
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=50.1.0.0/16 comment="hotspot network" gateway=50.1.0.1
/ip dns
set servers=8.8.8.8
/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 comment="masquerade hotspot network" \
src-address=50.1.0.0/16
/ip hotspot user
add name=admin
/radius
add address=127.0.0.1 service=hotspot
/system clock
set time-zone-name=Asia/Manila
/user-manager profile-limitation
add limitation=15mbps profile=15Mbps
/user-manager router
add address=127.0.0.1 name=router1
/user-manager user-profile
add profile=15Mbps user=user1