> For the complete documentation index, see [llms.txt](https://manual.seara.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.seara.biz/connect-to-seara-with/how-to-setup-equipment-connect-to-seara/coa-setup.md).

# COA Setup

การ setup COA สามารถทำได้โดยมีขั้นตอนหลัก 2 ขั้นตอนดังนี้

1. ตั้งค่าอุปกรณ์ Microtik ให้รองรับการรับค่า COA จาก Radius Server
2. กำหนด IP ของ Microtik ที่รับค่า COA เพิ่มเติมในส่วนของ NAS (ต้องมี PublicIP หรือ Domain)

**ขั้นตอนที่ 1** กำหนดให้อุปกรณ์ Microtik รับค่า COA จาก Radius Server&#x20;

<figure><img src="/files/ZvBJjKNJD9bYN7UsoSWD" alt=""><figcaption><p>RADIUS </p></figcaption></figure>

1.1 ไปที่เมนู RADIUS => Incoming ==>เลือก Accept และใส่ Port เป็น 3799 (COA Default Port)

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

1.2 New Firewall rule เพิ่ม New Firewall Rule ดังนี้

&#x20;**Chain: input , Protocol:udp, Dst Port:3799** โดย Action เป็น <mark style="color:green;">Accept</mark>

2.หลังจากต้ังค่าใน Microtik แล้วให้เพิ่ม Public IP ของ Microtik ใน NAS และ โดยใส่ IP Public หรือ Domain name และ กำหนด Port เป็น 3799 ตามรูป

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