Project

General

Profile

Actions

Bug #13507

open

Copying multiple rules at the same time results in new rules with duplicate ridentifiers

Added by Marcos M 2 months ago. Updated 12 days ago.

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

100%

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

Description

Tested on 22.05 and 22.11.

  1. Select two rules on the LAN
  2. Click the Copy button on the bottom of the page
  3. Select a new interface
  4. Click Paste

Results

anchor "userrules/*" 
pass  in  quick  on $LAN inet from 192.168.1.1/32 to any ridentifier 0100000101 keep state label "USER_RULE: Default allow LAN to any rule" label "id:0100000101" 
pass  in  quick  on $LAN inet from 192.168.1.1/32 to any ridentifier 1663817371 keep state label "USER_RULE: Default allow LAN to any rule" label "id:1663817371" 
pass  in  quick  on $OPT1 inet from 192.168.2.1/32 to any ridentifier 1663817432 keep state label "USER_RULE: Default allow LAN to any rule" label "id:1663817432" 
pass  in  quick  on $OPT1 inet from 192.168.2.1/32 to any ridentifier 1663817432 keep state label "USER_RULE: Default allow LAN to any rule" label "id:1663817432" 


Related issues

Has duplicate Bug #13518: Firewall Rules get duplicated <rule> <id></id><tracker>1664099550</tracker> after Copy Tracking IDDuplicate

Actions
Actions #1

Updated by Marcos M 2 months ago

Note: This can lead to the firewall logs showing logs for a different match, e.g. logging a block rule with the description of a pass rule. If possible, the fix should be retroactive.

Actions #2

Updated by Marcos M 2 months ago

  • Related to Bug #13518: Firewall Rules get duplicated <rule> <id></id><tracker>1664099550</tracker> after Copy Tracking ID added
Actions #3

Updated by Marcos M 2 months ago

  • Related to deleted (Bug #13518: Firewall Rules get duplicated <rule> <id></id><tracker>1664099550</tracker> after Copy Tracking ID)
Actions #4

Updated by Marcos M 2 months ago

  • Has duplicate Bug #13518: Firewall Rules get duplicated <rule> <id></id><tracker>1664099550</tracker> after Copy Tracking ID added
Actions #5

Updated by Jim Pingle 2 months ago

  • Target version set to 2.7.0
Actions #6

Updated by Jim Pingle about 2 months ago

  • Plus Target Version changed from 22.11 to 23.01
Actions #7

Updated by Jim Pingle 12 days ago

  • Assignee set to Jim Pingle
Actions #8

Updated by Jim Pingle 12 days ago

  • Status changed from New to In Progress

Looks like a simple fix, it's using microtime inside a loop and it should just be using that once as a starting value and increasing from there.

Actions #9

Updated by Jim Pingle 12 days ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF