Dell Networking SONiC 사용자 역할 기반 액세스 제어
Summary: 이 문서에서는 Dell Networking SONiC의 역할 기반 액세스 제어에 대해 설명합니다.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
역할 기반 액세스 제어란 무엇입니까?
RBAC(Role-Based Access Control)는 액세스 및 권한 부여를 제어합니다. 정의된 역할에 따라 사용자에게 권한이 부여됩니다. 관리자는 작업 기능을 기반으로 사용자 역할을 생성하여 사용자에게 적절한 시스템 액세스를 허용할 수 있습니다.RBAC는 작업을 파티셔닝할 수 있도록 각 역할의 사용 권한에 제한을 두습니다.
사용자 역할은 로그인 시 사용자를 인증 및 승인하고 사용자를 EXEC 모드로 전환합니다.
각 사용자 역할은 사용자가 입력할 수 있는 명령과 사용자가 수행할 수 있는 작업을 결정하는 권한을 할당합니다. RBAC는 사용자 권한을 효율적으로 관리할 수 있는 방법을 제공합니다.
Dell Networking SONiC에서 사용 가능한 사용자 역할
| 역할 | 사용 권한 |
|---|---|
| Admin | 관리자 사용자는 시스템에 대한 전체 읽기/쓰기 액세스 권한을 가짐 즉, 모든 show 명령, Linux 셸 및 구성에 대한 전체 액세스 권한이 있습니다. |
| 연산자 | 운영자는 시스템에 대한 읽기 액세스 권한만 제한합니다. 즉, 일부 show 명령에 액세스할 수 있으나 스위치에서 구성을 수행할 수는 없습니다. |
참고: Dell SONiC 4.1에서는 두 개의 새 사용자 역할이 도입되고 동일한 사용자가 여러 역할을 가질 수 있습니다.
| 역할 | 사용 권한 |
|---|---|
| Secadmin | secadmin 사용자는 시스템의 모든 보안 관련 명령에 액세스할 수 있습니다. |
| Netadmin | netadmin 사용자는 스위치를 통해 전송되는 트래픽을 관리하는 구성 기능에 액세스할 수 있습니다. |
구성 구문:
| 구성 | 설명 |
|---|---|
| admin@DELLSONiC:~$ sonic-cli | Dell SONiC CLI 입력 |
| DELLSONiC# configure terminal | 구성 모드로 들어갑니다. |
| DELLSONiC(config)# 사용자 이름 password 역할 | 사용자 이름, 암호 및 역할을 구성합니다. |
구성된 사용자의 역할을 확인하려면 구성된 사용자 표시 명령을 사용합니다. 이 명령은 로컬로 구성된 사용자 및 역할을 보여줍니다.
샘플 출력:
DELLSONiC # show users configured ---------------------------------------------------------------------- User Role(s) ---------------------------------------------------------------------- admin1 admin oper operatorDell SONiC 4.1에서는 단일 사용자에게 여러 역할을 구성할 수 있습니다. 다음은 단일 사용자에게 여러 역할을 구성하는 방법의 예입니다.
DELLSONiC (config)# username testuser password testuser role operator,netadmin,secadmin DELLSONiC(config)# exit DELLSONiC # show users configured ---------------------------------------------------------------------- User Role(s) ---------------------------------------------------------------------- testuser netadmin,operator,secadmin
예제:
사용자 역할을 설명하기 위해 서로 다른 역할을 가진 두 사용자를 생성합니다.
- 사용자 oper 에 운영자 역할이 할당됨
- User admin1 에 관리자 역할이 할당됨
운영자 역할인 oper로 로그인합니다.
참고: 운영자, secadmin 또는 netadmin 사용자로 로그인하면 Dell Management Framework CLI에 배치됩니다.
운영자 역할을 가진 사용자 oper로 스위치에 로그인해 보겠습니다. "를 사용할 수 있습니까? "는 특정 모드에서 사용자 역할에서 지원되는 명령을 확인합니다.
sonic login: oper Password: Linux sonic 5.10.0-8-2-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud -- Unauthorized access and/or use are prohibited. All access and/or use are subject to monitoring. Help: http://azure.github.io/SONiC/ sonic# ? copy Perform file operations delete Delete the file from local filesystem dir Show folder contents exit Exit from the CLI ls Show folder contents ping Send ICMP ECHO_REQUEST to network hosts ping6 Send ICMPv6 ECHO_REQUEST to network hosts show Display running system information terminal Set terminal settings traceroute Print the route packets take to the host traceroute6 Print the route packets take to the IPv6 hostUser oper 에는 운영자 역할이 있습니다. 운영자는 시스템에 대한 읽기 액세스 권한만 가지고 있습니다. 따라서 사용자 운영 담당자는 구성을 수행할 수 없습니다. 또한 운영자는 관리자와 같은 모든 show 명령을 실행할 수 없습니다.
참고: Dell Networking SONiC 4.0.5 이하 버전에서는 운영자 역할을 가진 사용자가 구성 모드로 전환할 수 있습니다. 그러나 구성 모드에서 수행된 모든 명령은 거부됩니다.
샘플 출력:
DELLSONiC# show version | grep Soft Software Version : 4.0.5-Enterprise_Base DELLSONiC(config)# interface-naming standard % Error: Client is not authorized to perform this operation DELLSONiC(config)# hostname DeLLSoNiC % Error: Client is not authorized to perform this operation DELLSONiC(config)# exit DELLSONiC# clear logging DELLSONiC# show logging count DELLSONiC# show audit-log %Error: Client is not authorized to perform this operation DELLSONiC# show users oper ttyS0 2023-08-02 21:03이는 관리자 역할을 가진 사용자가 액세스할 수 있는 감사 로그에서도 볼 수 있습니다.
관리자 역할인 admin1 과 함께 로그인합니다.
참고: 관리자로 로깅할 때 Linux 셸에 배치됩니다. 프롬프트는 admin@sonic:~$입니다. sonic-cli 명령을 사용하여 Dell Management Framework CLI에 액세스해야 합니다.
Debian GNU/Linux 10 DELLSONiC ttyS0 DELLSONiC login: admin1 Password: admin1@DELLSONiC:~$ sonic-cli DELLSONiC# show version | grep Soft Software Version : 4.0.5-Enterprise_Base DELLSONiC# show audit-log Aug 02 21:06:01.052692+00:00 2023 DELLSONiC INFO mgmt-framework#clish[146]: User "admin1" command "startup" status - success Aug 02 21:05:53.366544+00:00 2023 DELLSONiC INFO login[27960]: pam_unix(login:session): session opened for user admin1 by LOGIN(uid=0) Aug 02 21:05:46.787657+00:00 2023 DELLSONiC INFO systemd[1]: Stopped Serial Getty on ttyS0. Aug 02 21:05:46.203662+00:00 2023 DELLSONiC INFO login[4203]: pam_unix(login:session): session closed for user oper Aug 02 21:05:45.855977+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "exit" status - success Aug 02 21:05:09.966551+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "show users" status - success Aug 02 21:04:52.730615+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "show audit-log" status - failure Aug 02 21:04:46.843617+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "show logging count" status - success Aug 02 21:04:43.031486+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "clear logging" status - success Aug 02 21:04:39.074016+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "exit" status - success Aug 02 21:04:26.504755+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "hostname DeLLSoNiC" status - failure Aug 02 21:04:11.674915+00:00 2023 DELLSONiC INFO mgmt-framework#clish[134]: User "oper" command "interface-naming standard" status - failure
잘못된 자격 증명으로 로그인합니다.
이제 관리자 역할을 가진 admin1 사용자에 대한 잘못된 자격 증명으로 로그인하겠습니다.
참고: 관리자만 감사 로그에 액세스할 수 있습니다.
DELLSONiC login: admin1 Password: ==========>Wrong password is given Login incorrect DELLSONiC login: admin1 Password: Last login: Wed Aug 2 21:05:53 UTC 2023 on ttyS0 Linux DELLSONiC 4.19.0-9-2-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud -- Unauthorized access and/or use are prohibited. All access and/or use are subject to monitoring. Help: http://azure.github.io/SONiC/ **Note the login failure for admin1 admin1@DELLSONiC:~$ sonic-cli DELLSONiC# show audit-log Aug 02 21:07:28.896480+00:00 2023 DELLSONiC INFO mgmt-framework#clish[155]: User "admin1" command "startup" status - success Aug 02 21:07:20.219496+00:00 2023 DELLSONiC INFO login[7169]: pam_unix(login:session): session opened for user admin1 by LOGIN(uid=0) Aug 02 21:07:12.635575+00:00 2023 DELLSONiC NOTICE login[7169]: FAILED LOGIN (1) on '/dev/ttyS0' FOR 'admin1', Authentication failure Aug 02 21:07:08.763918+00:00 2023 DELLSONiC NOTICE login[7169]: pam_unix(login:auth): authentication failure; logname=LOGIN uid=0 euid=0 tty=/dev/ttyS0 ruser= rhost= user=admin1
Affected Products
Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9100-ON, PowerSwitch Z9264F-ON
, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ON
...
Article Properties
Article Number: 000216535
Article Type: How To
Last Modified: 19 Sep 2023
Version: 8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.