Mikrotik RouterOS provides a real powerful Hotspot Feature. This tin hold out used alongside the Mikrotik built inwards Radius server (Userman) or alongside a remote Radius/Freeradius Server.
You volition need:
Mikrotik RouterBOARD:
Notes:
The RouterBOARD CPU in addition to RAM volition direct comport upon the surgical operation of your Hotspot, thence view beforehand how many clients you lot wishing to connect.
A RouterBOARD 750 tin comfortably run near 25-50 users.
In my representative I volition usage a RouterBOARD 532 alongside ane 2.4ghz WLAN card
Please banker's complaint that I convey a Video Tutorial for this available on YouTube
Step 1: Configure mesh access on the router
Add Router IP Address:
Configure Default Route:
Test:
Check if you lot tin ping a populace ip address similar 8.8.8.8
I volition shortly exercise a UserManager Tutorial equally well.
You volition need:
Mikrotik RouterBOARD:
- Level iv or ameliorate licence (Lower licences volition permit exclusively a unmarried Hotspot client)
- RouterOS 6.x (5.x volition equally good work, but this tutorial is based on v6.7)
The network volition hold out configured equally below. You may ask to adapt the IP Addresses to suit your needs
Notes:
The RouterBOARD CPU in addition to RAM volition direct comport upon the surgical operation of your Hotspot, thence view beforehand how many clients you lot wishing to connect.
A RouterBOARD 750 tin comfortably run near 25-50 users.
In my representative I volition usage a RouterBOARD 532 alongside ane 2.4ghz WLAN card
Please banker's complaint that I convey a Video Tutorial for this available on YouTube
Step 1: Configure mesh access on the router
Add Router IP Address:
/ip address add together address=10.0.0.2/24 interface=ether1
Change the IP to tally your network configuration- Click on the IP Menu
- Click on the Addresses Menu
- Click "+"
- Enter the IP Address you lot wishing to assign to the router, this volition hold out the outward facing IP, thence brand certain to select the ethernet interface that volition give the router mesh access.
- Click on "Apply"
Configure Upstream DNS Server:
/ip dns laid servers=8.8.8.8 allow-remote-requests=yes
This representative uses Google's DNS service. You tin easily brand usage of OpenDNS to implement uncomplicated filtering, or usage your ain DNS servers if needed.- Click on the IP Menu
- Click on the DNS Menu
- Enter your desired DNS server - hither I am using Google's DNS
- Click on "Apply"
Configure Default Route:
/ip road add together dst-address=0.0.0.0/0 gateway 10.0.0.1
- Click on IP
- Click on Routes
- Click on "+"
- Enter 0.0.0.0/0 equally the Dst. Address
- Enter 10.0.0.1 equally the Gateway
Test:
Check if you lot tin ping a populace ip address similar 8.8.8.8
- Click on Tools
- Click on Ping
- Enter a publicly available address
- Click Start
Step 2: Install User Manager in addition to Hotspot
If you lot invention to usage a stand upwardly lone Radius Server, you lot may skip this step.
Download the firmware parcel from Mikrotik
Extract the naught file on your local drive
Extract the naught file on your local drive
- Make certain that the version of the file matches the version in addition to architecture of your device
- Open the Files window on winbox
- Drag the "user-manager-X.X-xxxxxx.npk" to the files window.
- Do the same for "hotspot-X.X-xxxxxx.npk".
- Reboot the router (/system reboot)
Step 3: Configure interfaces
First, nosotros ask to configure 2 Bridge interfaces. The showtime ane volition hold out a loopback interface. I convey flora inwards the past times that if you lot usage the normal loopback address (127.0.0.1), or ane of the other static addresses, for the Radius (Usermanager) server, you lot may sense roughly difficulties.
3.1.1 - Create Loopback Bridge
3.1.1 - Create Loopback Bridge
/interface twosome add together name=Loopback
- Click on the "Bridge" menu
- Click on "+"
- Enter "Loopback" for the twosome name
- Click "Apply"
3.1.2 - Add Loopback Bridge IP Address
I usage whatsoever unused person ip arrive at for this, it is used but equally an interface to run the RADIUS server on.
3.2.2 - Add Hotspot Bridge IP Address
I brand usage of the person 192.168.0.1/24 arrive at for the hotspot network, but you lot tin usage whatever is suitable inwards your setup.
I usage whatsoever unused person ip arrive at for this, it is used but equally an interface to run the RADIUS server on.
/ip address add together address=10.10.0.1/32 interface=Loopback
- Click on the IP Menu
- Click on the Addresses menu
- Click the "+" button
- Enter "10.10.0.1/32" equally the IP Address
- Select the "Loopback" Interface
- Click "OK"
3.2.1 - Create Hotspot Bridge
If you lot are planning to run the hotspot on a unmarried interface you lot may skip this step.
If you lot are planning to run the hotspot on a unmarried interface you lot may skip this step.
/interface twosome add together name=Hotspot
- Click on the "Bridge" menu
- Click on "+"
- Enter "Hotspot" for the twosome name
- Click "Apply"
I brand usage of the person 192.168.0.1/24 arrive at for the hotspot network, but you lot tin usage whatever is suitable inwards your setup.
/ip address add together address=192.168.0.1/24 interface=Hotspot
- Click on the IP Menu
- Click on the Addresses menu
- Click the "+" button
- Enter "192.168.0.1/24" equally the IP Address
- Select the "Hotspot" Interface
- Click "OK"
3.2.3 - Add Hotspot Ports to Bridge
If you lot would similar multiple interfaces to convey access to the hotspot, you lot tin repeat this process, exclusively changing the interface each time.
If you lot are running on a RouterBOARD 750 or similar, you lot volition ask to add together the ports that you lot AP's are connected to, to the bridge.
If you lot would similar multiple interfaces to convey access to the hotspot, you lot tin repeat this process, exclusively changing the interface each time.
If you lot are running on a RouterBOARD 750 or similar, you lot volition ask to add together the ports that you lot AP's are connected to, to the bridge.
/interface twosome port add together bridge=Hotspot interface=wlan1
3.3 - Configure the Access Point
If you lot are using a RouterBOARD 750 or similar, you lot volition non hold out using this section.
You may direct to implement safety on your access point, but since this is a captive portal, you lot should non ask to usage whatsoever security. This tutorial volition non include whatsoever safety settings.
/interface wireless laid [ uncovering default-name=wlan1 ] band=2ghz-b/g disabled=no mode=ap-bridge ssid=Hotspot
- Click on the "Wireless" Menu
- Double click on the Wireless Interface that you lot volition hold out using
- Set the manner to "ap-bridge"
- Set the band to 2Ghz-B/G (or otherwise if needs be)
- Change the SSID to "Hotspot", or whatever suits you.
- Click "OK"
iv - Configure the Hotspot
/ip hotspot profile
add together dns-name=hotspot.example.com hotspot-address=192.168.0.1 name=hsprof1 smtp-server=192.168.123.4
/ip hotspot
add together address-pool=hs-pool-7 disabled=no interface=Hotspot name=hotspot1 profile=hsprof1
/ip hotspot user profile
laid [ uncovering default=yes ] idle-timeout=none keepalive-timeout=2m mac-cookie-timeout=3d
/ip hotspot user
add together name=dexter password=dexter
add together dns-name=hotspot.example.com hotspot-address=192.168.0.1 name=hsprof1 smtp-server=192.168.123.4
/ip hotspot
add together address-pool=hs-pool-7 disabled=no interface=Hotspot name=hotspot1 profile=hsprof1
/ip hotspot user profile
laid [ uncovering default=yes ] idle-timeout=none keepalive-timeout=2m mac-cookie-timeout=3d
/ip hotspot user
add together name=dexter password=dexter
- Click on the "IP" menu. If this alternative is non available refer to stride 2
- Click on the "Hotspot" item
- Click on "Hotspot Setup". This volition start the Hotspot Setup Wizard
4.1 - The Hotspot Wizard
- Select the Hotspot twosome equally the Hotspot Interface
- Click Next
- Click adjacent - The address arrive at should hold out filled inwards automatically equally per our network configuration.
- Click Next - the address puddle should hold out pre-populated alongside the correct settings
- This tutorial volition non encompass the usage of Certificates, thence you lot may select "none" in addition to click next
- Enter the IP-Address of your SMTP server. Many providers exercise non permit usage of their SMTP servers exterior their ain network, thence this alternative allows you lot to circumvent the SMTP server configured on the client's device inwards favor of your own. (You may fifty-fifty specify the SMTP server of you lot ain provider inwards roughly cases)
- Click "Next"
These are the upstream DNS servers used past times the hotspot.
- Enter ane or to a greater extent than upstream DNS servers, you lot tin usage OpenDNS to furnish you lot alongside a basic filtering service. Here I usage Google's populace DNS.
- Click "Next"
- Enter a host advert for the local Hotspot. I am using hotspot.example.com, but this could hold out anything you lot want.
- Click "Next"
- Enter a advert for your administrative Hotspot user.
- Enter a password for your administrative user.
- Click "Next"
- Click "OK" to consummate your hotspot setup.
Congratulations, you lot convey right away ready basic functionality for a Mikrotik Wireless Hotspot, you lot tin exercise users nether "IP->Hotspot->Users. But alas, you lot all the same ask to configure the Usermanager for a fully featured hotspot.
Step five - Configuring UserManager
5.1 Setting upwardly the Hotspot to usage RADIUS
- Click on the "IP" menu
- Click on "Hotspot"
- Select the "Server Profiles" tab
- Double click on "hsprof1"
- Select the "RADIUS" tab
- Tick the "Use RADIUS" tickbox
- Click "OK"
- Click on "RADIUS"
- Click on "+"
- Tick the "hotspot" tickbox
- Add the loopback twosome IP to the address field, inwards this tutorial 10.10.0.1
- Choose a secure password
- Click "OK"
- Using your browser of choice, connect to http://router-ip/userman
- Click "Log In" - The default username is admin with no password
- Once you lot convey logged in, click on the "Routers" menu
- Click "Add" in addition to thence "New"
- Enter "Local Router" equally the name
- Enter the Loopback Bridge IP address
- Enter the password you lot chose earlier.
- Click "OK"
Your Mikrotik Hotspot should right away hold out able to communicate alongside the Usermanager Radius Server. You tin right away cash inwards one's chips along to ready profiles in addition to users on the user director interface.
I volition shortly exercise a UserManager Tutorial equally well.