Setting up a basic MikroTik hotspot
Mikrotik RouterOS includes an excellent hotspot solution. Read on for details on getting a basic hotspot going using RouterOS on any standard x86 PC hardware or a RouterBOARD. The RouterOS hotspot solution is very powerful and only the very basics of the solution are covered here; just enough to get you started.Getting the Hotspot to Work
First of all you will need to have a copy of RouterOS. You can purchase a license or download a 24-hour trial from Mikrotik. RouterBOARDs also usually come with RouterOS pre-licensed and installed. You will also need a computer with at least a 100MHz CPU, 32MB RAM and an IDE hard disk, or a RouterBOARD. Either method you choose will need a compatible wireless card and Ethernet adapter, or two Ethernet adapters with one connected to a standard wireless access point. You should check your hardware against the RouterOS compatibility list. If you are installing RouterOS for the first time, download the ISO image from Mikrotik and burn it to CD. Note that installation of RouterOS will completely wipe the contents of the hard disk! Boot the PC off this CD and install the following packages:
- System
- DHCP
- Wireless
- Hotspot
- Proxy
- User Manager (optional)
- Security (optional - recommended)
- Advanced tools (optional)
Now to get started. Log onto the PC as admin with no password. If this box intended for deployment, change set a password by typing in password at the prompt. Change the hostname by typing in name. Assign an IP address to each interface. As this is going to be set up as a router, they will need to be on a different subnet. Substitute wlan1 with ether2 if you have a separate access point.
[admin@Mikrotik] > ip address add address=192.168.24.3/24 interface=ether1
[admin@Mikrotik] > ip address add address=192.168.30.1/24 interface=wlan1
Now we need to add a default route to the IP of the internet router.
[admin@MikroTik] > ip route add gateway 192.168.24.1
Enable the wireless interface and set it to run as an access point as below. If you have an access point instead, ignore the command below, make sure it is running with no security enabled, use a suitable SSID and channel and change its admin password.
[admin@Mikrotik]> interface wireless set wlan1 ssid="My HotSpot" band=2.4ghz-b mode=ap-bridge
Run the hotspot setup as below. Substitute the values in italics to suit your network. The user account bears no relation to the admin account and is used for the hotspot service only. You may also need to add a host record to your DNS server for the hostname of the hotspot box. Make sure the address pool does not conflict with any devices using static IPs, such as access points.
[admin@MikroTik] > ip hotspot setup
hotspot interface: wlan1
local address of network: 192.168.30.1/24
masquerade network: yes
address pool of network: 192.168.30.2-192.168.30.99
select certificate: none
ip address of smtp server: 0.0.0.0
dns servers: 192.168.24.2
dns name: hotspot.mydomain.net
name of local hotspot user: user
password for the user: password
That’s the guts of it there. Fire up your laptop, associate to the network and try to access a web page. You should be redirected to the hotspot login page instead where you can enter the user credentials you set up earlier. Click the thumbnails for a full view of the default page.

You should now be able to access the web normally and a pop-up window will display your connection time and data usage as you go.

Bear in mind I have left out the certificate so usernames and passwords will be sent as plain text. If you intend on deploying the hotspot, you should install a certificate on it and set up SSL to protect account data from being sniffed. Setting up User Manager The User Manager is a nice and simple web administration for setting up user account for the MikroTik hotspot and other services. It can be hosted on either the same box as the hotspot or located in a separate box on the same local network. One User Manager package can control multiple hotspots. Before getting the User Manager set up, check for any existing hotspot account and remove them. To do this, run the following command:
[admin@MikroTik] > ip hotspot user print
Flags: X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
0 fred default 0s
If any items are listed (in this case bob), run the following command to remove them:
[admin@MikroTik] > ip hotspot user remove 0
You can delete multiple items at the same time, simply separate each item number with a comma. To get the User Manager working we first need to add a customer login. This is used to access the UM web administration. Make sure you substitute the values in italics to suit.
[admin@MikroTik] > tool user-manager customer add login=hs_admin password=password
Now we need to add the hotspot as a RADIUS client to the user manager. This is done under the user manager router section. The shared secret can be any string of text and should be reasonably long and complex. If you are setting the user manager up on the same box as the hotspot, use 127.0.0.1 for the IP address.
[admin@MikroTik] > tool user-manager router add ip-address=hotspot-ip shared-secret=12345 subscriber=hs_admin
In return, we need to set up the hotspot to use RADIUS for user authentication. First this involves creating a RADIUS client to communicate with the UM. Remember that if you have both services on the same box, the IP address should be set to 127.0.0.1. The secret should be the same as you set up above.
[admin@MikroTik] > radius add service=hotspot address=ip-address secret=12345
Now we tell the hotspot itself to use a RADIUS client. First bring up a list of hotspot profiles:
[admin@MikroTik] > ip hotspot profile print
Locate the profile in use and type the following command where 1 is the number of the profile to configure:
[admin@MikroTik] > ip hotspot profile set 1 use-radius=yes
Now we are done with configuration. Browse to http://router-ip/userman where router-ip is the IP address of the box you are configuring User Manager on. Login using the customer username and password created earlier. Click on the User menu and select Add. Enter in a username, password and any other details you wish. You can limit the speed the client can access the internet by selecting the Rate limits checkbox and typing in a suitable speed (e.g. for a flat 128kBps download/64kBps upload speed limit simply type in 128k in the RX field and 64k in the TX field). Click Add and you should be able to now access the hotspot using the username and password you specified. If you want to generate a printable ticket for the users you set up, click on the Users link, select the users to make a ticket for, click Generate and select the number of tickets per page.
Other Tips
You can also go a step further and play with some other available options, as this only skims the surface of the hotspot capabilities. I’ll post more notes as I play with additional options.- To disable communication between wireless clients (recommended), disable the default forward option on the wireless interface.
interface wireless set wlan1 default-forward=disabled
- To set up a walled garden (pages people can access without authenticating), use the following command:
ip hotspot walled-garden add dst-host=www.website.com
- To limit client bandwidth type the following, replacing profilename with the current hotspot profile in use and speed with the rate limit in bits per second:
ip hotspot profile set profilename rate-limit=”speed“
- You can customise the login and status pages by editing the files in the hotspot directory of the Mikrotik box. You can access these via FTP.
Taken From : Marlborough Wireless Project
.....
About You :
38.107.179.240
Browser :
Operating System :
Keep This Site Alive
Your Comment On Tutorial:
- Blocking Internet Explorer 6 w...
What is your favorite sitcom most? buy zithromax More... - Setting up a basic MikroTik ho...
Hello, I already tried 300x times to configure a M... More... - Load Balancing on MikroTik
aq coba load balancing . jk tak cabut dr provider ... More... - Setting up a basic MikroTik ho...
From the terminal: /ip hotspot reset-html From Win... More... - Setting Up no-password SSH
KOVAL ! why do you only respond to people who thre... More...

Comments
Open files then download logout.html from hotspot directory. After updated, upload again in the same directory.
Thanks
/ip hotspot reset-html
From Winbox, open Hotspot and click the Reset-HTML button.
Also is there any chance you could make a guide of how to setup, centrally managed radius and paypal setup please.
Thank you
I just wanted to find out how the hotspot is build when u have two ethernet interfaces, and a separate access point (a wireless router say).
Thank you
Thank you.
adderall jmc
icvftslb
1. go to IP -> Hotspot -> Servers. Double click on your server list, then set Addresses Per MAC to 1.
2. If not using userman, go to IP->Hotspot->Users, now you add user with IP and MAC as you like.
3. if using userman, you can try with this method : /tool user-manager user add username=XX:XX:XX:XX:XX: XX subscriber=MikroTik
Where XX:XX:XX:XX:XX: XX is your user mac address.
franel
I'm Using Mikrotik 3.9 Wel, I Want To Know How To Connect Mikrotik Router To USERMAN...
Pls Let Me Know The Whole Procedure...
Thankx In Advance...
Waiting For Nice Reply...
I'm Using Mikrotik 3.9 Wel, I Want To Know How To Connect Mikrotik Router To USERMAN...
Pls Let Me Know The Whole Procedure...
Thankx In Advance...
Waiting For Nice Reply...
Hi, have you install userman package? After you configure you mikrotik like tutorial above, you can access userman with type http:// router-ip/userman on your browser, where router-ip is the IP address of your router.
at 192.168.1.10/UserMan...
Yes UserMan3.9 Package Is Installed...
at System/Packages
After I logon it can't get to the internet. When I do a tracert it reaches the router but then say "Net Unreachable". I checked for the default gateway and it's configured correctly.
Any suggestions?
by www.wirelessrouterproxy.blogspot.com
is it so hard no answer or ???????????
And I'm sorry, i cannot do that, you can build your own webserver with another machine and OS, like linux.
Thank you
And I'm sorry, i cannot do that, you can build your own webserver with another machine and OS, like linux.
Thank you
i done it i replaced the index2.html
and index2.html.orgi
in folder home/web
its work and i uploaded my files but when i download a file for example "exam.zip" 1.76 G.B
its only download the file with size 190 mb
and when open it you find some of it's files not all
i'm sure the full file exit on mikrotik HDD BECAUSE I uploaded it with ExtBrowser_ and checked the file size
the problem is mikrotik allow to download 190 M.B not all the file size
any idea
"by the way i done it on Brazilfw www.brazilfw.com.br
but i want to do it on mikrotik it's more powerful"
i want to ask on how to make a script on mikrotik to notify the other by something each time they first run the explorer
I have Mikrotik OS 5.5, configured 3 Ports i.e. Gateway-eth1, Local-eth2 and WifiPort -eth3. I configured 2 DHCP servers for Local and WIFiPort. The DHCP works ok from the tests. I also have hotspot configured and user manager too for WifiPort users. On the WIFI Port I have a Bullet M2 on AP Bridge without security. I can see the SSID but I cant get IP from the Tik. I cant connect, please help. i followed the example above but still cant get the setup working.
I´d like to limit user up time per mac id or per individual computer per se. It´s easy to creat a new user but if we set up USER for a limit up time of 25 minutes than they will be cut off and no other computer can log on with USER becuase the 25 minutes is up. Any ideas?
Myclient want to view his info and change his password with his own. When i tried 192.168.1.200/user/public_id(WAN IP) then I get login page but error "incorrect password" when I give provide username and password, even it shows the same if I provide admin(subscribe r login details)
My WAN IP: 192.168.1.200 and LAN IP POOL: 10.10.0.1/24, Can you please guide me how my end client can get access to his info and can change his password by his own.
Regards,
Ganesh
I already tried 300x times to configure a Mikrotik Hotspot, all times failed!!
All the same thing... last time, i paid a guy to do it... anyway i tried again, about 30 times and everything seems to be ok but when i connect to my wifi hotspot, i'm not redirected to the login page, none appears... but if i enter URL (Hotspot IP:80) ok it works... the problem is, my router (x86) isnt redirecting me to the login page, like the DNS isnt being catch :(((((((((((((( ((((((((((((((( (((((((((((((
any idea?
RSS feed for comments to this post.