Project

General

Profile

Actions

Feature #13639

open

Add custom DSCP value in firewall rules

Added by Marc Turin about 2 years ago. Updated about 2 years ago.

Status:
Ready To Test
Priority:
Normal
Assignee:
-
Category:
Rules / NAT
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

Hi,

I am using custom DSCP values on a network and want to use custom DSCP fields in firewall rules.

Of the 64 possible DSCP values, only 24 are available in a firewall rules.

Would it be possible to add a textbox to add a custom DSCP value or add all 64 DSCP values in the dropdown?

Thanks.


Files

22.05.patch (1.65 KB) 22.05.patch Marcos M, 11/10/2022 01:47 PM
2.6.0.patch (1.65 KB) 2.6.0.patch Marcos M, 11/10/2022 01:47 PM
23.01.patch (1.65 KB) 23.01.patch Marcos M, 11/10/2022 01:47 PM
Actions #1

Updated by Marcos M about 2 years ago

See attached for a quick patch for testing only.

Actions #2

Updated by Marcos M about 2 years ago

  • Status changed from New to Ready To Test
Actions #3

Updated by Marc Turin about 2 years ago

Marcos M wrote in #note-1:

For now, here's a quick patch for testing only:
[...]

Thank for the feedback,
I made the changes, but I get the following error when I try to edit/create a rule from the web interface:

Parse error: syntax error, unexpected '$pconfig' (T_VARIABLE), expecting ')' in /usr/local/www/firewall_rules_edit.php on line 1580 
Actions #4

Updated by Marcos M about 2 years ago

Actions #5

Updated by Marcos M about 2 years ago

Odd, it worked fine here. I attached the patch for different versions - try the one specific to yours.

Actions #6

Updated by Marc Turin about 2 years ago

Marcos M wrote in #note-5:

Odd, it worked fine here. I attached the patch for different versions - try the one specific to yours.

It works! thank you! I applied version 2.6.0 of the patch and tested with custom DSCP values in the new textbox.

I will perform other tests with other DSCP values to validate the correct operation.

Thanks! :)

Actions

Also available in: Atom PDF