Project

General

Profile

Actions

Bug #13507

closed

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

Added by Marcos M over 1 year ago. Updated 9 months ago.

Status:
Resolved
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:
2.7.0
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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year 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 over 1 year ago

  • Target version set to 2.7.0
Actions #6

Updated by Jim Pingle over 1 year ago

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

Updated by Jim Pingle over 1 year ago

  • Assignee set to Jim Pingle
Actions #8

Updated by Jim Pingle over 1 year 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 over 1 year ago

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

Updated by Alhusein Zawi over 1 year ago

there is no duplication after copy/past the rules.

anchor "userrules/*"
pass in quick on $WAN reply-to ( em0 10.100.100.1 ) inet from any to any ridentifier 1670093227 keep state label "USER_RULE" label "id:1670093227"

pass in quick on $LAN inet proto tcp from 192.168.1.0/24 to any ridentifier 1670108040 flags S/SA keep state label "USER_RULE: test_copy" label "id:1670108040"
pass in quick on $LAN inet proto udp from 192.168.1.1 to any ridentifier 1670108176 keep state label "USER_RULE: test_UDP" label "id:1670108176"
pass in quick on $OPT2 inet proto tcp from 172.18.88.0/24 to any ridentifier 1670108187 flags S/SA keep state label "USER_RULE: test_copy" label "id:1670108187"
pass in quick on $OPT2 inet proto udp from 172.18.88.1 to any ridentifier 1670108188 keep state label "USER_RULE: test_UDP" label "id:1670108188"

23.01-DEVELOPMENT (amd64)
built on Fri Dec 02 06:04:48 UTC 2022

Actions #11

Updated by Alhusein Zawi over 1 year ago

  • Status changed from Feedback to Resolved
Actions #12

Updated by Jim Pingle over 1 year ago

  • Subject changed from Copying multiple rules at the same time results in new rules with duplicate ridentifiers to Copying multiple rules at the same time results in new rules with duplicate tracker IDs

Updating subject for release notes.

Actions #13

Updated by Jim Pingle 9 months ago

  • Affected Version set to 2.7.0
Actions

Also available in: Atom PDF