# Peplink InControl

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

<figure><img src="/files/N8BdOZ37F3EwBAxIhdfF" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/X2We3nbRPOw2KuAoiX6S" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/7KKTilRUw5BNaMS2uxrJ" 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="/files/yxXlCJ7mbomcIyKYVDXd" 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="/files/nJ9hdAEoa8OvEzuRvID9" 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="/files/IxrRy8h35wnE0CStkWYe" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/RM0YxQsIrkseW76usynj" 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="/files/l2iZq1xCaBcVcDjbtET9" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/7Fc0kETxhUaCibEVGoXs" 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="/files/QUINa892nibk4Wtb8aW7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/YuAUTLwiHOqKia824rF6" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/5Kw86yObMD33cP1ODVYg" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="/files/iWCQW4mir4scgiU6mfnU" 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](/site-management/site-management-1/location.md)
3. Add Device :   เข้าไปที่ Menu Site บน Seara แล้วกด เพิ่ม NAS  จากนั้นทำตามขั้นตอนดังในภาพ

<figure><img src="/files/m06zCzPiNGin0M6AXN67" 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="/files/rcZ8dTH5nsK2OIBoKGMc" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.seara.biz/connect-to-seara-with/peplink-incontrol.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
