Difference between revisions of "Mikrotik: HotSpot"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
Sumber: http://wiki.mikrotik.com/wiki/Hotspot_server_setup
 
Sumber: http://wiki.mikrotik.com/wiki/Hotspot_server_setup
  
Hotspot server setup
 
Hotspot Server Setup with Profiles
 
  
In this article i will cover how to setup HOTSPOT Server with different profiles.
+
[[Image:Mikrotik-hotspot1.png|center|200px|thumb|Masuk ke menu Web]]
  
First we will configure interface that is connected to WAN.
+
[[Image:Mikrotik-hotspot2.png|center|200px|thumb|Buka menu IP, akan terlihat menu HotSpot]]
  
/ ip address add address=192.168.1.5/24 network=192.168.1.0 broadcast=192.168.1.255 interface=ether1
+
[[Image:Mikrotik-hotspot3.png|center|200px|thumb|Klik Menu HotSpot]]
  
Now one interface is configured and connected to WAN (with ip 192.168.1.5/24). Now we will configure second interface for our Local Network.
+
[[Image:Mikrotik-hotspot4.png|center|200px|thumb|Klik "HotSpot Setup", pastikan HotSpot Interface "bridge-local", klik Next]]
  
/ ip address add address=10.10.0.1/24 network=10.10.0.0 broadcast=10.10.0.255 interface=ether2
+
[[Image:Mikrotik-hotspot5.png|center|200px|thumb|Pastikan Address 192.168.88.1/24 dan Masquerade, klik Next]]
  
 +
[[Image:Mikrotik-hotspot6.png|center|200px|thumb|Set Address Pool of Network untuk client, contoh 192.168.88.100-192.168.88.254]]
  
Now we have both our interfaces configured and working. Next we will setup our Mikrotik ROS as a DNS Server as it is a very good practice for setting up a DNS server. Goto IP > DNS then press Settings button and fill in the appropriate information as per provided by your ISP, when done select the "ALLOW REMOTE REQUEST" line (it will allow requests from your cleints to be processed).
+
[[Image:Mikrotik-hotspot7.png|center|200px|thumb|Select Sertificate "none", kecuali kalau kita mempunya certificate dari Certificate Authority / CA, klik Next]]
  
 +
[[Image:Mikrotik-hotspot8.png|center|200px|thumb|Set SMTP Server, untuk Speedy 222.124.18.79,klik Next]]
  
Dns-setup.JPG
+
[[Image:Mikrotik-hotspot9.png|center|200px|thumb|Set DNS Server, klik + untuk menambahkan beberapa DNS Server]]
  
 +
[[Image:Mikrotik-hotspot10.png|center|200px|thumb|Set DNS Server 8.8.8.8 untuk DNS Google, klik Next]]
  
 +
[[Image:Mikrotik-hotspot11.png|center|200px|thumb|Set nama hostname Page Login user, boleh sembarang sebetulnya, klik Next]]
  
Now we will setup a default ROUTE. Goto IP > Routes, press the plus sign. Leave the destination field as it is, in the GATEWAY field enter the IP Address of the GATEWAY of you WAN interface.
+
[[Image:Mikrotik-hotspot12.png|center|200px|thumb|Set Username & password admin, dalam contoh admin admin, klik Next selesai sudah]]
 
 
 
 
Route.JPG
 
 
 
 
 
 
 
Now we will setup our HOTSPOT Server. Goto IP > Hotspot, in the server tab you will see a button "Hotspot Setup" press it. A new window will popup asking you on which interface you want to setup HOTSPOT, here select the interface that is connected to local network (in our example it is ether2). Press NEXT.
 
 
 
 
 
Hotspot-1.JPG
 
 
 
 
 
 
 
In step 2 it will ask you the IP of the server, by default it will detect the IP which is set on the interface that we selected in step 1. Just press NEXT
 
 
 
 
 
 
 
In step 3 it will ask you the IP range that will be used by the DHCP server for providing IP's to clients. Here you can modify the IP range, make sure that it should be acceptable by SERVER. You can increase and decrease the length of the IP range. When done press NEXT
 
 
 
 
 
 
 
In step 4 it will ask you to select any certificate that will be used by the server. Select NONE and press NEXT.
 
 
 
 
 
Hotspot-4.JPG
 
 
 
 
 
 
 
In step 5 it will as you to define the SMTP Server, if you have any. I dont have any SMTP Server setup with me so i just left it as it was (0.0.0.0). Press NEXT.
 
 
 
 
 
Hotspot-5.JPG
 
 
 
 
 
 
 
In step 6 it will as you your DNS Server's IP Address. This was the first task that we finished. So Here no need to change any thing. Just PRESS NEXT.
 
 
 
 
 
 
 
In step 7 it will as you to define a name your server, by which clients will be able to access the HOTSPOT login/information page through web browsers. Setup what ever you want and press NEXT.
 
 
 
 
 
Hotspot-7.JPG
 
 
 
 
 
 
 
Now the last step. To create a user. By default it creates a user admin with no password. Here you can set the password and user name for the default user. Change the values if you want and press NEXT.
 
 
 
 
 
Hotspot-8.JPG
 
 
 
 
 
 
 
Your Hotspot server is ready and configured. Now if you recieve a message saying Router Disconnected, dont worry its just the security of HOTSPOT. First login to the HOTSPOT with user name and password that you created in STEP 8. Now again open the WINBOX and again goto IP > Hotspot.
 
 
 
Now we will do some changes in the default settings to make our HOTSPOT work in a better way.
 
 
 
In the Server TAB you will now see a server will be showing up by the name "hotspot1", double click it and change the value "Address per MAC" to 1, for more security.
 
 
 
 
 
Hotspot-profile1.JPG
 
 
 
 
 
 
 
You will see a LOGIN tab in the same window, and make sure that only "HTTP CHAP" is selected in the Login By section. Now APPLY and OK.
 
 
 
 
 
Hotspot-profile2.JPG
 
 
 
 
 
 
 
Now we will create a new User Profile. Goto User Profile TAB, press the Plus Sign, name it what ever you want. Select the IP Pool, hotspot creates a pool by default with the IP Range that we set during the HOTSPOT Server Setup. Now we will set the Download and Upload Bandwidth restriction. in the Rate Limit (tx/rx) set the limit (i have set it to 512k up/down). Now press APPLY and OK.
 
 
 
 
 
User-profile1.JPG
 
 
 
 
 
 
 
Now we will create a new user that will use the profile that we just created. Goto Users TAB in the same window. Press the plus sign, Select the specific server or Select ALL. Set the User Name and Password for the user. In the Profile Filed select the profile that we created in the previous step. Press APPLY and OK.
 
 
 
 
 
User-add1.JPG
 
 
 
 
 
 
 
CONGRATULATIONS!!!!
 
 
 
Your HOTSPOT Server is configured and running. Now test it.
 
 
 
Article by Mudasir Mirza
 
 
 
 
 
 
 
[[Image:Mikrotik-hotspot1.png|center|200px|thumb]]
 
 
 
 
 
[[Image:Mikrotik-hotspot2.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot3.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot4.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot5.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot6.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot7.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot8.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot9.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot10.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot11.png|center|200px|thumb]]
 
 
 
[[Image:Mikrotik-hotspot12.png|center|200px|thumb]]
 
  
 
[[Image:Mikrotik-hotspot13.png|center|200px|thumb]]
 
[[Image:Mikrotik-hotspot13.png|center|200px|thumb]]

Revision as of 06:47, 14 January 2016

Sumber: http://wiki.mikrotik.com/wiki/Hotspot_server_setup


Masuk ke menu Web
Buka menu IP, akan terlihat menu HotSpot
Klik Menu HotSpot
Klik "HotSpot Setup", pastikan HotSpot Interface "bridge-local", klik Next
Pastikan Address 192.168.88.1/24 dan Masquerade, klik Next
Set Address Pool of Network untuk client, contoh 192.168.88.100-192.168.88.254
Select Sertificate "none", kecuali kalau kita mempunya certificate dari Certificate Authority / CA, klik Next
Set SMTP Server, untuk Speedy 222.124.18.79,klik Next
Set DNS Server, klik + untuk menambahkan beberapa DNS Server
Set DNS Server 8.8.8.8 untuk DNS Google, klik Next
Set nama hostname Page Login user, boleh sembarang sebetulnya, klik Next
Set Username & password admin, dalam contoh admin admin, klik Next selesai sudah



Referensi