Project

General

Profile

Actions

Bug #13545

closed

Toggling NAT rules using the button method does not enable/disable corresponding firewall rules

Added by Jens Kristensen about 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
Rules / NAT
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Default
Affected Version:
2.6.0
Affected Architecture:
amd64

Description

Check the checkbox of one or more existing NAT rule(s). Click the toggle button. Click Apply button.
The NAT rule(2) will be enabled/disabled, but the corresponding firewall rule(s) will not.
If you edit the individual NAT rules. Click the "Disable this rule" checkbox, and Save and Apply. Both the NAT rule and the firewall rule will be disabled/enabled.


Files

clipboard-202210081024-vkt4m.png (26.4 KB) clipboard-202210081024-vkt4m.png Lev Prokofev, 10/08/2022 02:24 AM
clipboard-202210090947-ypapd.png (18 KB) clipboard-202210090947-ypapd.png aleksei prokofiev, 10/09/2022 01:47 AM
clipboard-202210090947-rt5ld.png (27.7 KB) clipboard-202210090947-rt5ld.png aleksei prokofiev, 10/09/2022 01:47 AM
clipboard-202210090948-vvknk.png (454 Bytes) clipboard-202210090948-vvknk.png aleksei prokofiev, 10/09/2022 01:48 AM
clipboard-202210090954-9np0u.png (18.6 KB) clipboard-202210090954-9np0u.png aleksei prokofiev, 10/09/2022 01:54 AM
clipboard-202210090954-i2h5o.png (28 KB) clipboard-202210090954-i2h5o.png aleksei prokofiev, 10/09/2022 01:54 AM
Actions #1

Updated by Christopher Cope about 2 years ago

I am unable to reproduce this. Enabling or disabling NAT rules also does the same to the firewall rules as expected. Tested on both:

2.6.0-RELEASE (amd64)
built on Mon Jan 31 19:57:53 UTC 2022
FreeBSD 12.3-STABLE

&

22.11-DEVELOPMENT (amd64)
built on Wed Oct 05 06:04:21 UTC 2022
FreeBSD 14.0-CURRENT

You are seeing this on version 2.6, correct?

Actions #2

Updated by Lev Prokofev about 2 years ago

I can confirm it on the 22.05

The associated FW rule will be disabled/enabled if you use a blue check pictogram to toggle the NAT rule. But if you check the check box and use the "toggle" button the FW rule will not be disabled/enabled.

Actions #3

Updated by Kris Phillips about 2 years ago

Lev Prokofev wrote in #note-2:

I can confirm it on the 22.05

The associated FW rule will be disabled/enabled if you use a blue check pictogram to toggle the NAT rule. But if you check the check box and use the "toggle" button the FW rule will not be disabled/enabled.

Lev,

What browser are you using? I just tested this in Firefox on 22.05 and was able to toggle 3 Port Forward rules without issue by checking the checkbox and clicking "Toggle". I'm assuming this must be something browser-dependent due to the inconsistency.

Actions #4

Updated by aleksei prokofiev about 2 years ago

I've tested it on firefox, chrome and edge. 22.05 release.
To recreate the issue:
1. Create port forward, then automatically will created appropriate WAN rule


2. When I use in port forward tab to disable/enable this rule then appropriate WAN rule is changed as expected
3. If I use "toggle" button in port forward the appropriate WAN rule not changed

Actions #5

Updated by Jens Kristensen about 2 years ago

I want to apologize for selecting 2.6 in "affected version". Wasn't certain what to pick, so I picked the current CE.
I'm on 22.05, and Firefox.
I wasted some of your time. Sorry.

Actions #6

Updated by Christopher Cope about 2 years ago

aleksei prokofiev wrote in #note-4:

I've tested it on firefox, chrome and edge. 22.05 release.
To recreate the issue:
1. Create port forward, then automatically will created appropriate WAN rule


2. When I use in port forward tab to disable/enable this rule then appropriate WAN rule is changed as expected
3. If I use "toggle" button in port forward the appropriate WAN rule not changed

Thanks for the detialed steps to reproduce. I can confirm that on 22.11 as well.

Jens Kristensen wrote in #note-5:

I want to apologize for selecting 2.6 in "affected version". Wasn't certain what to pick, so I picked the current CE.
I'm on 22.05, and Firefox.
I wasted some of your time. Sorry.

No worries. We appreciate the report.

Actions #7

Updated by Christopher Cope about 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Christopher Cope
Actions #8

Updated by Christopher Cope about 2 years ago

  • Status changed from In Progress to Pull Request Review
Actions #9

Updated by Danilo Zrenjanin about 2 years ago

Tested the patch against:

2.7.0-DEVELOPMENT (amd64)
built on Fri Nov 04 06:05:19 UTC 2022
FreeBSD 14.0-CURRENT

The toggle button worked as expected. It enabled/disabled NAT and appropriate Interface rule.

Actions #10

Updated by Christopher Cope about 2 years ago

  • Status changed from Pull Request Review to Feedback

Merged.

Actions #11

Updated by Christopher Cope about 2 years ago

  • % Done changed from 0 to 100
Actions #12

Updated by Jim Pingle almost 2 years ago

  • Subject changed from Toggle existing NAT rule, does not enable/disable the corresponding firewall rule. to Toggling NAT rules using the button method does not enable/disable corresponding firewall rules
  • Target version set to 2.7.0
  • Plus Target Version set to 23.01
Actions #13

Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved

Works as expected. I could reproduce the problem on 22.05, but performing the same test on the current 23.01 snapshot succeeds.

Actions

Also available in: Atom PDF