Skip to content

Radius Access request to use configured src interface#230

Merged
lguohan merged 1 commit intosonic-net:masterfrom
lakshmi-nexthop:radius_config_src_intf
Mar 26, 2025
Merged

Radius Access request to use configured src interface#230
lguohan merged 1 commit intosonic-net:masterfrom
lakshmi-nexthop:radius_config_src_intf

Conversation

@lakshmi-nexthop
Copy link
Copy Markdown
Contributor

@lakshmi-nexthop lakshmi-nexthop commented Mar 14, 2025

Fixes Issue: https://github.com/sonic-net/sonic-buildimage/issues/21386

Why I did it
When authentication is triggered by the DUT, source interface configured under radius needs to be used for sending access request.

How I did it
config db needs to be looked up for the source interface from the radius config and store the IP address of this interface in the pam_radius_auth file.

How to verify:

  • Configured AAA authentication, configured radius with source interface as uplink port channel.
    tb1@sonic:~$ sudo config aaa authentication login radius local
    tb1@sonic:~$ sudo config radius add -s PortChannel100 -k test -p 3 10.120.20.1
  • initiate ssh into the dut. this triggers radius auth request
  • access request is sent out with port channel ip address as source

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 14, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: lakshmi-nexthop (c0a87bb)

@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lakshmi-nexthop lakshmi-nexthop force-pushed the radius_config_src_intf branch from db3e536 to c0a87bb Compare March 15, 2025 00:15
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lguohan lguohan merged commit 5445cf6 into sonic-net:master Mar 26, 2025
1 check passed
@lakshmi-nexthop lakshmi-nexthop deleted the radius_config_src_intf branch March 19, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants