Project

General

Profile

Actions

Bug #14691

closed

Separators get shifted when copying firewall rules between interfaces

Added by Filip Bengtsson over 1 year ago. Updated 11 months ago.

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

100%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:

Description

Reproduce

Have two active interfaces, one with at least one firewall rule (hereafter called OPT1) and the other with multiple rules and separators (OPT2).

  1. Go to Firewall --> Rules --> OPT1
  2. Click the copy/duplicate icon (overlapping squares) on an existing rule
  3. Change Interface to OPT2 and save

The new rule gets added first in the list, shifting the old rules relative to the separators as described below.

Example result

Rules and separator on target interface before copying:

  • Separator A
  • Rule A1
  • Rule A2
  • Separator B
  • Rule B1
  • Rule B2

After copying, I get:

  • Separator A
  • New rule
  • Rule A1
  • Separator B
  • Rule A2
  • Rule B1
  • Rule B2

As you can see, the new rule was added on top and all separators kept their absolute position in the list, shifting them relative to the rules.

System information

2.7.0-RELEASE (amd64)
built on Wed Jun 28 03:53:34 UTC 2023
FreeBSD 14.0-CURRENT


Files

Actions

Also available in: Atom PDF