Create an IP firewall profile
Creates a new IP firewall profile.
The provided profile content is validated before creation.
Rules use a line-oriented text format: <ACTION> <PROTOCOL> <DIRECTION> <ADDRESS...> [PORTS:...] [# COMMENT].
Only rules with OUT are enforced.
Rules are evaluated top to bottom, and the first matching rule wins.
If no rule matches, traffic is denied by default.
Use the dry_run query parameter to validate the profile without persisting it.
Authentication
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Query parameters
When set to true, validates the profile rules without creating the profile.
Returns validation results only.
Request
Firewall rules in line-oriented text format, one rule per line.
Each rule follows the syntax: <ACTION> <PROTOCOL> <DIRECTION> <ADDRESS...> [PORTS:...] [# comment].
Response
Dry-run validation only (dry_run=true and validation succeeded)