Архив метки: Mikrotik

MikroTik UserMan RADIUS Server Customers, Users and Routers

MikroTik User Manager RADIUS Server is a centralized user authentication and accounting application that gives the ISP Company or network administrator ability to manage MikroTik RouterOS user, PPP user and Hotspot user so smoothly. There are two methods to install MikroTik User Manager RADIUS Server in your network. You can install User Manager Package either on a physical RouterOS or on a dedicated Server Machine or on a Personal Computer where RouterOS is running. How to install and configure User Manager Package in MikroTik RouterOS following one of the two methods has been discussed in my previous article. In this article, we will discuss about three most important and frequently used terms (Customers, Users and Routers) in User Manager RADIUS Server.




MikroTik User Manager Customers, Users and Routers
MikroTik User Manager Customers, Users and Routers




Customers in MikroTik User Manager RADIUS Server




In MikroTik User Manager RADIUS Server, Customers are treated as service provider. Customers are only eligible to login RADIUS Server’s web interface to manage RADIUS users, credits and routers. Each customer can have zero or more sub-customers and exactly one parent customer that means customers are hierarchically ordered in a tree structure. Permission level of the customers is different. The customer who has owner permissions is called subscriber and the subscriber’s parent is himself. The subscriber can do everything in MikroTik User Manager RADIUS Server.




Create a Customer in User Manager Radius Server




By default an owner customer (admin with no password) is created while installing User Manager Radius Server. You should give a strong password to admin customer or if you wish you can remove this admin customer but you must create another customer who has owner permission.




The following steps will show you how to create a customer in MikroTik User Manager Radius Server.




  • Login to your User Manager RADIUS Server with subscriber login credentials by typing https://user_manager_ip_address/userman in your favorite browser. If it is your first login, put Login name as admin and keep password blank.
  • Click on Customers button from left side button panel. You will find customer table page now.
  • Click on Add > New menu item from top menu bar. Customer Details window will appear now.
  • Put customer username and password that will be used to login to web interface in Login and Password input field respectively.
  • If you have multiple customers, you can choose parent customer for this customer from Parent dropdown menu.
  • Choose permission level that you want for this customer from Permissions dropdown menu.
  • Optionally, you can assign customer Public ID that will be used to access user page of this customer.
  • You can define access permissions of this customer by checking or unchecking Access Check Boxes.
  • In Private Information area, you can put customer private information such as Company, City, Country and Email.
  • If you want to allow sign up options of this customer’s user, check Signup allowed check box but you must set customer Public ID if you allow user signup.
  • You can also set customer Currency and Time Zone from Format
  • Click on Add button to add this customer.




Following the above steps, you can easily add a customer in MikroTik User Manager RADIUS Server. If you wish, you can edit or remove any customer using Edit menu.




Users in MikroTik User Manager RADIUS Server




In MikroTik User Manager RADIUS Server, Users are people who use internet services using MikroTik PPP Server, Hotspot, DHCP Server and so on provided by any customer. These users may be limited by time, traffic and speed. Users don’t belong to customer but to a specific subscriber because customers are only responsible to add, edit and remove one part of users and whole users including customers belong to a specific subscriber.




Create User in MikroTik User Manager RADIUS Server




By default no user is created in MikroTik User Manager RADIUS Server. Subscribers or Customers are responsible to create users in RADIUS server. The following steps will show how to create users in your MikroTik RADIUS Server.




  • Login to your User Manager RADIUS Server using either subscriber credentials or customer credentials.
  • Click on Users button from left button panel.
  • Now click on Add > One menu item from top menu bar. User Details window will appear now.
  • In Main panel, put username and password in Username and Password input field respectively. Also, you have to choose owner of this user from Owner dropdown menu.
  • In Private Information panel, you can put user first name, last name, email and so on. You should assign a user profile for this user where user’s time, traffic and speed limitation is assigned. If you don’t have any profile created, it will be better to create a profile first with limitations from Profiles area and then start creating a user.
  • Click on Add button to save this user information in RADIUS Server.






Following the above steps, a user can be created successfully. Similarly, you can enable, disable, change or remove a user using Edit menu.




Routers in MikroTik User Manager RADIUS Server




In MikroTik User Manager RADIUS Server, Routers are Client MikroTik Router that will inquire for user authentication. MikroTik User Manager is like a judge that means it receives question from Client Routers and must give answer. For example, a Hotspot Server asks: “Is user ‘bob’ is allowed to use Hotspot?”. Now User Manager replies: “Yes, but only 2 hours and give him IP 192.168.110.200”. If any unknown router ask any question, MikroTik User Manager RADIUS Server silently ignore that request. Router table of User Manager RADIUS Server keeps known router lists that are allowed to ask question to RADIUS Server.




Add Routers in MikroTik User Manager RADIUS Server




Both Subscriber and Customers are eligible to add routers in User Manager RADIUS Server. The following steps will show how to add client routers that will make query to authenticate users in RADIUS Server.




  • Login to your User Manager RADIUS Server with subscriber or customer credentials.
  • Click on Routers button from left button panel.
  • Now click on Add > New menu item from top menu bar. Router Details window will appear now.
  • Put a meaningful name for that client router in Name input field and choose owner from Owner dropdown menu.
  • Put the IP address of the client router that will use User Manager as its RADIUS client in IP address input field.
  • Put a password in Shared secret input field. This shared secret is important and has to provide while configuring RADIUS client. Otherwise, the RADIUS client cannot communicate with this RADIUS Server.
  • Click Add button to add this client router.




Following the above steps, a client router can be added easily in User Manager RADIUS Server. Similarly, you can enable, disable, change or remove any client router whenever you want using Edit menu.




The basic idea about MikroTik User Manager RADIUS Server’s Customers, Users and Routers has been explained in this article. I hope you have no confusion about these three important terms in User Manage RADIUS Server. However, if you face any confusion about RADIUS Server’s customers, users and routers, feel free to discuss in comment or contact with me from Contact page. I will try my best to stay with you.



2017-11-13T12:10:15
MikroTik Router Tutorials & Guides

MikroTik RADIUS Server (User Manager) Installation

RADIUS Server is a centralized user authentication, authorization and accounting application. RADIUS authentication gives the ISP or network administrator ability to manage PPP users, login users and Hotspot users from one server throughout a large network. MikroTik RouterOS has a RADIUS client that is able to authenticate login users, Hotspot users and PPP users through a RADIUS server. MikroTik team also developed a totally separate RADIUS server package named User Manager that can be used to authenticate MikroTik users smoothly. But frankly speaking, MikroTik User Manager is not suitable for medium to large organizations because it is limited to customization. On the other hand, freeRADIUS is a modular RADIUS suite that can be customized according to organizational requirements but freeRADIUS has to be customized by yourself. In this article, I will only discuss about MikroTik User Manager RADIUS Server and how to install and configure MikroTik User Manager Package properly. For freeRADIUS installation and configuration, visit my another article about freeRADIUS installation and basic configuration on CentOS 7 Linux distribution.




RADIUS Server




RADIUS, short for Remote Authentication Dial-In User Service, is a client-server networking protocol that is used to manage (authentication, authorization and accounting) users who connect and use network services.  RADIUS server runs in the application layer and it can use either TCP or UDP as transport.  A lot of RADIUS server applications are found today but among these User Manager RADIUS Server developed by MikroTik is specially used for MikroTik user authentication and authorization purpose.




MikroTik User Manager RADIUS Server




User Manager is an optional and totally separate MikroTik RouterOS RADIUS Server Package that is used to manage MikroTik user authentication, authorization and accounting. ISP Company or network administrator can use User Manager as their login user authentication, PPP user authentication, and Hotspot user authentication as well as billing purpose. But before using User Manager RADIUS Server Package in your network, you should know the minimum system requirements of this package.




User Manager Package Requirements




User Manager RADIUS Server installation must have below minimum requirements.               




  • MikroTik RouterOS and User Manager Package must have the same version.
  • The MikroTik User Manager works on x86, MIPS, PowerPC and TILE processor based routers and CHR devices.
  • The router should have at least 32MB RAM and 2MB free HDD space.






How RouterOS Client and User Manager RADIUS Server Works




MikroTik User Manager works like a judge. It receives question from RADIUS client and must give answer. For example, when a user (say, bob) like below network diagram wants to connect to the network, the RouterOS RADIUS client first check its local user database and if it fails to authenticate from local database, it asks to User Manager RADIUS Server: “is user ‘bob’ is allowed to network?”




MikroTik RADIUS Server Network
MikroTik RADIUS Server Network




If user ‘bob’ is present in RADIUS server’s user database, it answers: “Yes but with profile limitation”. If user is not in RADIUS Server’s user database, the server replies with NO.




How to Install MikroTik User Manager RADIUS Server




User Manager is a MikroTik RouterOS Package. So, User Manager Package installation in your network can be divided into methods.




  • User Manager Package can be installed in your physical MikroTik RouterOS. Or,
  • User Manager Package can be installed in a Server Machine or in a PC where MikroTik RouterOS is running.




I always prefer the second method because User Manager will generate a lot of logs and a physical RouterOS machine has limited storage capacity as well as to handle multiple RouterOS request in a large network, a User Manager should have a stable and powerful physical machine.




Install User Manager Radius Server Package in a Physical MikroTik RouterOS




As User Manager is a separate RouterOS Package, it is usually not included with MikroTik Roterboard Operating System.  However, you can check your RouterOS whether it contains User Manager Package or not by visiting Winbox System > Packages menu. In this Package List window, you will find all the available packages that are installed in your RouterOS. If User Manager Package is installed, you will find a list named user-manager. If User Manager Package is not installed, follow the below steps to install User Manager Package in your RouterOS.




  • Login Mikrotik Router with Winbox Software.
  • From Winbox, go to System > Resources menu item and find Architecture Name and RouterOS Version from Resources window.




MikroTik Router Resources Window
MikroTik Router Resources Window




  • Go to MikroTik download section and select your MikroTik RouterOS version and download all packages zip file that will match with your Architecture Name (all_packages-architecture_name-routeros_version.zip).



  • Now extract downloaded zip file and you will find User Manager (user-manager-routeros_version-architecture_name.npk) file within this zip file.



  • Click on Files menu item from Winbox and drag and drop this user-manager file to File List window.



  • Now reboot your RouterOS.



  • User Manager Package will be installed at the time of next booting and user-manager package will be available in your Package List window.




    Install User Manager RADIUS Server Package in a Dedicated Server Machine or in a PC




    This is the best method to use User Manager RADIUS Server in a network. In this method, MikroTik RouterOS is installed on a dedicated server machine or on a personal Desktop Computer having only basic system package and user manager package installed.




    MikroTik RouterOS can be installed on a dedicated physical machine or on a virtual machine. If you use physical machine, download the latest MikroTik RouterOS ISO file from MikroTik download section and burn the ISO file on a DVD or on a USB drive and then boot your computer from this media. If you wish to install RouterOS on a virtual machine, just download the ISO file and attach the ISO file to CD/DVD drive and then boot your virtual machine. While booting your machine, MikroTik package selection window will appear. You will just select System Package and User Manager Package from this window and then start installation. Within a few seconds MikroTik RouterOS installation will be completed.




    If you feel confused to install MikroTik RouterOS ISO on your machine, read my article about Install MikroTik RouterOS on PC where I have described how to install MikroTik RouterOS on a PC and a video is also included. I hope your confusion will be reduced if you follow the article carefully.




    After completing RouterOS installation, login with user admin and password left blank and then run this command: ip address add address=radious_server_ip interface=ether1 to assign IP address to ether1 interface.




    Note: Put your RADIUS Server IP that you want to assign in the place of radious_server_ip such as 192.168.110.10/24




    Now open your favorite web browser and type https://radious_server_ip/userman. If everything is OK, you will find a login prompt like below image to login to your User Manager RADIUS Server.




    User Manager Login Screen
    User Manager Login Screen




    By default User Manager creates an owner customer named admin with no password. So, put admin as login and password left blank and then click on Lon in button. You will now find User Manger Dashboard where we will do our entire User Management activity.




    MikroTik User Manager Radius Server Package can easily be installed and configured if you follow above steps carefully. However, if you face any difficulty to do above steps properly, follow my video tutorial about MikroTk User Manager Radius Server installation and configuration. I hope, it will reduce your any confusion.