Hi,
The problem occurred when a device first connect to a hotpost wifi. Since it is the first user and not yet registered, right after they connecting, they should be redirected to Hotspot login page.
Now the problem is, instead of going to hotspot login page. The user sees microsoft.com website instead and not the hotspot login page. Of course they have no internet access because they are not yet registered right.
Now, when I try to type 192.168.3.1 (hotspot network) I can access the hotspot login page and login normally then I have the internet connection with the profile based on userman i defined.
Below is my config.
[admin@MikroTik] > export
may/24/2018 06:39:03 by RouterOS 6.42.2
software id = UHJX-RK6X
model = 951G-2HnD
serial number = 642F06638E36
/interface bridge
add admin-mac=6C:3B:6B:82:B4:14 auto-mac=no comment=defconf fast-forward=no name=bridge
add name=loopback
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce country=philippines disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=8773886 wireless-protocol=802.11
/interface ethernet
set [ find default-name=ether1 ] name=1.Internet
set [ find default-name=ether2 ] name=2.LocalMaster
set [ find default-name=ether3 ] name=3.LocalActive
set [ find default-name=ether4 ] name=4.Local
set [ find default-name=ether5 ] name=5.Hotspot
/interface list
add exclude=dynamic name=discover
add name=mactel
add name=mac-winbox
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys supplicant-identity=MikroTik wpa-pre-shared-key=L@moste101 wpa2-pre-shared-key=L@moste101
/ip hotspot profile
add dns-name=hotspot.portal hotspot-address=192.168.3.1 login-by=http-chap name=hsprof1 use-radius=yes
/ip hotspot user profile
set [ find default=yes ] transparent-proxy=yes
/ip pool
add name=dhcp ranges=192.168.2.150-192.168.2.254
add name=hotspotpool ranges=192.168.3.11-192.168.3.254
/ip dhcp-server
add address-pool=dhcp authoritative=after-2sec-delay disabled=no interface=bridge name=defconf
add address-pool=hotspotpool disabled=no interface=5.Hotspot lease-time=1h name=dhcp1
/ip hotspot
add address-pool=hotspotpool disabled=no interface=5.Hotspot name=hotspot1 profile=hsprof1
/snmp community
set [ find default=yes ] addresses=0.0.0.0/0
/tool user-manager customer
set admin access=own-routers,own-users,own-profiles,own-limits,config-payment-gw password=admin123!@#
/tool user-manager profile
add name=admin name-for-users="" override-shared-users=1 owner=admin price=0 starts-at=logon validity=0s
/interface bridge port
add bridge=bridge comment=defconf interface=2.LocalMaster
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge interface=3.LocalActive
add bridge=bridge interface=4.Local
/ip neighbor discovery-settings
set discover-interface-list=discover
/interface list member
add interface=2.LocalMaster list=discover
add interface=3.LocalActive list=discover
add interface=4.Local list=discover
add interface=5.Hotspot list=discover
add interface=wlan1 list=discover
add interface=bridge list=discover
add interface=loopback list=discover
add interface=bridge list=mactel
add interface=bridge list=mac-winbox
/ip address
add address=192.168.2.1/24 comment=defconf interface=2.LocalMaster network=192.168.2.0
add address=192.168.1.11/24 interface=1.Internet network=192.168.1.0
add address=10.10.0.1 interface=loopback network=10.10.0.1
add address=192.168.3.1/24 interface=5.Hotspot network=192.168.3.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=1.Internet
/ip dhcp-server lease
add address=192.168.2.158 client-id=1:6c:71:d9:2a:7e:15 mac-address=6C:71:D9:2A:7E:15 server=defconf
/ip dhcp-server network
add address=192.168.2.0/24 comment=defconf gateway=192.168.2.1 netmask=24
add address=192.168.3.0/24 comment="hotspot network" gateway=192.168.3.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.2.1 name=router
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept establieshed,related" connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=1.Internet
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface=1.Internet
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=1.Internet
add action=masquerade chain=srcnat comment="masquerade hotspot network" src-address=192.168.3.0/24
add chain=pre-hotspot dst-address-type=!local hotspot=auth
/ip hotspot user
add name=admin password=admin123!@#
/ip proxy
set enabled=yes
/ip route
add distance=1 gateway=192.168.1.1
/radius
add address=10.10.0.1 secret=secret service=hotspot
/radius incoming
set accept=yes
/system clock
set time-zone-name=Asia/Manila
/system leds
set 0 interface=wlan1
/system ntp client
set enabled=yes server-dns-names=asia.pool.ntp.org
/system routerboard settings
set silent-boot=no
/tool mac-server
set allowed-interface-list=mactel
/tool mac-server mac-winbox
set allowed-interface-list=mac-winbox
/tool traffic-monitor
add interface=3.LocalActive name=tmon1 threshold=0
/tool user-manager database
set db-path=user-manager
/tool user-manager router
add coa-port=1700 customer=admin disabled=no ip-address=10.10.0.1 log=auth-fail name=Mikrotik shared-secret=secret use-coa=no
/tool user-manager user
add customer=admin disabled=no password=admin123!@# shared-users=1 username=admin wireless-enc-algo=none wireless-enc-key="" wireless-psk=""