Networking

How to setup a wireless hotspot with Mikrotik RouterOS

How to setup a wireless hotspot with Mikrotik RouterOS

Mikrotik makes a great RouterOS product that can be used to run any old x86 or any new x86 awesome rack server into a great router platform that can be used for WAN connectivity as well as several other applications. ย One role that that the Mikrotik RouterOS serves extremely well is hosting hotspots for wireless applications. ย The RouterOS is an extremely lean install, easy to setup and get running (with the right documentation), and is very inexpensive compared to other vendor solutions on the market. ย It is also highly configuraable and has a myriad of options that you can customize to fit individual and specific network configuration needs. ย If you are looking for a router platform and don’t have the money to spend on Cisco, Juniper, etc, Mikrotik RouterOS may fit the bill for your network.

Below are the initial configuration steps that will have your wireless hotspot up and running in no time. ย First things first. ย You will need to pull the RouterOS ISO from Mikrotik and get this burned to a CD or mounted in your virtual environment, etc. ย You can pull the latest software from here:ย https://www.mikrotik.com/software.html

Once you have the software available and ready to install you can follow the list below to get things going.

Setup

  • Run the Mikrotik Router CD choosing your selected install options and services. ย You can hit the ‘a’ button and it will install everything. ย This may be a good option if you don’t know what exactly you need the router to do as it will install all services and options.
  • Run the /setup option at the console command prompt to assign an IP address and the default Gateway
IP Addresses
  • Assign an IP address to at least one interface so you can get connectivity up and running and can then use Winbox to connect and configure the rest of the options
  • Assign IP addresses to all other interfaces that will be used in the configuration and install – Your specific hardware is going to have its own hardware configuration of network adapters, so take note of all your configured adapters and how you want these to be addressed, keeping in mind any VLANs or other network configuration parameters
Hotspot Configuration
  • Run the Setup on the “Hotspot” menu to configure your hotspot interface and settings. ย In Winbox, this is found under the IP menuย and Hotspot >> Server
  • It will ask you to configure a DHCP range, DNS servers, SSL options, etc. ย Place the appropriate values in the fields required.
  • To modify your login page, you can modify the existingย login.htmlย file from the default hotspot installation as well as place any images in theย imgย folder. ย To see/work with these files, simply go to the Filesย menu in Winbox and drag and drop the files to your workstation.

mikrotik3

RADIUS
  • Also, you can setup RADIUS authentication on the hotspot properties if you have a RADIUS server that authenticates users on your network. ย To do this you first need to setup the RADIUS server parameters for your network under the parent RADIUS menu in Winbox. ย Then under your hotspot properties (IP >> Hotspot >> Server Profiles) click on your hotspot that you configured and then the RADIUS tab to enable the “use RADIUS” option.

mikrotik1

Firewall
  • Firewall rules can be found at IP >> Firewall. ย You will see the default hotspot rules that get added after the hotspot setup is complete, however, you can add any additional rules that you may need in your network.
  • ***NOTE***ย Existing Servers, migration. ย You can export any existing firewall rules from a current Mikrotik box by issuing the commandย export file=firewallย under the menu/submenuย ip firewall
  • Once the firewall rules were exported, you can then import the firewall rules on the live “new” box. ย  You can also edit the exported .rsc files in a text editor such as Notepad++ if you wish to edit/mass edit any entries before importing them back into the new box.

mikrotik2

 

Final Thoughts

Mikrotik RouterOS is a great router operating system that can turn just about any x86 PC or rackmount server into a full fledged router that can be used for WAN, Wireless and other roles. ย Users will especially find the wireless hotspot capabilities powerful in the RouterOS. ย The many options can be intimidating, however by configuring just the areas above, you can have a working hotspot in literally a few minutes from install to configuration.

 

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.