Mikrotik Hotspot Quick Setup Guide Tips N Tricks For Hotspot
Mikrotik Hotspot Quick Setup Guide Tips N Tricks For Hotspot
for Hotspot !
aacable.wordpress.com /2011/09/12/mikrotik-hotspot-quick-setup-guide-cli-version/
In my personnel opinion, Hotspot is best suited for ad hoc situations, where you
cannot control how the client has their machines configured. This is generally
useful in Conference Rooms, Hotels, Cafe’s , Restaurants and likewise since
people will come and go and you have few permanent users.
One big advantage of using hotspot is that HotSpot does not require any client
software/driver/dialer. One disadvantage of using HotSpot is that its usually
requires your client to open up his browser to log in before he can use your service . So users wanting
to connect to your service using a router or some kind usually have a problem (as routers usually don’t
support logging in via HTTP).
Following is a quick setup guide (CLI version) on how-to setup HOTSPOT server in Mikrotik using
command interface.
# HOTSPOT server,
# It will also configure DHCP to assign users IP Address from 172.16.0.1-172.16.0.255 ip pool .
Change it accordingly.
# I will add two Speed / Rate Limit Profiles, 256k and 512k, it will add a new user ‘zaib‘ password=test
with 512k profile and user ‘test‘ Password=test with 256k Limit.
Basic HOSTPOT is now configured. Now goto client pc, Upon booting, it will automatically receive ip
from hotspot dhcp server, Open your browser and try to open any web site, You will see Hotspot Login
page asking for credentials.
OR you can customize the
hotspot login page to show your
logo look like something
http://wiki.mikrotik.com/wiki/Hotspot_server_setup
http://forum.mikrotik.com/viewtopic.php?t=26609
There are two links that you have to replace, and both look like this:
Change them to
Now after successful login, user will automatically redirected to yoursite.com, you can also create your
customized page showing users details using the variables available.
Howto Allow URL for some destinations for non authenticated Users
Sometimes it is required to allow access to some destinations / URLs for non authenticated users, for
example if you have a web / radius server and you want that user can access it without login to hotspot,
then you can add its ip address in walled garden.
(change xx:xx:xx:xx:xx:xx with your user’s mac address. You can also use the ip address to bypass.
.
HOTSPOT FLAGS,
HOTSPOT FLAGS, S – static, If you have the lease set as a static dhcp lease (assigns same ip every
time device requests one) it shows as static. That is in “/ip dhcp-server lease” using “make-static”.
H – DHCP,
D – Dynamic,
A – If someone connects to the hotspot, they show up in the Hosts tab but are not yet authorized. Once
they log in, they show up in the Active tab and are now authorized.
P – bypassed > Go to IP > Hotspot > IP Bindings > and add a new item. One of the “type” options is
bypassed, which simply means they don’t have to login. From the wiki, “bypassed – performs the
translation, but excludes client from login to the HotSpot”
X – Disabled, not active A – Active, in use C – Connected, a directly connected host route S – Static,
added manually R – RIP route, received from the routing information protocol B – BGP, received from
the border gateway protocol O – Received from the open shortest path first protocol M – Received
from the mesh made easy protocol B – Blackhole route, packets are silently discarded U –
Unreachable, discards the packets and sends an ICMP unreachable messages P – Prohibit, discards
packet and sends an ICMP communication administratively prohibited message
24.851000 67.008300