Documentación
Configuración de firewall y red
Dos conexiones importan para Ottoch: el tráfico entrante hacia la propia app, y el tráfico saliente de Ottoch hacia tu base de datos. Esto es lo que hay que abrir y, más importante aún, lo que hay que bloquear.
Entrante — llegar a Ottoch
Ottoch ships with Caddy, which listens on ports 80 and 443. Open both on whatever server or VM you deploy on — Caddy uses 80 for the initial Let's Encrypt HTTP challenge and 443 for HTTPS traffic afterward.
Saliente — Ottoch llega a tu base de datos
This is the direction that actually matters for database security. Ottoch connects out to your database server, from whatever machine runs the Docker container — your database is never exposed to Ottoch's infrastructure, because there isn't any: everything runs on your own server.
The practical firewall rule you want on your database server: allow
inbound connections on the database port only from the IP address of the machine
running Ottoch — not 0.0.0.0/0.
If your database is already only reachable from inside a private network or VPC that
the Ottoch server is also on, you likely don't need to change anything.
Referencia
Puertos de base de datos por defecto
Sea cual sea el puerto en el que escucha realmente tu base de datos — estos son solo los valores por defecto que Ottoch rellena al añadir una conexión.
| Base de datos | Puerto por defecto |
|---|---|
| PostgreSQL | 5432 |
| MySQL / MariaDB | 3306 |
| SQL Server | 1433 |
| Redshift | 5439 |
| ClickHouse | 8123 (HTTP) / 8443 (HTTPS) |
| Databricks | 443 (HTTPS SQL warehouse endpoint) |
Encontrar la IP para la lista blanca
If your database is on a cloud provider (RDS, Cloud SQL, managed Postgres, etc.) and you want to restrict its firewall to just your Ottoch server, you need that server's outbound public IP. From the machine running Ottoch:
curl ifconfig.me
Add that IP to your database provider's firewall/security-group allow-list. If your server is behind a NAT gateway or load balancer, use that gateway's outbound IP instead — check your cloud provider's networking docs for how to find it.
¿Sigues atascado?
Escríbenos o abre el formulario de contacto — estaremos encantados de ayudarte.