Describe the bug
When I call PATCH on port_forward, the destination of the firewall rule is overridden with the destination of the port forward. I believe this should be equal to the target of the port forward.
To Reproduce
Steps to reproduce the behavior:
- GET /api/v2/firewall/nat/port_forwards
- Choose one of them
- In the UI, under Port Forwards, note that Dest. Address ==
destination and NAT IP == target
- In the UI, under Firewall Rules, note that Destination ==
target
- PATCH /api/v2/firewall/nat/port_forward with the chosen item. Optional: change an unrelated field, such as
description
- POST /api/v2/firewall/apply
- In the UI, under Firewall Rules, note that Destination ==
destination
- In the UI, update the Port Forward and change an unrelated field, such as
description
- Apply the changes.
- In the UI, under Firewall Rules, note that Destination ==
target. This demonstrates that the behavior of the UI is different from the behavior of the API call.
Screenshots or Response
I can attach a screenshot if needed, but would prefer to keep my Pfsense configuration private.
pfSense Version & Package Version:
- pfSense Version: 2.7.2
- Package Version: 2.3.3
Affected Endpoints:
- URL:
/api/v2/firewall/nat/port_forwards
Additional context
Add any other context about the problem here.