Core: Cannot save outbound NAT rule when setting destination to "any"

Created on 9 Mar 2019  路  2Comments  路  Source: opnsense/core

Describe the bug

Something broke in 19.1.3 when adding an outbound NAT rule with the destination set to "any"

The following input errors were detected:

    The field Destination bit count is required.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Firewall->NAT->Outbound'
  2. Create a new rule
  3. Set destination to "any"
  4. Press "Save"
  5. See error

Expected behavior
Rule should be saved and I should be able to reload the FW

Workaround

Set destination as single host or network. A new field is revealed which says "any", the destination is greyed out.
Be careful, every time you save the rule, it gets reset to destination = any and the bug will be back.

Environment

OPNsense 19.1.3 (amd64, OpenSSL).

bug

Most helpful comment

@oparoz thanks for reporting, should be fixable with:

opnsense-patch edc971d0

All 2 comments

@oparoz thanks for reporting, should be fixable with:

opnsense-patch edc971d0
Was this page helpful?
0 / 5 - 0 ratings