> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/networking/security-group/create-a-security-group.md).

# Create a Security Group

## Instruction

### 1. สร้าง Security Group

คลิกที่ปุ่ม  + "Security Group" แล้วเลือก Customize

![Security Groups Page](/files/DPhHPMByijUEu7tAEDWE)

### 2. กรอกข้อมูลสำหรับการสร้าง Security Group ใหม่

![Create Security Group](/files/qkHidf00N2XXVegAKPSt)

**Name** : ชื่อสำหรับ Security Group

\*ตั้งได้เฉพาะตัวอักษรภาษาอังกฤษ(A-Z, a-z), ตัวเลข(0-9), hyphen(-) หรือ underscore(\_)

\*ความยาวอยู่ระหว่าง 4 - 20 ตัวอักษร

### 3. จะได้ Security Group ใหม่ขึ้นมาดังรูป

![](/files/8k9XRJHy6IHXlmBXgHDE)

### 4. Add Rule

สามารถเลือก add rule ได้ทั้ง traffic ฝั่ง ingress และ egress

![Add Rule](/files/yYdT3OFj2Xvm07y39ovG)

### 5. คลิกที่ Add Rule

หลังจากคลิกที่ add rule จะเจอหน้าในการเพิ่ม rule โดยจะมี 2 tab คือ express rules และ custom rule

โดยใน express rules จะมี template ของ rule ที่ถูกตั้งค่าไว้แล้ว สามารถเลือก add ได้เลย

และใน custom rule จะสามารถเลือกตั้งค่า rule ตามที่ต้องการได้

{% tabs %}
{% tab title="Express Rules" %}
![Express Rules](/files/yzY7yWIPl7W31Ts5S52v)
{% endtab %}

{% tab title="Custom Rules" %}
![Custom Rules](/files/4Iy7zrs9T6x99cVHMLl7)
{% endtab %}
{% endtabs %}

### 6. เมื่อทำการ Add Rule เสร็จ

จะมี Rule ใหม่ขึ้นมาดังภาพ(ทดลอง Add All TCP Rule)

![](/files/RTiQKlMUdKiIMvzRntPk)
