> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/guidance-for-enterprise/deka-gpu/deka-gpu-deka-vpn/configuration-deka-vpn-ipsec/ipsec-tunnel/add-phase-2.md).

# Add Phase 2

Phase 2 in IPSec is used to define which traffic (subnet or network) will be encrypted and transmitted through the VPN tunnel. There are steps to add Phase 2:

Go to the **VPN** list table, click **More** button and then click **Configuration** on the selected VPN.

<figure><img src="/files/0xsTT8SktYWADNz20h1f" alt=""><figcaption></figcaption></figure>

In the **IPSec** tab, scroll down to the **IPSec Tunnel** section. Click the **Add Phase 2** button.

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

Fill in the required information:

<table><thead><tr><th width="160.66668701171875">Column</th><th>Description</th></tr></thead><tbody><tr><td><strong>Remote Subnet</strong></td><td>The destination subnet configured to connect with the VPN.</td></tr><tr><td><strong>Network Size</strong></td><td>The subnet mask (e.g., /24, /16) that defines the size of the network.</td></tr><tr><td><strong>Description</strong></td><td>Additional information or notes related to the configuration.</td></tr></tbody></table>

Click **Create** to save the configuration.

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

The system will display a notification stating **“IPSec Phase 2 has been successfully created."**

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

To check if IPSec Phase 2 has been successfully added, click the **More** button and then select **IPSec Phase 2**.

<figure><img src="/files/7DKSuRYlHyYtJRmksCvG" alt=""><figcaption></figcaption></figure>

The IPSec Phase 2 window shows the list of existing Phase 2 configurations along with their details.

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