IP Filtering
2 min read
Updated 1 day ago
IP Filtering
IP filtering lets you control which IP addresses can connect to your managed database. By default, managed databases are accessible from any IP address. You can restrict access to specific IPs or ranges for added security.
Configuring IP Filters
- Navigate to your database
- Go to the Access control tab
- Add IP addresses or CIDR ranges that should be allowed
- Click Save
IP Format
You can specify individual IP addresses or CIDR ranges:
- Single IP:
203.0.113.50 - CIDR range:
203.0.113.0/24(allows 203.0.113.0 through 203.0.113.255) - Allow all:
0.0.0.0/0(default, allows connections from any IP)
Common Configurations
Allow only your Ploi Cloud applications:
Add the Ploi Cloud cluster IP ranges. You can find these in your application's network settings or via the API.
Allow your office network:
Add your office's public IP address or range to restrict access to your team.
Allow a specific server:
Add the IP of a single server that needs database access.
Best Practices
- Restrict to known IPs - Avoid allowing all IPs (
0.0.0.0/0) in production - Use CIDR ranges for dynamic IPs - If your application's IPs may change, use a broader range
- Keep the list updated - Remove old IPs when they're no longer needed
- Test after changes - Verify your application can still connect after updating filters
Troubleshooting
"Connection refused" after adding IP filters:
- Make sure you've included the IP address of the machine or application trying to connect
- Remember that your local IP may differ from what you expect — check your public IP
- CIDR notation mistakes (e.g., using
/32instead of/24) can be too restrictive
Next Steps
- Connection details - Review your connection settings
- Database users - Manage user access