Skip to content

Firewall Rule - Gateway cannot be unset #202

@VIKMSTR

Description

@VIKMSTR

Describe the bug
Because the API does not support empty value for gateway attribute in firewall rule endpoint, it cannot be unset back to "*" (Default)

To Reproduce
Steps to reproduce the behavior:

  1. Create Firewall Rule with assigned gateway
  2. Update the Firewall Rule with empty "gateway" field
  3. See BAD REQUEST error with Unknown firewall rule gateway

Expected behavior
Empty value should set the gateway to the Default - the same as in GUI

Screenshots or Response
{"status":"bad request","code":400,"return":4043,"message":"Unknown firewall rule gateway","data":[]}
image

pfSense Version & Package Version:

  • pfSense Version: [e.g. pfSense 2.5.2]
  • Package Version [e.g. v1.3.3]

Affected Endpoints:

  • /api/v1/firewall/rule

Additional context
Maybe there is some hidden default value that I dont know or is not documented? :)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions