simple routeros hotspot setup

A simple hotspot how-to

The simple hotspot setup described here is used as an extra authentication and accounting method along with wpa2 pre-shared keys.

I assume that the router is connected already to your WAN(s).
In my case the WAN(s) are the AWMN with BGP and the Internet with static routes.

Test connectivity:
[ipduh@rock] /ip> /ping
HOST                                     SIZE TTL TIME  STATUS                                                                                                          56  49 63ms                              56  49 64ms                              56  49 63ms 
    sent=3 received=3 packet-loss=0% min-rtt=63ms avg-rtt=63ms max-rtt=64ms 

[ipduh@rock] /ip> /ping www.awmn
HOST                                     SIZE TTL TIME  STATUS                                                                                                           56  57 11ms                               56  57 5ms                               56  57 25ms                               56  57 10ms 
    sent=4 received=4 packet-loss=0% min-rtt=5ms avg-rtt=12ms max-rtt=25ms 

Set wireless:
/interface wireless set wlan1 band=2ghz-b/g/n \
\... mode=ap-bridge

Set the wireless interface ip address
/ip address add address= interface=wlan1

Set the hotspot
 /ip hotspot setup
Select interface to run HotSpot on 

hotspot interface: wlan1
Set HotSpot address for interface 

local address of network:
masquerade network: yes
Set pool for HotSpot addresses 

address pool of network:
Select hotspot SSL certificate 

select certificate: none                    
Select SMTP server 

ip address of smtp server:
Setup DNS configuration 

dns servers:
DNS name of local hotspot server 

dns name:

Add a Hotspot User
/ip hotspot user add name=surfer password=opensesami


You should be able to login by connecting to the if with SSID supplying the key if enabled and get your IP and DNS settings from the DHCP server. Once you fireup a browser you will be redirected to --a DNS-hijacked authorization website running on

Simple RouterOS Hotspot Setup