Access Control
Access control lets you restrict which IP addresses can connect to your database. Only the IP ranges you add to the allowlist can reach the database, and everything else is blocked.
Open your database in the Sliplane dashboard and go to the Access Control tab to manage the list.
How It Works
Section titled “How It Works”Only the IP ranges listed in the allowlist can connect to your database. Any address that does not match a rule is blocked.
Adding a Rule
Section titled “Adding a Rule”- Open your database and go to the Access Control tab
- Click Add Rule
- Enter an IP address or CIDR range
- Optionally add a comment to describe the rule (e.g. “Office VPN” or “CI server”)
- Save your changes
Changes take effect shortly after saving.
CIDR Notation
Section titled “CIDR Notation”Rules use CIDR notation to specify IP ranges, for both IPv4 and IPv6:
| Rule | What it matches |
|---|---|
203.0.113.10 | A single IPv4 address |
203.0.113.0/24 | All IPs from 203.0.113.0 to 203.0.113.255 (256 addresses) |
0.0.0.0/0 | All IPv4 addresses |
2001:db8::1 | A single IPv6 address |
2001:db8::/48 | An IPv6 range |
::/0 | All IPv6 addresses |
Common IPv4 subnet sizes:
/32- single IP (same as specifying the IP without a prefix)/24- 256 addresses (e.g.192.168.1.0/24)/16- 65,536 addresses (e.g.172.16.0.0/16)
Managing Rules
Section titled “Managing Rules”You can update or delete existing rules at any time. Changes take effect shortly after saving.
Each rule can have an optional comment to help you remember what it is for, which is especially useful when managing multiple rules.