You are on page 1of 11

Technology Software Center

IT world

How to Make Voucher Hotspot Mikrotik via User Manager


Posted on July 3, 2019 by fadıl

Make use Voucher Hotspot Mikrotik User Manager is quite complicated. Many things must be con gured to be able to
generate Voucher Hotspot Mikrotik Mikrotik in the User Manager. By using a voucher system, we can more easily in selling
Internet connection via WiFi Hotspot Mikrotik to customers. We do not need to add the user each time a customer wants to
subscribe to a WiFi Hotspot. We stayed to generate username and user password automatically, and print it in the form of
vouchers to be sold to customers.
Now the question is How to Make Voucher Hotspot Mikrotik? To answer these questions, see good MikrotikNetworking this
time yes.
Before we begin Tutorial Mikrotik it, make sure the following points are met:

1. Make sure you’ve Mikrotik can connect to the Internet


If you have not read here:
How to Connect to the Internet Mikrotik

2. Setting Time in Mikrotik using NTP Client

Read here:
What NTP? Setting NTP client in Mikrotik

3. Make sure the Mikrotik Hotspot is installed and running properly

Read here:
How to Create Hotspots Mikrotik: Setting basic Hotspot Mikrotik

4. Install Mikrotik User Manager

Please read here:


How to Install and Settings User Manager Mikrotik

5. Setting Mikrotik Hotspot in order to use the User Management of User Manager Mikrotik
Read here:
Setting User Manager with Hotspot Mikrotik

6. From this, I assume you are connected to Mikrotik User Manager properly

Tutorial How to Make Voucher Hotspot Mikrotik via User Manager


1. Login to User Manager Mikrotik
Enter IPAddressMikrotik / userman on the browser. Make sure the IP Address is not the IP Address used to interface Hotspot. If
you are using IPAddressHotspot / userman message appears Error Not Found. You can use other interfaces, such as ether1
and given IP segments in addition to the hotspot.

2. Setting the Users Variable Mikrotik User Manager

Once logged in, go to Settings -> Appearance -> At the Table column select Users. Enter the following variables into visible
columns:
Username
Password
Start Time
End Time
Total Time Left
Till Time
Uptime Used
Uptime Limit
Money Paid

This variable will appear on the menu users so that we can know the user details with ease.

Make Voucher Hotspot Mikrotik via User Manager


3. Creating a User Pro le in User Manager Mikrotik
These pro les contain user pro le information from each Package Hotspot will we sell. We can add the user pro le as an
internet package that we will create. How to create a user pro le can Pro les manually via the menu, but I would be
demonstrated to make the semi-automatic using the command in the Terminal in Winbox. Here’s an example command it:

1 / Tool user-manager profile


2 add name = "Package 5 hours of" name-for-users = 5 hour override-shared-users = off owner = \
3     mikrotikindo price = 10000 starts-at = logon validity = 2d
4 add name = "Package 1 day" name-for-users = 1hari override-shared-users = 3 owner = \
5     mikrotikindo price = 20000 starts-at = logon validity = 1d
6 add name = "Package 1 Week" name-for-users = 7hari override-shared-users = 3 owner = \
7     mikrotikindo price = 50000 starts-at = logon validity = 1w
8 add name = "Package 1 Month" name-for-users = 1bulan override-shared-users = 5 owner = \
9     mikrotikindo price = 120000 starts-at = logon validity = 4w2d
10 add name = "Ulimited Pack 1 Year" name-for-users = unlimited \
11     override-shared-users = off owner = mikrotikindo price = 1000000 starts-at = \
12     logon validity = 52w1d

Please adjust these parameters on the command to your liking. Especially the owner parameter, replace it with the username
User Manager. The results of the command you can see on the menu Pro les in User Manager. If There are no changes to the
menu pro les, please logout and login again to the User Manager.
Shared Users can also specify their amount.

Setting Pro le User Manager

4. Make Hotspot Mikrotik on User Package Manager


Pro le that was made before need to be added to the bandwidth limitations and the duration of its active accounts. You do
this by adding a limitation on the pro le. You can make one by one in the menu Pro le -> tab Limitations.
Here I will use again command winbox terminal.
Examples of command are as follows:

1 / Tool user-manager profile limitation


2 add address-list = "" download-limit = 524288000B group-name = "" ip-pool = "" name = \
3     "Package 5 hours" owner = mikrotikindo rate-limit-min-rx = 65000B \
4     rate-limit-min-tx = 65000B rate-limit-rx = 128000B rate-limit-tx = 256000B \
5     transfer-limit = 0B upload-limit = 0B uptime-limit = 5h
6 add address-list = "" download-limit = 1073741824B group-name = "" ip-pool = "" name = \
7     "Package 1 day" owner = mikrotikindo rate-limit-min-rx = 128000B \
8     rate-limit-min-tx = 128000B rate-limit-rx = 256000B rate-limit-tx = 512000B \
9     transfer-limit = 0B upload-limit = 0B uptime-limit = 1d
10 add address-list = "" download-limit = 5373952000B group-name = "" ip-pool = "" name = \
11     "Package 1 Week" owner = mikrotikindo rate-limit-min-rx = 128000B \
12     rate-limit-min-tx = 128000B rate-limit-rx = 256000B rate-limit-tx = 512000B \
13     transfer-limit = 0B upload-limit = 0B uptime-limit = 1w
14 add address-list = "" download-limit = 16106127360B group-name = "" ip-pool = "" \
15     name = "Package 1 Month" owner = mikrotikindo rate-limit-min-rx = 256000B \
16     rate-limit-min-tx = 256000B rate-limit-rx = 512000B rate-limit-tx = 1000000B \
17     transfer-limit = 0B upload-limit = 0B uptime-limit = 4w2d
18 add address-list = "" download-limit = 0B group-name = "" ip-pool = "" name = \
19     "Package Ulimited 1 Year" owner = mikrotikindo rate-limit-min-rx = 512000B \
20     rate-limit-min-tx = 512000B rate-limit-rx = 1000000B rate-limit-tx = 1000000B \
21     transfer-limit = 0B upload-limit = 0B uptime-limit = 52w1d

Please adjust parameters on the command needs your Package. The following information on each of his command
parameter:
download-limit : quota limit download
upload-limit : quota limit upload
transfer-limit : quota limit download + upload
rate-limit-tx : speed limit download (if the quota has been exhausted)
rate-limit-rx : speed limit upload (if quota is up)
rate-limit-min-tx : download speed limit (if the quota has been exhausted)
rate-limit-min-rx : upload speed limit (if the quota has been exhausted)
download-limit = 0B : unlimited download quota
rate-limit- tx = 262144B : 256 kbps download speed limit

Her results are as follows:

Setting Pro le Limitations

5. Limitation Connecting with User Pro les Manager Mikrotik


Once the limitation is made, then stay connected just with his Pro le. You do this by going to Menu Pro les -> Select Pro le -
> Add new limitation -> Select limitation according to its package -> Click Add .
Do the same for the other Pro le.
Add Limitation to Pro le

6. Men-Generate Username and Password for the account of each Package


To create an account automatically on each package, we could take advantage of user Batch feature on the menu Users -
> Add -> Batch -> specify the number of users who want to be generated in the column Number of users -> Select Package –
> Add.

Batch Add Users

Do the same for other hotspots package. The results are as follows:
Batch Add Users Result

7. Adding Logo on User Manager Mikrotik


Actually, this step is optional, you can skip it if do not want to replace the logo User Manager him. However, the Voucher that
will be created later No logo imprinted, so we need to upload a logo. You do this by accessing the FTP Mikrotik.
Create a new folder with the name um les, copy the logo le into the folder.

Upload Logo

To replace the logo user manager, go to Menu Settings -> Styles -> Edit path column Logo Logo with the path that has been
uploaded -> Save

8. Creating a Template Voucher Hotspot on User Manager


Still on the Menu Settings -> move to the tab Templates -> select Vouchers. Voucher Template Mikrotik Hotspot is divided
into four parts, namely Header, Row, Footer, and Break. The part we will edit only in the Header and Row alone.
Here’s an example of HTML code that has been in the custom.
Voucher code HTML for the Header:

1 <! DOCTYPE html PUBLIC "- // W3C // DTD XHTML 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transi
2 <Html xmlns = "http://www.w3.org/1999/xhtml">
3 <Head>
4     <Title> Vouchers </ title>
5     <Style>
6         @media print {
7             .noprint {
8                 display: none;
9             }
10             .pagebreak {
11                 page-break-after: always;
12             }
13         }
14         body {
15             font-family: 'Verdana', 'Helvetica Neue', Helvetica, Arial, sans-serif;
16             padding: 50px 100px;
17             font-size: 12.3px;
18         }
19         div.box {
20 background-color: # 94F3EB;
21 background-image: -webkit-linear-gradient (270deg, RGBA (220,245,250,1.00) 0%, RGBA (246,253,254,1.00) 100%);
22 background-image: -moz-linear-gradient (270deg, RGBA (220,245,250,1.00) 0%, RGBA (246,253,254,1.00) 100%);
23 background-image: -o-linear-gradient (270deg, RGBA (220,245,250,1.00) 0%, RGBA (246,253,254,1.00) 100%);
24 background-image: linear-gradient (180deg, RGBA (220,245,250,1.00) 0%, RGBA (246,253,254,1.00) 100%);
25 background-repeat: repeat-x;
26 width: 3.6in;
27 height: 2.1in;
28 padding: 0 17px 18px 12px;
29 margin: 10px 0;
30 border: 1px solid # d9d9d9;
31 border-radius: 10px;
32 -webkit-border-radius: 2px;
33 -moz-border-radius: 2px;
34         }
35         div.box h2 {
36 background-color: # 63C2EE;
37 border-color: # ED3939;
38 margin: 0 1px -12px -17px;
39 padding: 0px 15px 0 10px;
40 height: 20px;
41 border-top-left-radius: 10px;
42 border-top-right-radius: 10px;
43 -webkit-border-radius: 2px;
44 -moz-border-radius: 2px;
45 font: bold 18px / 0.2 Arial;
46 color: # fff;
47 text-align: center;
48         }
49         div.box h3 {
50             background-color: # FFF8DC;
51             border-color: # 000;
52             border-style: solid;
53             border-width: 1px;
54             margin: -35px 0 0 70px;
55             padding: 3px 50px 12px 10px;
56             height: 8px;
57             width: 30px;
58             font: bold 12px / 0 Arial;
59             color: # 000;
60         }
61         div.box h4 {
62 background-color: # 63C2EE;
63 border-color: # 2B78C5;
64 / * IE6-9 * /          
65 margin: 0 1px -12px -17px;
66 padding: 0px 15px 0 10px;
67 height: 20px;
68 border-bottom-left-radius: 10px;
69 border-bottom-right-radius: 10px;
70 -webkit-border-radius: 2px;
71 -moz-border-radius: 2px;
72 font: bold 12px / 0.2 Arial;
73 text-align: center;
74 color: # fff;
75         }
76         .block-left {
77             background-color: transparent;
78             width: 170px;
79             height: 120px;
80             margin: 15px 0;
81             float: left;
82         }  
83         .block-right {
84             background-color: transparent;
85             width: 150px;
86    float: right;
87    padding: 5px 0px 15px! important;
88             text-align: center;
89         }
90
91         .block-right> h5 {
92 font: bold 18px / 0.1 Verdana;
93 text-align: center;
94 color: # FF4141;
95 text-shadow: 2px 2px 2px # 000;
96 margin: 25px 0;
97         }      
98   .block-bottom {
99             background-color: transparent;
100             clear: both;
101         }
102         .txtbox img {
103             width: 50px;
104             height: 50px;
105             float: left;
106             padding-right: 5px;
107         }    
108     </ Style>
109 </ Head>
110 <Body>

Voucher code HTML for Row:

1 <Div class = "box">


2     <H2> MikrotikIndo-Hotspot Rp. % U_moneyPaid% </ h2>
3     <Div class = "block-left">        
4      <Div class = "txtbox">
5             <Img alt = "" src = "/ umfiles / logo.png" /> <b> MikrotikIndo Wireless Hotspot Service </ b>        
6      </ Div>
7         <Div class = "txtbox2">
8             <P> Please open the browser, enter the <b> Username </ b> and <b> Password </ b> on the login page, <b> c
9         </ Div>
10     </ Div>
11
12     <Div class = "blocks-right">
13      <H5>% u_timeLeft% </ h5>
14      <P> Price: <b> Rp. % U_moneyPaid% </ b> </ p>
15      <Div> <p align = "left"> Username: </ p> <h3 align = "center">% u_username% </ h3> </ div>
16      <Div> <p align = "left"> Password: </ p> <h3 align = "center">% u_password% </ h3> </ div>
17     </ Div>
18     <Div class = "block-bottom">
19      <H4> More info: mikrotikindo.blogspot.com </ h4>
20     </ Div>
21 </ Div>

The HTML code is only an example, please edit your own appropriate as needed. You can use Notepad ++ applications or
Dreamweaver to edit the code.

Template Menu

9. Meng-Generate Voucher Hotspot Mikrotik


Furthermore, we live to automatically generate its proxy hotspot vouchers. Do I go to Menu Users -> Select the user who will
be 4 in the Generate -> Generate -> Vouchers -> Click Generate.

Generate Voucher

Why only 4 users in check? Why do not all just all generated? You could try to generate all together. Later you will be
di culties during the process of printing (print) voucher. Because if it is too much, to see her voucher will cut pages. So in
order to secure it, we generate 4 consecutive away.
If after the click Generate nothing happens, try clicking the blue following article:

Click Popup

Mikrotik Hotspot Voucher display will appear in a popup browser.


Voucher Generate Results

10. Printing (Print) Voucher Hotspot Mikrotik Generate Results


On page popup browser containing hotspot voucher Mikrotik, press Ctrl + p to start printing (print). I suggest using the Google
Chrome Browser Generate and print during the process so much easier.

Print Voucher

Click More Settings -> Options check on the background graphics and uncheck Headers and Footers. If the option
Background graphics is not in check, then the print view would be odd for the background color of its opt printed. Now living
alone print, and repeat the same thing to another account voucher that has not been generated.
Template Hotspot Mikrotik If this is too complicated, you can try using Template Hotspot Mikrotik who live to print any of the
following:
Download Template Voucher Hotspot Mikrotik

PowerPoint productivity tool


Work 50% faster on PowerPoint, Excel & Word: templates, icons, charts, maps and more

Ad Power-user Open

 views 1,023

HOTSPOT, MIKROTIK ADVANCED, USER MANAGER, VOUCHER

You might also like