Configure the Firewall on TurboStack

How to set trusted IPs, GeoIP country filtering, and the Web Application Firewall for a host on TurboStack, with the host-level YAML keys and an example.

Add trusted IPs, optional country rules, and the Web Application Firewall for a host - the firewall itself is managed for you.

The Whitelist IP / GeoIP / WAF panels on the Security tab
The Whitelist IP / GeoIP / WAF panels on the Security tab

Where to configure it

The firewall is configured at the host level:

  1. Open the host.
  2. Go to the Security tab.
  3. Use Whitelist IP Addresses for trusted clients, Firewall GeoIP Filtering for country rules, and Web Application Firewall to enable the WAF.

These settings apply to every application on the host.

YAML configuration

Required

There are no required firewall keys - every setting below is optional. Add only the ones you need.

Optional

Key Meaning
firewall_whitelist Trusted IP/Classless Inter-Domain Routing (CIDR) allow-list. Listed clients bypass rate-limiting and blocking.
firewall_country_allow GeoIP allow-list of countries permitted to reach the host.
firewall_country_block GeoIP block-list of countries denied access to the host.

The Web Application Firewall is enabled with its toggle on the Security tab; it blocks common attacks such as SQL injection and XSS.

# Host-level: trusted IPs and a country block rule
firewall_whitelist:
  - 203.0.113.10
  - 198.51.100.0/24
firewall_country_block:
  - RU
Firewall GeoIP filtering on the Security tab
Firewall GeoIP filtering on the Security tab

Common tasks