Project

General

Profile

Actions

Feature #13384

closed

When Adding / Editing a Firewall Rule, the Interface option should default to the Interface from which you clicked on the Add/Edit link

Added by Michael Cropper almost 3 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

As a system admin adding/editing a Firewall Rule

I want to Add/Edit a Firewall Rule specifically against the Interface that I have navigated from before clicking the Add/Edit Rule button

So that I don't incorrectly assign the Firewall Rule to the wrong Interface


Given I am on the Firewall > Rules > {Network X} page

When I click on Add Firewall Rule, or Edit Existing Firewall Rule

Then I go through to the "firewall_rules.php?if=opt2" page

When I view the "Interface" input box (The one with this helper text beneath "Choose the interface from which packets must come to match this rule.")

Then it should default to OP2 (in this example), aka the Interface from which I choose to Add/Edit a rule on

Then I can make sure that I am only Adding/Editing the rule on the Interface it belongs and I can't accidentally Add/Edit a rule and it gets incorrectly assigned to the wrong Interface


Note: Seems to be this section of code: https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/firewall_rules_edit.php#L1316

Actions

Also available in: Atom PDF