help hotspot
Posted: Wed Dec 21, 2016 11:40 pm
Hello,
I'm new to this. I am using MikroTik RouterBOARD hAP ac lite L4 RB952UI-5AC2ND
My goal is to create a hotspot for an establishment.
I have already made some settings that I learned here in the forum.
The html pages are redirecting to my site where the user will log in.
I have some problems:
On my tablet (android) - automatically opens the login page and as soon as the login closes without displaying the status page.
In my Samsung Note 4 mobile phone (android) - as soon as you select the hotspot network, open the chorme and go to google.com (without internet), only appearing in the notifications to complete the login, it is forwarded to the page Login and once you log in you will go to the status page.
What I want is that once you select the hotspot network open the login page as the tablet and as soon as you log in open the status page as on the mobile phone.
Required, after login the user has to be redirected to a page (that at this moment the status page has been modified)
I have Google analytics on my site, I already tried using several links in walledgraden and nothing.
I leave here the export of the settings I made as there may be something missing important:
Any thoughts?
I'm new to this. I am using MikroTik RouterBOARD hAP ac lite L4 RB952UI-5AC2ND
My goal is to create a hotspot for an establishment.
I have already made some settings that I learned here in the forum.
The html pages are redirecting to my site where the user will log in.
I have some problems:
On my tablet (android) - automatically opens the login page and as soon as the login closes without displaying the status page.
In my Samsung Note 4 mobile phone (android) - as soon as you select the hotspot network, open the chorme and go to google.com (without internet), only appearing in the notifications to complete the login, it is forwarded to the page Login and once you log in you will go to the status page.
What I want is that once you select the hotspot network open the login page as the tablet and as soon as you log in open the status page as on the mobile phone.
Required, after login the user has to be redirected to a page (that at this moment the status page has been modified)
I have Google analytics on my site, I already tried using several links in walledgraden and nothing.
I leave here the export of the settings I made as there may be something missing important:
Code: Select all
# dec/21/2016 21:01:00 by RouterOS 6.34.4
# software id = ITUH-ZYBH
#
/interface bridge
add comment="Bridge entre LAN e WiFi" name=Bridge-LAN&WiFi
/interface ethernet
set [ find default-name=ether2 ] comment=Master mac-address=xx:xx:xx:xx:xx:xx name=LAN
set [ find default-name=ether1 ] comment="Modem" mac-address=xx:xx:xx:xx:xx:xx name=WAN
set [ find default-name=ether3 ] mac-address=xx:xx:xx:xx:xx:xx master-port=LAN
set [ find default-name=ether4 ] mac-address=xx:xx:xx:xx:xx:xx master-port=LAN
set [ find default-name=ether5 ] mac-address=xx:xx:xx:xx:xx:xx
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto mode=ap-bridge name=WiFi wps-mode=disabled
set [ find default-name=wlan2 ] name=wlan3
/ip neighbor discovery
set LAN comment=Master
set WAN comment="Modem"
set Bridge-LAN&WiFi comment="Bridge entre LAN e WiFi"
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add dns-name=HotSpot hotspot-address=192.168.10.1 html-directory=flash/hotspot login-by=http-pap name=HotSpot-Profile
/ip hotspot user profile
set [ find default=yes ] shared-users=unlimited transparent-proxy=yes
add add-mac-cookie=no idle-timeout=30m keepalive-timeout=30m name=user-profile session-timeout=3h shared-users=unlimited transparent-proxy=yes
/ip pool
add name=hotspot-pool ranges=192.168.10.2-192.168.10.200
/ip dhcp-server
add address-pool=hotspot-pool disabled=no interface=Bridge-LAN&WiFi lease-time=15m name=dhcp-hotspot
/ip hotspot
add address-pool=hotspot-pool disabled=no interface=Bridge-LAN&WiFi name=HotSpot profile=HotSpot-Profile
/interface bridge port
add bridge=Bridge-LAN&WiFi interface=LAN
add bridge=Bridge-LAN&WiFi interface=WiFi
/ip address
add address=192.168.1.3/24 comment="Modem" interface=WAN network=192.168.1.0
add address=192.168.10.1/24 comment="Bridged interface (LAN +WiFi)" interface=Bridge-LAN&WiFi network=192.168.10.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=WAN
/ip dhcp-server network
add address=192.168.10.0/24 comment="hotspot network" gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes servers=192.168.1.1
/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 to-addresses=0.0.0.0
add action=masquerade chain=srcnat comment="masquerade hotspot network" src-address=192.168.10.0/24 to-addresses=0.0.0.0
/ip hotspot user
add comment="Default Hotspot user" name=admin password=admin
add comment="Novo User" name=user password=user profile=user-profile server=HotSpot
/ip hotspot walled-garden
add comment="place hotspot rules here" disabled=yes
add dst-host=*********.pt dst-port=80 server=HotSpot
add dst-host=www.google-analytics.com dst-port=80,443 server=HotSpot
add dst-host=gstatic.com dst-port=80,443 server=HotSpot
add dst-host=googleapis.com dst-port=80,443 server=HotSpot
/ip proxy
set enabled=yes
/ip route
add distance=1 gateway=192.168.1.1