ezgh waf <command>A WAF inspects the requests a load balancer’s http and https listeners receive, and blocks the ones its rules match; tcp and tls listeners aren’t inspected. Its rules of your own run first, top to bottom: they match the client’s address, network (ASN) or country, or a request’s path, query, method, a header, a cookie or the first 16 KB of a request body, and allow, block, log or rate limit it per client address. Then the managed rule sets it runs, which EZGH keeps up to date (ezgh waf managed-rule-sets list). A WAF or managed rule set in log mode (Log only) records what it would block, and blocks nothing.
Attach a WAF with ezgh lb load-balancers update <load-balancer> --waf <waf_…>.
Everything is in a project (--project, EZGH_PROJECT or the profile’s). <waf> is its ID (waf_…) or UUID.
Flags
This command also takes the global flags.
Subcommands
| Command | Description |
|---|---|
ezgh waf create |
Create a WAF |
ezgh waf delete |
Delete a WAF |
ezgh waf get |
Show a WAF |
ezgh waf list |
List the project’s WAFs |
ezgh waf managed-rule-sets |
Managed rule sets |
ezgh waf rules |
A WAF’s rules of your own |
ezgh waf update |
Change a WAF |