# Connect IPsec

Here are the steps to create IPsec:

* On the Network page, select the VPN tab, select Configuration in the More column.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/21vpn/21.5%20configuration.png" alt=""><figcaption><p>Connect IPsec</p></figcaption></figure>

* In the IPsec Tunnels section on the IPsec page, click the More button, and select Connect.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/21vpn/21.66%20con-ipsec.png" alt=""><figcaption><p>Connect IPsec</p></figcaption></figure>

* The notification "IPsec connection established successfully" appears and the Phase 1 and Phase 2 tables appear.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/21vpn/21.67%20con-ipsec.png" alt=""><figcaption><p>Connect IPsec</p></figcaption></figure>

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/21vpn/21.68%20con-ipsec.png" alt=""><figcaption><p>Connect IPsec</p></figcaption></figure>

The following is an explanation of the tables in Phase 1 and Phase 2 in IPsec

Connect IPsec - Phase 1

<table><thead><tr><th width="264">Column</th><th>Information</th></tr></thead><tbody><tr><td>Local - ID</td><td>The sending VPN's floating IP address.</td></tr><tr><td>Local - Host</td><td>The sending VPN's floating IP address and the port used.</td></tr><tr><td>Remote - ID</td><td>The recipient's VPN floating IP address.</td></tr><tr><td>Remote - Host</td><td>The recipient's VPN floating IP address and port used.</td></tr><tr><td>Roles</td><td>The protocol is used to regulate the establishment of a VPN connection and exchange encryption keys in it.</td></tr></tbody></table>

Connect IPsec - Phase 2

<table><thead><tr><th width="235">Column</th><th>Information</th></tr></thead><tbody><tr><td>Local</td><td>The sender's IPsec subnet address.</td></tr><tr><td>Remote</td><td>The IPsec network device the recipient is using</td></tr><tr><td>Stats - Bytes-in</td><td>To measure the total number of bytes of data received.</td></tr><tr><td>Stats - Packets-in</td><td>To measure the total number of data packets received.</td></tr><tr><td>Stats - Bytes-out</td><td>To measure the total number of bytes of data that comes out.</td></tr><tr><td>Stats - Packets-out</td><td>To measure the total number of outgoing data packets.</td></tr></tbody></table>
