> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/1.12/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/1.12/configuration/ipsec.md).

# IPsec configuration

Most deployments use the default manual mode, `ipsec.manualConfig: true`:

```yaml
ipsec:
  enabled: true
  manualConfig: true
  strongswan:
    ipsecConfig:
      ipsec.example.conf: |
        <strongSwan connection configuration>
    ipsecSecrets:
      ipsec.example.secrets: |
        <strongSwan secret configuration>
```

Use `ipsec.strongswan.ipsecSecretRef` instead of `ipsecSecrets` for an existing
Secret.

See [Set up a VPN connection with IPsec](https://docs.cennso.com/components/cgw/1.12/tutorials/02-setup-vpn-ipsec.md).

With `ipsec.manualConfig: false`, the chart generates the strongSwan
configuration from `ipsec` values. Setting `ipsec.vti_key` enables its
chart-managed VTI setup. For route-based VPN configuration, see [Route-based
VPN](https://docs.cennso.com/components/cgw/1.12/tutorials/04-route-based-vpn.md); for the associated Pod kernel
parameters, see [Kernel parameters](https://docs.cennso.com/components/cgw/1.12/configuration/sysctls.md).
