Community discussions

MikroTik App
 
parlasio
just joined
Topic Author
Posts: 1
Joined: Mon Apr 26, 2021 7:22 pm

HotSpot Redirection Error

Mon Apr 26, 2021 7:36 pm

Hi, hope you can show me where I failed.

I'm using RouterOS 6.46 in a ccr1036, connected through winbox (MAC) and removed default config.

I'm using the same commands I implement in other devices, it is the first thing that this happens. I enter commands one by one and I get no errors.
These are the commands to recreate my scenario:

/interface bridge
add fast-forward=no name=Bridge_Internet
add arp=local-proxy-arp fast-forward=no name=bridge_Mngm
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface vlan
add interface=ether2 name=ETH2_internet_vlan100 vlan-id=100
add interface=ether2 name=ETH2_mngm_vlan500 vlan-id=500
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
add hotspot-address=192.168.10.1 name=hsprof1
/ip hotspot
add disabled=no interface=Bridge_Internet name=hotspot1 profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] add-mac-cookie=no name=void shared-users=15
/ip pool
add name=Internet ranges=192.168.10.10-192.168.10.200
add name=Mngm ranges=192.168.70.10-192.168.70.200
/ip dhcp-server
add address-pool=Internet authoritative=after-2sec-delay disabled=no \
interface=Bridge_Internet name=Internet
add address-pool=Mngm authoritative=after-2sec-delay disabled=no interface=\
bridge_Mngm name=Mngm
/interface bridge port
add bridge=Bridge_Internet interface=ETH2_internet_vlan100
add bridge=Bridge_Internet interface=ether3
add bridge=bridge_Mngm interface=ETH2_mngm_vlan500
add bridge=bridge_Mngm interface=ether4
add bridge=bridge_Mngm interface=ether5
/ip address
add address=192.168.10.1/24 interface=Bridge_Internet network=192.168.10.0
add address=192.168.70.1/24 interface=bridge_Mngm network=192.168.70.0
add address=10.10.100.200/24 disabled=yes interface=ether1 network=\
10.10.100.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1 netmask=24
add address=192.168.70.0/24 gateway=192.168.70.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=10.10.100.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
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.10.0/24
/ip hotspot user
add name=admin password=admin server=hotspot1
/ip route
add disabled=yes distance=1 gateway=10.10.100.1
/system clock
set time-zone-name=Europe/Madrid
/system leds
set 0 interface=wlan1
/system package update
set channel=stable
/system routerboard settings
set init-delay=0s

I test this hostpot via ethernet in ether3 (Bridge_Internet).
When trying to access the login page I get the following message:
"Redirect error! Connection lost, Welcome Portal not reachable or walled garden not updated!"

Thank you.

Who is online

Users browsing this forum: No registered users and 21 guests