---
title: "Create IPsec connection"
method: POST
path: "/v1/network/{network_id}/ipsec"
tags: ["Networks"]
---

# Create IPsec connection

`POST /v1/network/{network_id}/ipsec`

## Path parameters

- `network_id` string, required — ID of an network

## Request body

- object
  - `name` string, required — Name of the IPsec connection
  - `remote_addrs` string[], required — Public IP addresses of the partner-side of the router/firewall
  - `remote_networks` string[], required — List of partner-side networks that are accessible through the IPsec connection

## Response `201`

Created

- NetworkIPSecConn — NetworkIPsecConn object that represents an IPsec connection into a network.
  - `ipsec_id` string, required — ID of an IPsec connection
  - `local_addrs` string[], required — Public IP addresses of the Slide Cloud gateway that manages the IPsec connection
  - `local_id` string, required — Identifier for the Slide Cloud-side of the IPsec connection
  - `local_networks` string[], required — List of Slide-side networks that are accessible through the IPsec connection
  - `name` string, required — Name of the IPsec connection
  - `psk` string, required — Pre-shared key for the IPsec connection
  - `remote_addrs` string[], required — Public IP addresses of the partner-side of the router/firewall
  - `remote_id` string, required — Identifier for the partner-side of the IPsec connection
  - `remote_networks` string[], required — List of partner-side networks that are accessible through the IPsec connection

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `409` — Conflict
- `500` — Internal server error

---

[API](https://skmtc.net/slide/apis/slide-api.md) · [All operations](https://skmtc.net/slide/apis/slide-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/slide/slide-api/revisions/c63e4b604dd1/schema)
