From Input

Fill in according to Interface and Ip



please leave a comment if an error occurs in the script

Output Script

Paste the script into the mikrotik terminal


/ip hotspot profile
add dns-name={{dns}} hotspot-address=10.5.50.1 name=hsprof1
/ip pool
add name=hs-pool-1 ranges=10.5.50.2-10.5.50.254
/ip dhcp-server
add address-pool=hs-pool-1 disabled=no interface={{hs}} lease-time=1h name=\
dhcp1
/ip hotspot
add address-pool=hs-pool-1 disabled=no interface={{hs}} name=hotspot1 profile=\
hsprof1
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip dhcp-client
add disabled=no interface={{dhcp}}
/ip address
add address=10.5.50.1/24 comment="hotspot network" interface={{hs}} network=\
10.5.50.0
/ip dhcp-server network
add address=10.5.50.0/24 comment="hotspot network" gateway=10.5.50.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,1.1.1.1
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface={{dhcp}}
/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=10.5.50.0/24
/ip hotspot user
add name={{user}} password={{pass}}
Copyright © ahmadydev.github.io 2021 Free article about mikrotik Balehotspot.id