https://bill.cloud-hotspot.com/wiki/index.php?title=Special:NewPages&feed=atom&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter=
EasyZone wiki - New pages [en]
2024-03-28T22:09:53Z
From EasyZone wiki
MediaWiki 1.28.2
https://bill.cloud-hotspot.com/wiki/index.php/%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%9A_EasyZone_Radius_Billing_%E0%B8%81%E0%B8%B1%E0%B8%9A_Cloudbeds_API
คู่มือการเชื่อมระบบ EasyZone Radius Billing กับ Cloudbeds API
2024-03-21T04:46:43Z
<p>Easyhorpak: </p>
<hr />
<div><br />
มีวิธีการดังต่อไปนี้ <br />
<br />
1. ให้ admin cloudbeds ของโรงแรมสร้าง client_id client_secret api_key ส่วนค่า redirect_uri ตั้งเป็น https://www.cloud-hotspot.com/page/ โดยเลือก permission เป็น read ในระบบและส่งให้ทีมงาน easyzone <br />
<br />
2. ให้ admin cloudbeds login เพื่อตามค่า code ที่ url https://hotels.cloudbeds.com/api/v1.1/oauth?client_id=client_id&redirect_uri=https://www.cloud-hotspot.com/page/&response_type=code&scope=<br />
<br />
ค่า '''client_id''' คือ ค่าที่ท่าน admin cloudbeds ส่งให้ <br />
<br />
หลังจากนั้นจะได้ url https://www.cloud-hotspot.com/page/?code=xxxx&state=xxxx<br />
<br />
3. admin easyzone ทำการดึงค่า access token จาก curl scripts ดังนี้ <br />
<br />
code=xxxx<br />
<br />
client_id=xxxx<br />
<br />
client_secret=xxxx<br />
<br />
api_key=xxxx<br />
<br />
curl -d "code=$code&client_id=$client_id&client_secret=$client_secret&redirect_uri=https://www.cloud-hotspot.com/page/&grant_type=authorization_code" -H "Content-Type: application/x-www-form-urlencoded" -X POST https://hotels.cloudbeds.com/api/v1.1/access_token<br />
<br />
ระบบจะแสดงข้อมูล access token และ refresh token<br />
<br />
access_token="xxxx"<br />
refresh_token="xxxx"<br />
<br />
4. ให้นำ access token มาทำการ add webhook ตามสคริปท์ ดังนี้ <br />
<br />
user_id=xxxx<br />
<br />
hotspot_id=xxxx<br />
<br />
url="https://app.cloud-hotspot.com/mn/main/cloudbeds/$user_id/$hotspot_id"<br />
<br />
object=reservation<br />
<br />
'''เพิ่มการส่งค่า webhook เมื่อมีการ checked_in'''<br />
<br />
action=status_changed<br />
curl --location --request POST 'https://hotels.cloudbeds.com/api/v1.1/postWebhook' --header "Authorization: Bearer $access_token" --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode "endpointUrl=$url" --data-urlencode "object=$object" --data-urlencode "action=$action"<br />
<br />
'''เพิ่มการส่งค่า webhook เมื่อมีการย้ายห้อง'''<br />
<br />
action=accommodation_changed<br />
<br />
curl --location --request POST 'https://hotels.cloudbeds.com/api/v1.1/postWebhook' --header "Authorization: Bearer $access_token" --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode "endpointUrl=$url" --data-urlencode "object=$object" --data-urlencode "action=$action"<br />
<br />
ตรวจสอบค่า webhook ที่ scripts <br />
<br />
#get webhook<br />
curl --location --request GET "https://hotels.cloudbeds.com/api/v1.1/getWebhooks" --header "Authorization: Bearer $access_token" --header 'Content-Type: application/x-www-form-urlencoded' <br />
<br />
<br />
5. ทำการเพิ่มข้อมูล user_id hotspot_id ที่ระบบ endpoint webhook <br />
<br />
6. ทำการเพิ่ม account admin เพื่อรับและบันทึกค่า webhook ที่เมนู staff url https://app.cloud-hotspot.com/mn</div>
Easyhorpak
https://bill.cloud-hotspot.com/wiki/index.php/%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%81%E0%B8%A5%E0%B9%88%E0%B8%AD%E0%B8%87_License_EasyZone_Radius_Billing_(Cloud)
คู่มือการใช้งานกล่อง License EasyZone Radius Billing (Cloud)
2024-03-14T07:39:47Z
<p>Easyhorpak: </p>
<hr />
<div>'''กล่อง License EasyZone Radius Billing (Cloud) คือ อะไร'''<br />
<br />
กล่อง License EasyZone Radius Billing (Cloud) คือ กล่อง license ซอฟแวร์จัดการระบบ Hotspot และระบบ PPPoE สำหรับอุปกรณ์ Mikrotik <br />
ใช้สำหรับบริหารจัดการ user ผ่านระบบ Cloud <br />
<br />
ลิ้งค์คู่มือการใช้งานของโปรแกรม [https://bill.cloud-hotspot.com/wiki/index.php/%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%87%E0%B8%B2%E0%B8%99_EasyZone_Radius_Billing_(Cloud) '''Link คู่มือ''']<br />
<br />
[[File:431758021 3709458202625197 5000715323576043225 n.jpg|600px|thumb|center]]<br />
<br />
'''วิธีการใช้งาน'''<br />
<br />
1. เมื่อท่านได้กล่องแล้ว ให้ทำการเปิดกล่อง เพื่อตรวจสอบ License ภายใน <br />
<br />
[[File:432188182 1752742491877156 34213957136772070 n.jpg|400px|thumb|center]]<br />
<br />
[[File:432057847 1394259584555410 3748132719609493742 n.jpg|400px|thumb|center]]<br />
<br />
2. จากนั้นทำการลงทะเบียน หรือ เข้าสู่ระบบ ที่เว็บ https://www.cloud-hotspot.com ช่องคำถาม '''Do you have EasyZone Radius Billing (Cloud) License Box?.''' ให้เลือก '''Yes''' ตามภาพ<br />
<br />
[[File:Screenshot from 2024-03-14 16-27-58.png|600px|thumb|center]]<br />
<br />
3. การสร้าง Hotspot ใหม่ ให้ท่านไปที่เมนู Hotspot ทำการสร้าง Hotspot โดยกรอกรายละเอียด และกรอก License ในช่อง License เพื่อสร้าง Hotspot <br />
<br />
[[File:Screenshot from 2024-03-14 15-18-52.png|600px|thumb|center]]<br />
<br />
4. หลังจากนั้นทำการตั้งค่าอุปกรณ์ Mikrotik ตามเมนูการตั้ง และเริ่มการใช้งาน Hotspot<br />
<br />
[[File:Screenshot from 2024-03-14 15-20-06.png|600px|thumb|center]]<br />
<br />
5. ท่านสามารถใช้ License เพื่อต่ออายุ Hotspot โดยเลือก Hotspot ที่ต้องการต่ออายุ กดที่ Renew กรอก License ของท่าน และกด เพื่อต่ออายุ Hotspot<br />
<br />
[[File:Screenshot from 2024-03-14 15-21-54.png|600px|thumb|center]]</div>
Easyhorpak
https://bill.cloud-hotspot.com/wiki/index.php/%E0%B8%84%E0%B8%B9%E0%B9%88%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%A3%E0%B8%B0%E0%B8%9A%E0%B8%9A_Cloud_Multi_Hotspot_%E0%B9%83%E0%B8%99_Mikrotik_%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7
คู่มือการสร้างระบบ Cloud Multi Hotspot ใน Mikrotik ตัวเดียว
2024-03-07T02:52:57Z
<p>Easyhorpak: </p>
<hr />
<div><br />
'''Cloud Multi Hotspot ใน Mikrotik ตัวเดียว คืออะไร'''<br />
<br />
Cloud Multi Hotspot คือ การสร้างระบบ Hotspot หลาย ๆ จุด เพื่อบริการผู้ใช้งานระบบอินเตอร์เน็ต เพื่อความสะดวกในการใช้งาน และแยกกลุ่มผู้ใช้งานที่ชัดเจน เพื่อให้ผู้ดูแลระบบเกิดความสะดวกในการบริหารจัดการระบบ <br />
<br />
ตัวอย่างเช่น ระบบจัดการอินเตอร์เน็ตของ บริษัท ที่แยกระบบระหว่า่ง ระบบอินเตอร์เน็ตสำหรับผู้บริหาร ระบบอินเตอร์เน็ตสำหรับพนักงาน ระบบอินเตอร์เน็ตสำหรับลูกค้าผู้มาใช้บริการ <br />
<br />
<br />
'''ทำไม ต้องทำ Cloud Multi Hotspot ใน Mikrotik ตัวเดียว'''<br />
<br />
เพื่อแยกการใช้งานระบบของแต่ละกลุ่มผู้ใช้งาน ออกจากกันให้ชัดเจน รองรับการใช้ทรัพยากร ที่คุ้มค่า สร้างความปลอดภัยในระบบ Network<br />
<br />
ตัวอย่างเช่น การแยก VLAN และ SSID WIFI ของ ผู้บริหาร พนักงาน และ ลูกค้าออกจากกัน<br />
<br />
VLAN 101 SSID Exclusive สำหรับผู้บริหาร<br />
<br />
VLAN 102 SSID Staff สำหรับพนักงาน<br />
<br />
VLAN 103 SSID Guest สำหรับลูกค้า<br />
<br />
'''ปัญหาที่พบ''' <br />
<br />
หากใช้ Mikrotik Gateway 1 ตัวทำ 3 VLAN และเชื่อมมาที่ ระบบ Radius จะพบปัญหา การใช้งาน คือ User สามาถเกาะ SSID วงใดก็ได้ และลอกอิน เข้าสู่ระบบได้ เนื่องจากใช้ Mikrotik ตัวเดียวกัน <br />
<br />
ทำให้ไม่สามารถแยกผู้ใช้ตามกลุ่มได้<br />
<br />
หากแก้ไขโดยการแยก Mikrotik วงละตัว ตามระบบ VLAN จะทำให้สิ้นเปลืองงบประมาณ ด้านไอที <br />
<br />
<br />
'''แนวทางการแก้ปัญหาและประโยชน์ทีไ่ด้รับ'''<br />
<br />
แนวทางแก้ไข คือ ทำระบบ Multi hotspot ใน Mikrotik 1 และแยก VLAN ตามระบบ แต่ User ไม่มา Login ข้ามวง Network ได้<br />
<br />
เช่น Staff ไม่สามารถ Login SSID Exclusive ได้ Login วง Staff เท่านั้น <br />
<br />
หรือ Guest ไม่สามารถ ลอกอินที่ SSID Staff ได้ ต้องลอกอินที่ SSID Guest เท่านั้น <br />
<br />
<br />
'''วิธีการตั้งค่า'''<br />
<br />
1. Login เข้าสู่ระบบ <br />
<br />
2. ทำการสร้าง Hotspot ขึ้น มา 3 Hotspot<br />
<br />
3. Hotspot ที่ 1 Exclusive ทำการตั้งค่า ตามหน้า เมนูตั้งค่าปกติ <br />
<br />
4. Hotspot ที่ 2. ทำการตั้งค่าโดยไปที่หน้า ตั้งค่า เลือก กรอกช่อง HTML Directory เป็น hotspot2 หรือ directory hotspot ที่ท่านตั้งไว้<br />
<br />
5. ทำการเลือก เครื่องหมายถูก ที่หน้า Multi hotspot เพื่อทำระบบ Multi hotspot<br />
<br />
[[File:Ml.png|600px|thumb|center]]<br />
<br />
6. กดปุ่ม Generate Scripts ระบบจะสร้างสคริปท์ขึ้นมา <br />
<br />
7. ให้ท่านวางสคริปท์ แต่ละข้อ <br />
<br />
8. เมื่อมาถึงข้อ 8 ให้ท่านทำตามที่ระบบแจ้ง <br />
<br />
Multi hotspot is enabled<br />
<br />
1. Setting your hotspot name in IP > hotspot > servers , select your hotspot server and set name to multihotspot-xxxxxxxxxxxxxxxxxxxxxxxxxxx<br />
<br />
2. Copy html directory from /file/hotspot to /file/hotspot2<br />
<br />
3. Copy code below and paste in Terminal<br />
<br />
[[File:Ml2.png|800px|thumb|center]]<br />
<br />
<br />
9. เป็นอันเสร็จขั้นตอนการสร้าง Hotspot ที่ 2 <br />
<br />
10. Hotspot ที่ 3 ดำเนินการแบบเดียวกัน กับ Hotspot ที่ 2</div>
Easyhorpak