Community discussions

MikroTik App
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sat Nov 30, 2013 7:49 am

hotspot does not redirect to login page

Thu Dec 19, 2013 6:15 am

Hi all, I have the following config:
The setup is lan network ports ( will be routed to wan1 and wifi users ( will be routed on wan2.
It seems to be working as expected.

Problem: When I activate the hotspot for wifi users, users are not redirected to the login page. They have to manually type and then be able to login.
Any ideas?
/interface ethernet
set [ find default-name=ether1 ] name=port1
set [ find default-name=ether2 ] name=port2
set [ find default-name=ether3 ] name=port3
set [ find default-name=ether4 ] master-port=port3 name=port4
set [ find default-name=ether5 ] master-port=port3 name=port5

/interface wireless
set [ find default-name=wlan1 ] default-ap-tx-limit=1024000 disabled=no l2mtu=2290 mode=ap-bridge

/ip pool
add name=dhcp_pool1 ranges=
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=wlan1 lease-time=6h name=server1

/ip address
add address= comment=wifi interface=wlan1 network=
add address= comment=wan2 interface=port2 network=
add address= comment=wan1 interface=port1 network=
add address= comment=lan interface=port3 network=

/ip dhcp-server network
add address= dns-server=, gateway= netmask=24

/ip dns
set allow-remote-requests=yes servers=,

/ip firewall address-list
add address= list=lan-users
add address= list=wifi-users

/ip firewall mangle
add action=mark-routing chain=prerouting comment=lan-to-wan1 new-routing-mark=to_wan1 passthrough=no src-address-list=lan-users
add action=mark-routing chain=prerouting comment=wifi_to_wan2 new-routing-mark=to_wan2 passthrough=no src-address-list=wifi-users

/ip firewall nat
add action=masquerade chain=srcnat src-address=
add action=masquerade chain=srcnat src-address=

/ip route
add check-gateway=ping comment=vpn distance=1 gateway= routing-mark=to_wan1
add check-gateway=ping comment=internet distance=2 gateway= routing-mark=to_wan2

Who is online

Users browsing this forum: No registered users and 17 guests