Sunday, February 24, 2019

How To Setup Your Ain Hotspot Alongside Mikrotik Routers

Before starting, reset your router. If yous encounter a message virtually "Default configuration" press Remove configuration.
You demand to setup your Mikrotik router past times using Winbox. Winbox is the graphical user interface for configuring the Mikrotik Router OS. You tin dismiss larn Winbox from Mikrotik's website.
1. First nosotros demand to define the outset port for WAN connexion thus the router volition connect to the mesh via approximately other router alongside DHCP.
In winbox click IP > DHCP Client together with Add DHCP Client to port ether1


 2. Let's add together the hotspot service to wlan Click IP > HotSpot together with the hotspot Setup box, pick out wlan1 equally hotspot interface. You tin dismiss bring default values but pick out none for certificate. Leave the IP equally it is (10.5.50.x). If yous modify this IP, the LOGIN together with LOGOUT links volition non move on your splash page.


3. The router should hold upwardly placed inwards ap duet mode.
Click interface, double click wlan1, click Mode: together with select ap duet
And brand for certain the frequency is laid upwardly to 2.4 b/G.

4. You demand to add together our radius server equally authentication together with accounting server.
In the hotspot profiles (IP > HotSpot > Profiles) pick out your hotspot profile together with click the radius tab, check let radius. Then click the login tab together with de-select cookie, let http pap together with chap.



5. You demand to define our radius server. Click Radius together with the + sign to add together our radius server.
Click Services > Hotspot, larn into radius address: Radius.hotspotsystem.com, Secret: hotsys123
Check the box side past times side to hotspot


6. You demand to add together the secondary radius server. Click Radius together with the + sign.
Click Services > Hotspot, larn into radius Address: radius2.hotspotsystem.com, Secret: hotsys123
Check the box side past times side to hotspot 


7. We receive got to let for certain sites together with servers for non authenticated users otherwise they can't purchase access.
In the section IP > HotSpot > Walled Garden, click on + sign together with add together the next domains to Dst. Host i past times one:
*.hotspotsystem.com
*.worldpay.com
*.paypal.com
*.paypalobjects.com
*.paypal-metrics.com
*.altfarm.mediaplex.com
*.akamaiedge.net
paypal.112.2O7.net
*.moneybookers.com
*.adyen.com *.directebanking.com
*.paysafecard.com
betalen.rabobank.nl
ideal.ing.nl
internetbankieren.frieslandbank.nl
ideal.abnamro.nl
ideal.snsreaal.nl
ideal.triodos-onlinebanking.nl

For Hotspot FREE SOCIAL locations: yous must add together 'www.apple.com' too!
Then inwards the section IP > HotSpot > Walled Garden > IP List add together the next IPs to Dst. Address i past times i (if your Mikrotik doesn't let netmask values (.0/24) yous tin dismiss skip the netmask value):
194.149.46.0/24
198.241.128.0/17
66.211.128.0/17
216.113.128.0/17
70.42.128.0/17
128.242.125.0/24
216.52.17.0/24
62.249.232.74
155.136.68.77
66.4.128.0/17
66.211.128.0/17
66.235.128.0/17
88.221.136.146
195.228.254.149
195.228.254.152
203.211.140.157
203.211.150.204
82.199.90.136/29
82.199.90.160/27
91.212.42.0/24


8. You demand to syncronize the router's fourth dimension alongside our server.
Click on System > NTP Client. Enter primary together with secondary NTP servers. To respect NTP servers, become to http://www.pool.ntp.org/ together with select the location's continent on the correct side of the page. You'll respect NTP servers there.
Be for certain to leave TimeZoneName: manual, together with TimeZone: 00:00 inwards System > Clock. (Don't laid upwardly your ain timezone, because the router has to demo the GMT time!)

9. You demand to modify the router's NASID. The NASID setting inwards the Mikrotik is located nether System > Identity. Default is 'MikroTik'.
Change this the next way: OPERATORUSERNAME_LOCATIONNUMBER
Example: Operator Username is 'globalhotspot', Location ID: '2', thus NASID should be: 'globalhotspot_2'
NOTE: In instance yous are installing multiple routers inwards the same location, yous should purpose dissimilar NAS IDs. For the instant routers yous demand to add together '_wds_1' to the NAS Id, for the tertiary router '_wds_2', etc. So for illustration if yous desire to install the instant router inwards location 3, the NASID should hold upwardly laid upwardly to 'globalhotspot_3_wds_1'.

10. You receive got to customize Mikrotik's built-in login page. On the side card become to Files, together with respect the login.html file nether the 'hotspot' directory. Double click on the file together with pick out Backup.
Open a elementary text editor similar notepad together with re-create together with glue the next to the editor:

<html><head>
<title>HotSpot System Login</title>
</head>
<body>
<form name="redirect" action="https://customer.hotspotsystem.com/customer/hotspotlogin.php" method="GET">

<input type="hidden" name="res" value="notyet" />
<input type="hidden" name="mac" value="$(mac)" />
<input type="hidden" name="user" value="$(username)" />
<input type="hidden" name="uamport" value="mikrotik" />
<input type="hidden" name="userurl" value="$(link-orig)" />
<input type="hidden" name="nasid" value="$(identity)" />
<input type="hidden" name="uamip" value="$(server-address)" />
<input type="hidden" name="error" value="$(error)" />
<input type="hidden" name="chap-id" value="$(chap-id)" />
<input type="hidden" name="chap-challenge" value="$(chap-challenge)" />

</form>

<script language="JavaScript">

<!--

 document.redirect.submit();

 //-->

</script>
</body>
</html>
ave it equally login.html to your Desktop.
Drag together with drib this login.html to your "hotspot" directory inwards the Winbox program.
If yous want to purpose FTP yous tin dismiss FTP to your mikrotik router alongside the admin userid together with password together with supercede the file at that spot nether the 'hotspot' directory.
If yous don't want to redirect users to our squeamish splash page yous tin dismiss drib dead on to purpose the router's built-in login page but inwards this instance it is of import to add together a link to the internal page where your users tin dismiss purchase access or activate their prepaid cards. Click hither for to a greater extent than information.

10/b. In instance yous are using Hotspot FREE SOCIAL service, yous also demand to edit logout.html template. You demand to purpose the same content equally for the login.html (code above).

11. You receive got to laid upwardly the Login/Logout URL IP addresses inwards the Control Center. Log inwards to the Control Center alongside your Operator Username together with password together with become to Manage > Locations. Click on the location, thus click on Modify Hotspot Data & Settings. In Splash Page Settings modify the Internal Login/Logout URL Set to Mikrotik. Make for certain that 'Display Login Box on Main Splash Page' selection is CHECKED.

12. Extend the shared-users restrain inwards your hotspot profile.
Sub-menu: /ip hotspot user profile
or become to IP > Hotspot > User Profiles > default > Shared-Users
Change shared-users to 5.

13. As the final pace yous receive got to add together hourly checking for upwardly condition for the Router Alert feature.
Go to System > Scheduler together with add together a novel draw of piece of occupation past times pressing the addition sign.
Name: up
Interval: 01:00:00
On Event:

/tool fetch keep-result=no mode=http address=tech.hotspotsystem.com src-path=("up.php?mac=".[/interface ethernet larn 0 mac-address]."&nasid=".[/system identity larn name]."&os_date=Mikrotik&uptime=".[/system clock larn time]."%20up%20".[/system resources larn uptime].",%20load%20average:%20".[/system resources larn cpu-load]."%")


Policy: enable all
Press Apply together with OK.




That's all. You tin dismiss setup hotspot service fifty-fifty on a wired connection. In this instance yous receive got to pick out an ethernet port instead of wlan or yous tin dismiss setup hotspot on both ports.
If yous receive got successfully setup your mikrotik router yous receive got to encounter a login window when connecting via wireless. You tin dismiss log inwards alongside username admin, blank password.