Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-126543

Stop auto-adding routes for unreachable gateways and emit warnings

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • NetworkManager
    • None
    • None
    • None
    • rhel-net-mgmt
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a system running NetworkManager with the unreachable gateway changes implemented,

      When a user executes nmcli connection modify testcon ipv4.method manual ipv4.addresses 192.0.2.10/24 ipv4.gateway 192.1.2.1 where the gateway is outside the subnet,

      Then nmcli displays a warning message before saving the connection, the connection is successfully saved and loaded by NetworkManager. Also, NetworkManager logs a warning to the journal explaining the gateway is unreachable and no automatic host route was added, and no automatic host route to 192.1.2.1 appears in the routing table.


      ( ) Integration test case is available upstream


      ( ) Code is reviewed and merged upstream


      ( ) Update release note text and also the NEWS file upstream


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a system running NetworkManager with the unreachable gateway changes implemented, When a user executes nmcli connection modify testcon ipv4.method manual ipv4.addresses 192.0.2.10/24 ipv4.gateway 192.1.2.1 where the gateway is outside the subnet, Then nmcli displays a warning message before saving the connection, the connection is successfully saved and loaded by NetworkManager. Also, NetworkManager logs a warning to the journal explaining the gateway is unreachable and no automatic host route was added, and no automatic host route to 192.1.2.1 appears in the routing table. ( ) Integration test case is available upstream ( ) Code is reviewed and merged upstream ( ) Update release note text and also the NEWS file upstream ( ) A demo is recorded
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      When a connection uses method=manual (static IP) and the configured gateway is outside the local subnet (not directly reachable), NetworkManager should stop automatically adding a host route to reach that gateway. Instead, log a clear warning explaining the gateway is unreachable and no automatic route will be added. Additionally, nmcli should display a warning when users create or modify such connections, but the connection must still be saved to avoid breaking existing workflows. The NEWS file should document this behavior change.

              nm-team Network Management Team
              rh-ee-sfaye Stanislas Faye
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: