A HOTSPOT is way to provide internet access to subscribers by means of an easy to use login
interface as it does not require any client software/driver/dialer at user end. To log in, users may
use almost any web browser , so they are not required to install additional software.It is also
possible to allow users to access some web pages without authentication using Walled Garden
feature.
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, Cafes , 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 dont support
logging in via HTTP).
Following is a quick setup guide (CLI version) on how-to setup HOTSPOT server in Mikrotik
using command interface.
This guide will help you in setting up . . .
# 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.
# It will Add Default Route to internet which is DSL router ip 192.168.2.2 ,
Change it accordingly.
Sebagai contoh, Mikrotik memiliki dua interface cards.
add address-pool=hs-pool-1 advertise=no idle-timeout=none keepalivetimeout=2m name="256k Limit" open-status-page=always ratelimit=256k/256k shared-users=1 status-autorefresh=1m transparent-proxy=yes
/ip hotspot service-port set ftp disabled=yes ports=21
/ip hotspot walled-garden ip add action=accept disabled=no dstaddress=172.16.0.1
/ip hotspot set numbers=hotspot1 address-pool=none
/ip firewall nat add action=masquerade chain=srcnat disabled=no
/ip hotspot user
add disabled=no name=admin password=123 profile=default
add disabled=no name=zaib password=test profile="512k Limit"
server=hotspot1
add disabled=no name=test-256k password=test profile="256k Limit"
server=hotspot1
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.2 scope=30
target-scope=10
Setelah selesai konfigurasi cek dari client pcsecara otomatis maka client mendapat hotspot dhcp
server, buka browser , maka akan terlihat tampilan Hotspot Login
OR you can customize the hotspot login page to show your logo look like something
Now open it using any html editor, I always prefer FRONTPAGE for editing HTML pages due to
its easy interface. Customize it according to your need, You must have some prior knowledge of
some website / html editing. You can insert your logo , advertisement and lot more in this page.
After you are done, simply Upload the file back from where you downloaded it. use drag n drop
feature. For beginners, I recommend you not to change any default variable, just ad your logo n
text , After you are familiarized with the structure, you can build your own fully customized
login page.
There are two links that you have to replace, and both look like this:
1input type=hidden name=dst value=$(link-orig)
Change them to
1input type=hidden name=dst value=http://aacable.wordpress.com
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.
.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 dont have to login. From the wiki, bypassed
performs the translation, but excludes client from login to the HotSpot
============
Some more flags for ROUTE
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