---
title: "Restrict Connections"
description: "Exoscale DBaaS secures your database with default SSL encryption and customizable IP/CIDR filters. Allow single IPs or network ranges effortlessly."
url: https://community.exoscale.com/product/dbaas/service-specific/postgresql/how-to/restricting-connections/
product: "PostgreSQL"
section: product
last_updated: 2026-07-23
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# Restrict Connections

By default, Exoscale DBaaS are not accessible from the whole internet.
Data does not transmit in clear over the network
as it is SSL encrypted by default and authenticated.

To allow incoming connections to your database service,
you can add a filter allowing:

- just one IP address,
- a network range,
- or a combination of IP address and network range

To do this, update your service or create it with the IP filter, which is a comma separated
list of CIDRs:

```bash
exo dbaas update -z de-fra-1 test-pg --pg-ip-filter=a.b.c.d/32,w,x,y,z/24
```
