################################################
# MIKROTIK HOTSPOT WIZARD
# Date/Time:
# By: BuanaNETPBun.Github.io
################################################
/ip firewall nat add action=masquerade chain=srcnat src-address="10.5.50.0/24"
/ip dns set allow-remote-requests=yes servers="8.8.8.8,8.8.4.4"
/ip address add address="10.5.50.1/24" interface="ether2"
/ip pool add name="pool-myhotspot.net" ranges="10.5.50.2-10.5.50.254"
/ip dhcp-server add address-pool="pool-myhotspot.net" name="dhcp-myhotspot.net" interface="ether2"
/ip dhcp-server network add address="10.5.50.0/24" gateway="10.5.50.1"
/ip hotspot profile add dns-name="myhotspot.net" hotspot-address="10.5.50.1" html-directory=hotspot login-by="cookie,http-chap,http-pap" name="serv-prof-myhotspot.net"
/ip hotspot add address-pool="pool-myhotspot.net" interface="ether2" name="server-myhotspot.net" profile="serv-prof-myhotspot.net" disabled=no
/ip hotspot user profile add name="prof-myhotspot.net" rate-limit="1M/2M" shared-users="10"
/ip hotspot user add name="user" password="12345" profile="prof-myhotspot.net"
/ip dhcp-client add disabled=no interface=ether1
/interface wireless set [ find default-name="wlan1" ] disabled=no mode=ap-bridge ssid="My Wifi Home"