# Peplink InControl

## **ขั้นตอนแรกให้ Add Device ขึ้น Cloud ให้เรียบร้อย**

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FCqXHxYH8GxvPCz2QZsBt%2Fimage.png?alt=media&#x26;token=7fe2787f-65b0-41b5-847b-5891c53bd34e" alt=""><figcaption></figcaption></figure>

## **ไปที่เมนู Network Setting > Captive Portals**

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FvCLidLn0nK5f3WzvpwmE%2Fimage.png?alt=media&#x26;token=d3dd2b3e-64c2-4ba2-8555-f8205fc02f32" alt=""><figcaption></figcaption></figure>

<p align="center">กดที่ตัว i แล้วคลิ๊ก <mark style="color:blue;">HERE</mark> ตามภาพ</p>

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FR9CTrAewHN9LzZyS8n6E%2Fimage.png?alt=media&#x26;token=32ca4a9b-84e4-458a-be98-2fd6c5bdab86" alt=""><figcaption></figcaption></figure>

1. กด Add an External CaptivePortal&#x20;
2. คลิ๊ก Enable แล้วตั้งชื่อ&#x20;
3. เลือก User Authentication&#x20;

* Authentication : เลือก Radius Server
* Authentication Server : ใส่ IP Radius Server
* &#x20;Authentication Protocol : เลือก PAP
* Authentication Port : port 1812
* Authentication Secret : ใส่ Secret Key ของ Radius Server
* CoA-DM : Port 3799

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2Ff04bqfDdlY6LWSxUm1IR%2Fimage.png?alt=media&#x26;token=730a8172-0a83-41a4-ae8e-4f3708455984" alt=""><figcaption></figcaption></figure>

<p align="center">เลื่อนลงมาด้านล่าง</p>

* Accounting Server : ใส่ IP Radius Server
* Accounting Port : Port 1813
* Accounting Secret : ใส่ Secret Key ของ Radius Server
* Accounting Interim Interval : 60 Sec

4. ให้ตั้งค่าตามภาพ

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FKkwEMlDe5It0K4byXp3u%2Fimage.png?alt=media&#x26;token=7e0033dc-9ce6-4141-85ba-84f777cffe49" alt=""><figcaption></figcaption></figure>

<p align="center">เลื่อนลงมาด้านล่าง</p>

5. Allowed Networks : ใส่ Domain Seara ของเราที่ได้รับจาก Mail
6. Splash Page URL : <https://Domain> Seara ของเรา/app/portal/login

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FJZeoEb0NJt0ZoAghb0wB%2Fimage.png?alt=media&#x26;token=cc5d069d-4b09-48b2-a212-a611d21d92c8" alt=""><figcaption></figcaption></figure>

## **ไปที่เมนู Network Setting > VLAN Networks**

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FvIRws7XHi0dAD6f28Nna%2Fimage.png?alt=media&#x26;token=35224a01-9287-4aef-9e87-b67ca5c85612" alt=""><figcaption></figcaption></figure>

<p align="center"><strong>VLAN Network Setting</strong></p>

1. กด Add VLAN Network
2. ตั้งค่ารายละเอียดตามภาพ

* ตั้งชื่อ Interface LAN
* ใส่ Vlan Number
* เลือก ALL Balance MAX

3. ตั้งค่ารายละเอียดตามภาพ

* ใส่ IP Address ขา LAN
* ใส่ Subnet Mask ของขา LAN
* เปิดใช้งาน Inter-VLAN-Routing

4. เลือก Captive Portal ที่ได้สร้างไว้ในขั้นตอนก่อนหน้านี้
5. เปิดใช้งาน DHCP Server&#x20;

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FK4GGQNRfncuMGyhY9jHc%2Fimage.png?alt=media&#x26;token=ca5c2a26-807d-4fb6-855d-9674c78020e4" alt=""><figcaption></figcaption></figure>

<p align="center">เลื่อนลงมาด้านล่าง</p>

6. เลือก IP Range ที่จะแจกให้ Client
7. ตั้งค่า DNS Server ที่จะแจกให้ Client

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2F3oRWQgFZGaRqI3miVw2q%2Fimage.png?alt=media&#x26;token=2c62a87f-bc48-403d-81d9-9ef2cd6d3527" alt=""><figcaption></figcaption></figure>

<p align="center"><strong>Add ip virtual for verify cert</strong></p>

1. กด Add VLAN Network
2. ตั้งค่ารายละเอียดให้ตรงตามภาพ
3. ตั้งค่ารายละเอียดให้ตรงตามภาพ&#x20;

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FcphvAmQWYYiTCdki84Az%2Fimage.png?alt=media&#x26;token=105c5ea2-361d-4e4d-8098-0dd8b1ebc100" alt=""><figcaption></figcaption></figure>

## **ไปที่เมนู Settings > Certificate Management**

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FpKPSgF0rle37tlhF0UDx%2Fimage.png?alt=media&#x26;token=a333d678-a63c-4f41-8df5-34a4e65a4021" alt=""><figcaption></figcaption></figure>

1. เลือกที่แถบ Captive Portal
2. เลือกตามภาพ
3. ใส่ Public Key ของไฟล์ .key
4. ใส่ Public Key ของไฟล์ .crt หรือ .cert

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FrbBifp3yh8q1plg8ta7q%2Fimage.png?alt=media&#x26;token=03e6b0cf-de19-4251-bd8f-26ca61cd1ea3" alt=""><figcaption></figcaption></figure>

<h2 align="center"><strong>เพิ่ม NAS ID</strong></h2>

Copy Mac address ของ Interface LAN ไปใส่บน Web Seara&#x20;

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2FUiMx7DzWZtdf4CBF3LuT%2Fimage.png?alt=media&#x26;token=f9ab3d13-47d1-458d-b4df-0a8a55c7d7f7" alt=""><figcaption></figcaption></figure>

**วิธีเพิ่ม NAS ID บนเว็บ Seara**

1. ไปที่ link Domain ของ Seara ที่ได้รับจาก Email ตัวอย่างเช่น [https://demo.seara-portal.net](https://demo.seara-dev.net/)
2. Add Location :   เข้าไปที่ Menu Site บน Seara แล้วเพิ่มสถานที่    วิธี [Add Location](https://manual.seara.biz/site-management/site-management-1/location)
3. Add Device :   เข้าไปที่ Menu Site บน Seara แล้วกด เพิ่ม NAS  จากนั้นทำตามขั้นตอนดังในภาพ

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2F2QGkr5vzHaIKCiRT3o4j%2Fimage.png?alt=media&#x26;token=1c7ee2e0-03fc-4a15-a586-6ff50ec0dbe0" alt=""><figcaption></figcaption></figure>

**การตั้งค่า Endpoint บน Seara**

**endpoint:**[**https://peplink.captive-portal.net:8000/portal.cgi**](https://peplink.captive-portal.net:8000/portal.cgi)

**orig\_url:**[**https://google.com**](https://google.com)  **(หรือ web อื่นที่ต้องการให้ redirec หลังจาก Login สำเร็จ)**

<figure><img src="https://71561992-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M-OjnKhMWq_4gll0i0s%2Fuploads%2Fjm0gDWXG28k725kAEL70%2Fimage.png?alt=media&#x26;token=04d170c8-1de4-47fa-8fb9-b3eb7f9e6769" alt=""><figcaption></figcaption></figure>
