Outgoing firewall
Published
Updated
➡️
Control outbound traffic rules.
A fortrabbit environment can make outgoing connections on a set of standard ports, such as HTTPS, SMTP and the common database ports. Open other ports in the dashboard, per environment.
The outgoing firewall blocks connections from the app to the outside on most ports. That stops a compromised app from being used to attack other hosts.
Open ports
The ports most apps need are open by default, among them SSH, SMTP, DNS, HTTP, HTTPS, and the MySQL, PostgreSQL, Redis and MongoDB ports. The dashboard lists all of them.
To reach a service on another port, add a rule in the environment settings: a description and a single port or a port range. Rules apply to that environment only, so staging and production need one each.
Outgoing IPs
The outgoing firewall settings also show the IP addresses the environment connects from: a primary one and a fallback. Add both to the allow list of an external service, such as a hosted database or a payment API.