ezgh compute firewalls rules replace <firewall> -f rules.json [flags]Make a firewall’s rules exactly a file’s (0 to 200; a file, or - for stdin): a JSON array of rules, an object with “rules”, or a firewall as ezgh compute firewalls get <firewall> -o json prints it (rule IDs and creation times are ignored). A rule the firewall already has keeps its ID.
Part of ezgh compute firewalls rules.
Examples
ezgh compute firewalls get web -o json > web.json # edit web.json's rules
ezgh compute firewalls rules replace web -f web.jsonFlags
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --file |
string | the rules: a JSON file, or - for stdin |
This command also takes the global flags.