Setting Up A Mikrotik Hotspot With UserManager
Setting Up A Mikrotik Hotspot With UserManager
Setting Up A Mikrotik Hotspot With UserManager
P O S T E D BY J U R G E N S K RA U S E
STEP, TUTORIAL
H O T S P O T , M I K R O T I K , S T E P - B Y-
69 COMMENTS
Mikrotik RouterOS provides a very powerful Hotspot Feature. This can be used with the
Mikrotik built in Radius server (Userman) or with a remote Radius/Freeradius Server.
You will need:
Mikrotik RouterBOARD:
Level 4 or better licence (Lower licences will allow only a single Hotspot client)
RouterOS 6.x (5.x will also work, but this tutorial is based on v6.7)
The network will be configured as below. You may need to adjust the IP Addresses to suit
your needs
Notes:
The RouterBOARD CPU and RAM will directly affect the performance of your Hotspot, so
consider beforehand how many clients you wish to connect.
A RouterBOARD 750 can comfortably run about 25-50 users.
In my example I will use a RouterBOARD 532 with one 2.4ghz WLAN card
2.
3.
Click "+"
4.
Enter the IP Address you wish to assign to the router, this will be the outward facing
IP, so make sure to select the ethernet interface that will give the router internet access.
5.
Click on "Apply"
This example uses Google's DNS service. You can easily make use of OpenDNS to
implement simple filtering, or use your own DNS servers if needed.
1.
2.
3.
4.
Click on "Apply"
1.
Click on IP
2.
Click on Routes
3.
Click on "+"
4.
5.
Test:
Check if you can ping a public ip address like 8.8.8.8
1.
Click on Tools
2.
Click on Ping
3.
4.
Click Start
Make sure that the version of the file matches the version and architecture of your
device
2.
3.
4.
5.
1.
2.
Click on "+"
3.
4.
Click "Apply"
1.
2.
3.
4.
5.
6.
Click "OK"
1.
2.
Click on "+"
3.
4.
Click "Apply"
3.2.2 - Add Hotspot Bridge IP Address
I make use of the private 192.168.0.1/24 range for the hotspot network, but you can use
whatever is suitable in your setup.
/ip address add address=192.168.0.1/24 interface=Hotspot
1.
2.
3.
4.
5.
6.
Click "OK"
1.
2.
3.
4.
Select the interface you want to add to the hotspot, in my case it is "wlan1"
5.
6.
Click "OK
1.
2.
3.
4.
5.
6.
Click "OK"
timeout=3d
/ip hotspot user
add name=dexter password=dexter
1.
Click on the "IP" menu. If this option is not available refer to step 2
2.
3.
Click on "Hotspot Setup". This will start the Hotspot Setup Wizard
2.
Click Next
1.
Click next - The address range should be filled in automatically as per our network
configuration.
1.
Click Next - the address pool should be pre-populated with the right settings
1.
This tutorial will not cover the use of Certificates, so you may select "none" and click
next
1.
Enter the IP-Address of your SMTP server. Many providers do not allow use of their
SMTP servers outside their own network, so this option allows you to circumvent the SMTP
server configured on the client's device in favor of your own. (You may even specify the
SMTP server of you own provider in some cases)
2.
Click "Next"
Enter one or more upstream DNS servers, you can use OpenDNS to provide you
with a basic filtering service. Here I use Google's public DNS.
2.
Click "Next"
1.
Enter a host name for the local Hotspot. I am using hotspot.example.com, but this
could be anything you want.
2.
Click "Next"
1.
2.
3.
Click "Next"
1.
Congratulations, you have now set up basic functionality for a Mikrotik Wireless Hotspot,
you can create users under "IP->Hotspot->Users. But alas, you still need to configure the
Usermanager for a fully featured hotspot.
2.
Click on "Hotspot"
3.
4.
5.
6.
7.
Click "OK"
1.
Click on "RADIUS"
2.
Click on "+"
3.
4.
Add the loopback bridge IP to the address field, in this tutorial 10.10.0.1
5.
6.
Click "OK"
1.
2.
1.
2.
3.
4.
5.
6.
Click "OK"
Your Mikrotik Hotspot should now be able to communicate with the Usermanager Radius
Server. You can now proceed to set up profiles and users on the user manager interface.
I will soon do a UserManager Tutorial as well.