Set a Firewall on a domain
Set an existing Firewall on a domain from Azion Console, so that it inspects the requests to the hostnames of the domain.
You can set an existing Firewall on a domain from Azion Console, so that it inspects the requests to that domain. A domain sets the Firewall in its own settings.
Prerequisites
- A domain that serves an application. For more information, refer to Domains.
- A Firewall with the rules the domain needs. To create a Firewall, refer to Firewall quickstart. To add rules to it, refer to Create a Firewall rule.
- Access to Azion Console. For more information, refer to Access Azion Console.
Set the Firewall on the domain
To set a Firewall on a domain in Azion Console:
Access Azion Console > Domains > the domain whose requests the Firewall inspects.
In the Settings section, open the Firewall selector and choose the Firewall.
Select Save.
The Firewall then inspects the requests of that domain.
Confirm that the Firewall applies its rules
The check needs a rule of the Firewall whose answer you can recognize. This section uses a rule that denies every path that starts with /deny-test, such as the one in Create a Firewall rule.
The rules of the Firewall can take several minutes to reach the domain after you set the Firewall, and no duration is guaranteed. Until then, requests reach your application as before, and while the change propagates, answers to the same request alternate between the old result and the new one. Repeat the request until it returns 403. For more information, refer to How Firewall works.
Send a request to the denied path. Replace <your-domain> with a hostname the domain serves, such as its Azion address of the form xxxxxxxxxx.map.azionedge.net:
The Firewall refuses the request with 403. This excerpt of the response leaves out its long content-security-policy header:
The body is Azion’s default error page, headed Forbidden, and it shows your IP address and the request ID. No response header identifies the Firewall or the rule behind the refusal. Paths that no rule matches still reach your application.
If /deny-test keeps reaching your application after the change has had several minutes to propagate, refer to Troubleshoot Firewall.