Skip to content

Port forwarding allows invalid protocol selection with "ALL" and still shows port fields #1317

@cotosso

Description

@cotosso

Description:

When creating a port forward rule, selecting the "ALL" protocol from the dropdown should imply that the rule applies to all protocols and ports. In this case, the port fields should be hidden or disabled, as they are irrelevant.

However, the UI currently allows:

  • Selecting "ALL" alone while still displaying the port fields.
  • Selecting "ALL" together with other protocols (e.g., TCP, UDP), which is inconsistent and leads to confusing behavior.

This can easily result in misconfigured rules where users believe they are opening only specific ports (e.g., 53 TCP/UDP), but instead end up forwarding all ports and all protocols, which is incorrect and potentially dangerous.

Steps to Reproduce:

  1. Go to Port Forwarding and create a new rule.

  2. In the protocol dropdown:

    • Select only ALL, or
    • Select ALL along with other protocols (e.g., TCP, UDP).
  3. Observe that the port fields are still shown and editable.

Expected Behavior:

  • Selecting ALL should disable/hide port fields.
  • ALL should not be selectable together with other protocols.

Actual Behavior:

  • Port fields remain visible even when ALL is selected.
  • UI allows invalid protocol combinations.

Components:

NethSecurity 8-24.10.0-ns.1.6.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

In Progress 🛠

Relationships

None yet

Development

No branches or pull requests

Issue actions