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 Firewall pane of the Security tab: Whitelist IP Addresses, GeoIP filtering and the Advanced Settings that hold the port lists
The Firewall pane of the Security tab: Whitelist IP Addresses, GeoIP filtering and the Advanced Settings that hold the port lists

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. The Web Application Firewall is a licensed add-on with a console of its own - see Web Application Firewall.

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. A hostname (office.example.com) is accepted too: the firewall resolves it every 5 minutes, so an office on a changing IP address keeps its access. A hostname counts for the firewall only, not for the rate limiting.
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
  - office.example.com        # resolved every 5 minutes (firewall only)
firewall_country_block:
  - RU
Firewall GeoIP filtering on the Security tab
Firewall GeoIP filtering on the Security tab

Common tasks