> ## Documentation Index
> Fetch the complete documentation index at: https://ubicloud.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Networking

Ubicloud PostgreSQL instances are accessible over the internet by default. To
restrict connections to your database based on the IP address of the client, you
can set up firewall rules for the database. Start by going to the Networking
tab for the Database.

<img src="https://mintcdn.com/ubicloud-00f14c0d/GKSOlfUA-aUTVGTa/managed-postgresql/networking-screenshot.png?fit=max&auto=format&n=GKSOlfUA-aUTVGTa&q=85&s=0f66769cce14bc148b43861900c0d352" alt="Networking view" width="1600" height="800" data-path="managed-postgresql/networking-screenshot.png" />

Then click the "manage firewall rules using the firewall for this PostgreSQL
database" link.

<img src="https://mintcdn.com/ubicloud-00f14c0d/GKSOlfUA-aUTVGTa/managed-postgresql/firewall-networking-screenshot.png?fit=max&auto=format&n=GKSOlfUA-aUTVGTa&q=85&s=f14959f6d10ffec29032a64fb8cfca69" alt="Networking view" width="1600" height="800" data-path="managed-postgresql/firewall-networking-screenshot.png" />

You can then modify the firewall rules for this firewall the same as any other
Ubicloud firewall, see the [firewall documentation](/docs/networking/firewall) for
details.

## Adding and Modifying Firewall Rules

Firewall rules define a range of IP addresses that are allowed to connect to your
database. You can add multiple firewall rules to allow connections from different
IP ranges.

To modify an existing firewall rule, click the "Edit" button next to it, change
the IP range and description as needed and confirm the change.
You can also delete a firewall rule by clicking the "Remove" button next to it.
To add a new firewall rule, click the "Add Firewall Rule" button and fill out and
submit the form.

Any changes made to the firewall rules should typically take effect within a minute.
