---
title: "Restrict MySQL Connections"
description: "Configure Exoscale DBaaS IP filters to secure your database with SSL encryption. Allow specific IP addresses or CIDR ranges for incoming connections."
url: https://community.exoscale.com/product/dbaas/service-specific/mysql/how-to/restricting-connections/
product: "MySQL"
section: product
last_updated: 2026-06-03
---
> 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 MySQL 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:

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