Firewall
Inspect each request to your Workloads before your Application receives it, and stop attacks, abusive clients, and unwanted traffic.
Firewall is a Platform Resource that inspects the requests to your Workloads before your Application receives them, on Azion’s distributed infrastructure. A web firewall is a checkpoint in front of an application: it compares each request with rules and stops the requests they catch. A Firewall can match requests by source with Network Shield, detect attacks with Web Application Firewall (WAF), and detect automated clients with Bot Manager. Use Firewall to deny a path or a hostname, limit each client’s request rate, answer with a custom response, or run your own Function.
Firewall offers these nested resources and features:
- Network Shield lets a rule decide by where a request comes from: a list of IP addresses and ranges, Autonomous System Numbers (ASNs), or countries. Use it to block known abusive networks, allow only your own networks, or block Tor exit nodes.
- WAF is a good fit when your Application takes input an attacker can abuse, such as a form or an API body. A rule applies it to the paths you choose, where it can log threats before it blocks them.
- Bot Manager is a good fit when automation such as credential stuffing or scraping reaches an Application that also serves people. It runs as a Function on the Firewall, so a rule decides which requests it checks.
- Functions for Firewall lets a rule run your own JavaScript on a request, to deny it, drop it, answer it, or add headers. Use it when your protection logic needs more than the criteria and behaviors of a rule.
Request path
Creating a Firewall protects nothing: a Firewall inspects only the requests of a Workload whose deployment sets it. A Firewall has no domain of its own, so several Workloads can share one, and each change to its rules reaches all of them.
The diagram follows a request through the Firewall. Solid arrows carry the request, and dotted arrows carry the response. Each label starts with the number of its step below.
- A client requests a domain of a Workload, and the Workload’s deployment sets the Firewall and the Application that serve it. The Firewall receives the request first.
- The Firewall runs its rules in order. Each rule compares its criteria with the request, and a rule whose criteria do not match applies nothing.
- A rule whose criteria match applies its behaviors. A behavior that stops the request, such as Deny (403 Forbidden), answers the client or closes the connection, and no later rule runs. Set WAF and Run Function hand the request to WAF or to a Function Instance, and either one can stop it too.
- A request that no rule stops reaches the Application, which never receives a request that a rule stopped.
- The Application processes the request, and its response reaches the client.