Professional Documents
Culture Documents
Mikrotik Aradial Configuration Guide PDF
Mikrotik Aradial Configuration Guide PDF
2012 Aradial
This document contains proprietary and confidential information of Aradial and Spotngo and shall not be reproduced or
transferred to other documents, disclosed to others, or used for any purpose other than that for which it is furnished,
without the prior written consent of Aradial. It shall be returned to the Aradial upon request.
The trademark and service marks of Aradial, including the Aradial logo, are the exclusive property of Aradial, and may
not be used without permission. The trademark and service marks of Spotngo, including the Spotngo logo, are the
exclusive property of Spotngo, and may not be used without permission. All other marks mentioned in this material are
the property of their respective owners.
http://www.aradial.com
0H
http://www.radius-server.com
1H
http://www.wifi-radius.com
2H
http://www.spotngo.ca
3H
Document Information
Software Version: 5.x
Document Version: 2.0
Publication Date: July 2012
Author Tomer Shahaf
Contents
Overview....................................................................................................................................................................... 4
General ....................................................................................................................................................................... 4
Sample Network deployments ................................................................................................................................ 5
Centralized Deployment: .................................................................................................................................... 5
Localized Deployment: ....................................................................................................................................... 6
Mikrotik Router OS Initial Configuration ............................................................................................................. 8
IP configuration: .................................................................................................................................................. 8
Winbox GUI configuration. ............................................................................................................................ 9
Hotspot Configuration:........................................................................................................................................... 14
Radius Server Configuration:........................................................................................................................... 15
Hotspot Setup:.................................................................................................................................................... 16
Editing the Hotspot profile: .............................................................................................................................. 20
Walled Garden: .................................................................................................................................................. 23
External Captive portal redirection:................................................................................................................. 24
Aradial URL Redirection links: ....................................................................................................................... 29
Overview
General
This document is created to provide a sample deployment guide for a centralized deployment utilizing
Aradial Radius server, Spotngo Payment module and Mikrotik Router OS Network Access Server.
The document contains information relevant to central, localized and distributed network deployments.
Additional documentation for Aradial, Spotngo Payment module and Mikrotik are available in their
respective installations.
Aradial Documentation is located in the 'Docs' folder or can be opened from the 'start', 'programs,'
Aradial, selecting Manual.
This document intended for the configuration of the network assuming Aradial and Spotngo Payment
Modules are installed.
Typical Deployments: Hotspot service Providers, ISP, WISP, VOIP, Corporate, hosted solution,
etc.
Aradial and Spotngo Payment Module are installed at the NOC, Network Operation Center, Data
Center, Hosted environment or Head office.
Mikrotik gateway / Access controller (Network Access Server) installed on site at internet point of
presence.
Client redirection and AAA Radius requests will be sent by the Mikrotik unit to the centralized
Radius server and billing solution for processing.
Hotzone n
`
Switch Head Office / NOC
Wired Hotzone 2
Client
AP AC / AP
PDA Laptop
PDA `
Integrated Mikrotik Access Centralized Aradial Radius
PC with Controller & Access Point Server Including:
Page
Wireless Client Captive portal
Redirect
Web Self Care
Laptop Computer with + Session
User Database
Wireless Card control Optional Payment Module
Back
ink
haul
lL
au
Link
ckh
Ba
Localized Deployment:
Typically used in stand alone venues including air ports, hotels, small ISP, WISP, call shops,
cyber cafes and corporate. The Aradial radius server, Billing solution and Access controller are all
deployed locally on site.
PT khau
Ba
MP l
c
In the sample network diagram above, the Mikrotik will provide session control, captive portal
redirection and authentication for wired clients connected to the switch or wireless clients
connected through the Access points.
Modem
Router
Static IP: 192.168.5.10
xDSL / Cable
Remote
Locations
Page Modem
Aradial Redirect
Radius + Session
Switch Server + control
Page Login Page
Redirect Web Server Integrated Mikrotik Access
+ Session Controller & Access Point
control
WAN IP: 192.168.5.12 Static WAN IP: 192.168.5.11 Static
LAN IP: Hotspot defined LAN IP: Hotspot defined
Integrated
Mikrotik Access
Controller & Integrated Mikrotik
Access Point Access Controller &
Access Point
`
PC Computer with PDA Laptop
PDA Wireless Card
When the user tries to surf When the user tries to surf
the Access Controller the Access Controller
Laptop Computer with
redirects him to a SSL redirects him to a SSL
Wireless Card
secured login page secured login page
***Note: All IP assignments in this diagram are for example only and should be replaced with existing network IPs. The
Mikrotik LAN IP will be assigned during the Hotspot setup.
***Note: All IP assignments in this diagram are for example only and should be replaced with existing network IP addresses. The Mikrotik
LAN IP will be assigned during the Hotspot setup and the hotspot DHCP server will assign IP to the clients. Static IP Clients out of the
range of the hotspot will be assigned local IP which will bind to the client preset IP to support service to any IP.
The new MikroTik Hardware comes preconfigured with the following services:
Winbox is the graphical user interface for configuring the Mikrotik Router OS.
There are a few ways to download winbox application from the router, MikroTik website
(www.mikrotik.com ) or from the DUDE Utility.
1. Open a web browser and type the address assigned to the router:
2. Then click on Download it link on the top left to download the Winbox.
3. See router page below.
4. Once downloaded, you can run it to access the router, enter the device IP address,
username and password. The default credentials are username: admin and no password.
The Dude network monitor is a new application by MikroTik which can dramatically improve the
way you manage your network environment. It can automatically scan all devices within specified
subnets, draw and layout a map of your networks, monitor services of your devices and alert you
in case some service has problems.
Once installed and running, click on discover, verify the network address and subnet are for the
range of the newly installed Router OS, and click discover.
Alternatively, you can right click the window and add a device.
Once the devices are discovered and displayed as below, you can right click on the Router OS
select tools then select Winbox.
Winbox is one of the main tools used in deploying and configuring the router OS.
In this portion of the manual we will concentrate on the hotspot configuration, additional
deployment types will be added in the future.
Hotspot Configuration:
The hotspot configuration includes the following settings:
Hotspot Setup:
Click on Setup
Select the hotspot interface typically ether2 or Wlan1
If you have an SSL certificate for the Mikrotik Already, enter it now or you can add it later.
If you would like to offer SMTP server to your hotspot clients, enter it now, or you can enter it later.
Most Hotspot providers will not add their SMTP server to avaid clients registering for short period
and using their servers for spam.
Enter the local DNS name for the Mikrotik. This is used for the Aradial Radius server Portal
posting. It can further be changed in the Aradial and Spotngo Portal to match the service
providers choice for the local DNS name.
Enter an admin hotspot user for local account in case you have to get in through the captive portal
when to correct a miss configuration.
This users credentials will be stored on the router and the authorization requests will not be sent
Aradial.
The hotspot profile is used to further control the hotspot setting including the login page to be used
and for the radius authentication.
In the main hotspot menu, click on Server Profiles and double click the profile you would like to
edit.
In the Login menu, uncheck the HTTP CHAP and Cookie and check the HTTP PAP
Enabling interim updates: Under Interim Update, set the time interval for the mikrotik to send
interim accounting updates to Aradial if desired. For example for interim updates every 5 minutes,
enter 00:05:00 for interim update.
At this point you are ready to log in through the built in Mikrotik Captive Portal with a user in your
Aradial radius server.
If you have not added the NAS in the Aradial Radius Server, now is a good time to do so.
For NAS server on dynamic IP, add the NASID as sent by the Mikrotik and the secret and select
dynamic IP.
The NASID setting in the Mikrotik is located under System side menu and Identity submenu.
Walled Garden:
Walled garden is the allowed sites which can be accessed prior authentication by the hotspot
clients. Typically used for the service providers captive portal, their site, additional information
about the venue, terms and conditions, etc
In Order for External Captive portal redirection to work, it has to be added to the Walled garden list
of allowed IP.
In the Hotspot window, click on the Walled Garden IP Listin the top menu.
Then click on IP List.
Note:
1. The check mark on the side of the setting means NOT (!), if checked the rule will apply to
all other hotspot except hotspot1.
2. For website URL or redirection using URL and SSL Certificate such as:
https://secure.aradial.com , Use the Dst. Host instead of Dst. Address for example:
The Mikrotik internal Captive Portal can be replaced with an External captive portal redirection.
On the side menu go to files, and replace the login.html file under the hotspot directory with a new
login.html containing the following redirect code. This can be accomplished by removing the
original login.html from the /hotspot/login.html (Highlight it and click the Minus button (-) to remove.
Then drag the newly created login.html from your desktop and drop it under the hotspot directory.
The file will reposition itself to /hotspot/login.html.
<head>
<title>Aradial Hotspot</title>
</head>
<body>
</body>
</html>
<head>
<title>...</title>
</head>
<body>
</body>
</html>
Depending on your Aradial Installation and configuration, you can deploy the portal using Aradial
built in web servers, Windows IIS or others.
Location Branding:
Both Aradial and Spotngo Captive Portals support location branding and the parameter can be
entered in the login.html redirect URL to identify the calling location and price groups.
For Example:
Both Aradial and Spotngo Portals can display the Mikrotik login errors when redirecting client to
the portal following a portal login error.
To instruct the MikroTik to send the Error message to the Portal, please add &MT_Error=$(error)
to the redirect URL:
For example:
Aradial Portal Windows IIS server with portal branding and login error display:
Page 29 Copyrights 201212 Aradial & Spotngo http://www.aradial.com & http://www.spotngo.ca
Mikrotik Router OS Installation and Configuration for Aradial and Spotngo.
http://192.168.8.34/ardweb/ardadminis.dll?AP=MT&Portal=Example1&MT_Error=$(error)
If the MT did not do a captive portal redirection then it could be one of the following reasons:
1. IF the DNS does not resolve, the MikroTik hotspot does not know if the user is allowed to go to
the destination/url requested, then will not know if the allow through or block access and redirect
to the portal.
Symptom: The URL in the browser will still point to the original requested URL. Most likely
with page cannot be displayed.
Possible Cause: Check to make sure the DNS servers primary and secondary are configured
properly in the Mikrotik. And make sure your PC received a DNS from the MikroTik.
Symptom: If the url changes to wireless.aradial.com/login. Or the hotspot local DNS NAME:
Possible Cause: Check the redirection login.html file on the MikroTik and make sure it is
under /hotspot/login.html
Symptom: If the url changes to Aradial IP / URL but page does not load.
- The IP >> Hotspot >> Walled Garden IP List has a rule to accept traffic to the Aradial
Server IP Address and / or URL.
- Aradial portal is reachable from outside the server on that URL. And that no firewall is
blocking access to the service.