Skip to content

Changes to accept SSH/SNMP/Telemetry from GIL IP for multi-asic platforms#398

Merged
abdosi merged 2 commits into
sonic-net:masterfrom
abdosi:abdosi/caclmgrd-gil-acl-multiasic
Jun 23, 2026
Merged

Changes to accept SSH/SNMP/Telemetry from GIL IP for multi-asic platforms#398
abdosi merged 2 commits into
sonic-net:masterfrom
abdosi:abdosi/caclmgrd-gil-acl-multiasic

Conversation

@abdosi

@abdosi abdosi commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

For multi-asic platforms, add FORWARD chain iptables rules to allow SSH/SNMP/Telemetry connections from the GIL (Global In-band Link) IP (namespace management IP) in non-default namespaces.

Changes

  • Add FORWARD ACCEPT rules sourced from namespace_mgmt_ip/namespace_mgmt_ipv6 for each ACL service with multi_asic_ns_to_host_fwd=True in non-default namespaces
  • Change ACL rule chain from INPUT to FORWARD for non-default namespace services with multi_asic_ns_to_host_fwd=True
  • Add FORWARD DROP rules in non-default namespaces when control plane ACLs are configured

Motivation

On multi-asic chassis platforms, connections from the GIL IP are forwarded through the namespace network stack rather than directly received as INPUT, so FORWARD chain rules are needed to allow and restrict these connections properly.

…orms

For multi-asic platforms, add FORWARD chain iptables rules to allow
SSH/SNMP/Telemetry connections from the GIL (Global In-band Link) IP
(namespace management IP) in non-default namespaces. Also adds FORWARD
chain DROP rules to block other forwarded traffic when control plane
ACLs are configured.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Add unit tests covering the three changes introduced for multi-asic
GIL IP ACL support in caclmgrd:

1. GIL FORWARD ACCEPT rules: Verify FORWARD ACCEPT rules are generated
   from namespace_mgmt_ip/ipv6 for SSH and SNMP (multi_asic_ns_to_host_fwd=True)
   in non-default namespaces, and NOT for NTP (multi_asic_ns_to_host_fwd=False).

2. ACL FORWARD chain: Verify SSH/SNMP ACL rules use FORWARD chain in
   non-default namespaces, while NTP still uses INPUT.

3. FORWARD DROP: Verify FORWARD DROP rules are appended in non-default
   namespaces when ctrl-plane ACL rules exist.

4. Default namespace regression: Verify SSH uses INPUT chain and no
   FORWARD DROP is added for the default namespace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@abdosi abdosi merged commit 6581891 into sonic-net:master Jun 23, 2026
6 checks passed
@abdosi abdosi deleted the abdosi/caclmgrd-gil-acl-multiasic branch June 23, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants