# Creating VPN connections

### Prerequisites:

* สร้าง virtual router
* virtual router มีการเชื่อมต่อกับ physical network กับ virtual network

### ขั้นตอนการสร้าง:

1. หน้า **VPN** กด **Create VPN**<br>

   <figure><img src="/files/HUcT5KRBy37iZC2V2XNB" alt=""><figcaption></figcaption></figure>
2. ส่วนของ **Configure IKE**, ระบุค่า **IKE policy** สำหรับเชื่อมต่อ VPN ส่วนนี้สามารถใช้การตั้งค่าเดิมได้หากมีอยู่แล้ว หรือสร้างใหม่ได้เช่นกัน เมื่อระบุครบ กด **Next**<br>

   <figure><img src="/files/ww9tSKtSObUorO0I8qPM" alt=""><figcaption></figcaption></figure>
3. ส่วนของ **Configure IPsec**, ระบุค่า **IPsec policy** สำหรับเชื่อมต่อ VPN ส่วนนี้สามารถใช้การตั้งค่าเดิมได้หากมีอยู่แล้ว หรือสร้างใหม่ได้เช่นกัน เมื่อระบุครบ กด **Next**<br>

   <figure><img src="/files/1ICeDgsEpwHrm4GriChz" alt=""><figcaption></figcaption></figure>
4. ส่วนของ **Create endpoint groups**, เลือก virtual network แบะ remote subnet ที่ต้องการเชื่อมต่อด้วยการทำ VPN tunnel ส่วนนี้สามารถใช้การตั้งค่าเดิมได้หากมีอยู่แล้ว หรือสร้างใหม่ได้เช่นกัน เมื่อระบุครบ กด **Next**<br>

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

   <figure><img src="/files/mNSWtfUcUYs8aYPiVRky" alt=""><figcaption></figcaption></figure>
5. ส่วนของ **Configure VPN** ระบุค่าสำหรับเชื่อมต่อ VPN เข้ากับ remote gateway หลักจากนั้นกด **Next**<br>

   <figure><img src="/files/Zsbe8a1HfySQNNP1DtP4" alt=""><figcaption></figcaption></figure>
6. ส่วนของ **Summary** ตรวจสอบการตั้งค่าและกด **Create**<br>

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

   <figure><img src="/files/bcpUpYcMKHsI0FQLHX5q" 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://readyidc.gitbook.io/readyidc-docs/readme/vpn-connections/creating-vpn-connections.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.
