You might be running a cyber café, restaurant, hotel or any global business that you might want to establish a network that will have data limitation package with prepaid billing system,this is absolutely an ideal concept. But I will tell that you can achieve this by using the MikroTik Hotspot Server with MikroTik User Manager Radius Server.
Now the reason is because, MikroTik User Manager is a poplar Radius application that will give facility to manage user data package as well as prepaid billing system efficiently. On the other hand, MikroTik Hotspot is a popular service that will help to connect your network user without any hassle.
So, it is time to know about MikroTik Hotspot Configuration with User Manager Radius Server and this article will guide you how to configure a Hotspot Server with User Manager Radius Server that will have Data Limit and Prepaid Billing System facility.
In this tutorial am going to work with you to design a MikroTik Hotspot network with User Manager Radius Server that will have
Data Limitation Package and
Prepaid Billing System with Scratch Card. Bear in mind that I might be designing a small and simple network.
In real situation, your network might be larger than what you see in this tutorial but the basic concept will remain same.
I try to make this tutorial a little bit short so I decided to divide it into part1 and 2
So here in this part1 we will set up a network, which the WAN Distribution Switch is connected to internet gateway.
MikroTik Router’s (NAS) WAN interface and MikroTik User Manager Radius Server are also connected to this WAN Distribution Switch. Hotspot users will be connected to NAS Router through LAN Switch and will get internet access and MikroTik Router will communicate to Radius Server through WAN interface.
To setup a Hotspot network, so that it works properly I will advice you install and complete the initial configuration of MikroTik User Manager Radius Server Package in a dedicated physical server where MikroTik RouterOS is running. I have done that, I have also a physical MikroTik RouterOS (MikroTik RouterBOARD 1100AHX2) which is the NAS (Network Access Server) RouterOS of this network. Finally I have my IP information that I am using for this network configuration.
Change the information according to your network requirements.
We are now going to start our Hotspot network configuration with User Manager Radius Server according to the above network scenario . The configurations, will be handle step by step so keep reading down.
First of all we are going to do our initial configuration on our router.
So then Login to your MikroTik Router using Winbox.
Click on IP > Addresses menu item. Address List window will appear. Click on PLUS SIGN (+). New Address window will appear.
Put RouterOS WAN IP (RouterOS WAN IP: 192.168.110.2/28) in Address input field and choose WAN interface from Interface dropdown menu and then click Apply and OK button.
Now go to IP > DNS. DNS Settings window will appear.
Type in your DNS server IP ( Google Public DNS IP: 188.8.131.52 or 184.108.40.206) in Servers input field and then click Apply and OK button.
Go to IP > Routes. Route List window will appear. Click on PLUS SIGN (+). New Route window will appear. Click on Gateway input box and put your internet gateway IP (in this network: 192.168.110.1) in this input field. Click on Apply and OK button.
We are done with the initial configuration so let’s move ahead.
After completing MikroTik Router basic configuration, the next step we will take is to setup Hotspot Server in our MikroTik RouterOS.
So we click on IP > Hotspot menu item.
Click on Hotspot Setup button from this window.
Choose your LAN interface on which you want to setup Hotspot Server from Hotspot Interface drop-down menu. Now click Next button.
Put your LAN address (in this case: 192.168.16.1/24) in Local Address of Network input box.
The chain drop action you’re using is Masquerade, and then click Next button.
After that we will the choose the address pool for your Hotspot network from where IP address will be issued out to clients computer and gadgets. Normally, it will show your network IP range without gateway IP. You can change default IP range as your wish or can keep the default range. Click Next button now.
If you have SSL certificate, you can import by choosing import other certificate option or select none if you do not have any SSL certificate. Now click Next button.
If you have SMTP server, you can put your SMTP server address in IP Address of SMTP Server input box or you can keep blank if you do not want to use SMTP server. Click Next button.
Now it is option to setup DNS.
DNS servers that you have provided in basic configuration will automatically be selected here. So, nothing to do, just click Next button now.
Now it is time to put DNS name which is a mandatory field. DNS name will be used to get Hotspot login page. So, put a standard DNS name and click Next button.
Now put a local Hotspot user. By default it is admin. You can keep this user or can change as your wish. Also put password in Password for the User input box. Click Next button.
We have successfully completed the hotspot server configuration.
Now to test and confirm the job is properly done, Click on Servers tab and you will find a new server has been created. Click on it and change your automated created server name to what you want and then find what the server profile is from Profile dropdown menu.
Now click on Server Profiles tab and you will find your Hotspot Server profile here. Click on it. Hotspot Server Profile window will come.
Under General tab, change your server profile name to what you want.
Click on Login tab and uncheck Cookie and check HTTP CHAP, HTTPS and HTTP PAP from Login By panel.
Click on RADIUS tab and click on Use RADIUS checkbox and Accounting checkbox and then click Apply and OK button.
MikroTik Hotspot server configuration has been completed. In the next step, we will configure Radius client in our MikroTik RouterOS.
Radius Client Configuration in MikroTik RouterOS.
The following steps will show you how to configure Radius client in MikroTik RouterOS.
Click on Radius menu item from left menu bar. Radius window will appear now.
Click on PLUS SIGN (+). New Radius Server window will appear now.
Click on hotspot checkbox from Service panel.
Put your Radius Server IP address in Address input field.
Provide a password in Shared Secret input field. This password is important and has to provide when client router will be configured in User Manager Radius Server.
Click Apply and OK.
Now click on Incoming button and Radius Incoming window will appear.
Click on Accept checkbox and put 1700 in Port input box and then click Apply and OK.
Radius client configuration has been completed. Now MikroTik RouterOS is able to communicate with Radius Server to authenticate Hotspot users.
This all we can take in this part1 please stick with us as we bring the complete configuration and then create a voucher for the prepaid billing system.