Radius

Telnet Default Authorization

Description

A RADIUS server is added to a RADIUS group which is added to an AAA list. This list is assigned to the login system’s authentication. In this scenario, the default authorization mapping is used, which maps the standard level to monitor and the privileged level to admin. The device then starts a Telnet session with itself to check that it can only run the commands that role is authorized to run.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service telnet
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX18D+nGTpaYLcFxre0su3tFQ2/dgIX/r8Pt3KjD4Pqs8ZozpuwrcyCyQUD8KDXg3pLfnbUZebLlMMQ==
set system login aaa authentication list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.203 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.203/0.203/0.203/0.000 ms

Step 3: Init a Telnet connection from DUT0 to IP address 127.0.0.1 :

admin@DUT0$ telnet 127.0.0.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.90 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testing@osdx$

Step 4: Run command service cnm restart at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 5: Run command show running at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 6: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:24:48 UTC +00:00

Step 7: Init a Telnet connection from DUT0 to IP address 127.0.0.1 :

admin@DUT0$ telnet 127.0.0.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.90 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testadmin@osdx$

Step 8: Run command service cnm restart at DUT0 and expect this output:

Show output
service inactive. doing nothing.

Step 9: Run command show running at DUT0 and expect this output:

Show output
# Teldat OSDx VM version v4.1.1.2
# Tue 30 Jul 2024 10:24:50 UTC +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.64/24
set service telnet
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX18D+nGTpaYLcFxre0su3tFQ2/dgIX/r8Pt3KjD4Pqs8ZozpuwrcyCyQUD8KDXg3pLfnbUZebLlMMQ==
set system login aaa authentication list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 10: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:24:50 UTC +00:00

Telnet Privilege Map

Description

A RADIUS server is added to a RADIUS group which is added to an AAA list. This list is assigned to login system’s authentication. Finally, the RADIUS privilege levels are mapped to locally defined roles. The device then starts a Telnet session with itself to check that it can only run the commands that role is authorized to run.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service telnet
set system aaa authorization privilege-map radius privileged role monitor
set system aaa authorization privilege-map radius standard role admin
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX19j7+WVCT7zV00rRZkAGz2DSL6W6S0wKwY12FTIgf/QTIFNIDNrvLzI4NVHm8IJdlUnUK7z/AB5lg==
set system login aaa authentication list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.169 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.169/0.169/0.169/0.000 ms

Step 3: Init a Telnet connection from DUT0 to IP address 127.0.0.1 :

admin@DUT0$ telnet 127.0.0.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.90 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testing@osdx$

Step 4: Run command service cnm restart at DUT0 and expect this output:

Show output
service inactive. doing nothing.

Step 5: Run command show running at DUT0 and expect this output:

Show output
# Teldat OSDx VM version v4.1.1.2
# Tue 30 Jul 2024 10:24:58 UTC +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.64/24
set service telnet
set system aaa authorization privilege-map radius privileged role monitor
set system aaa authorization privilege-map radius standard role admin
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX19j7+WVCT7zV00rRZkAGz2DSL6W6S0wKwY12FTIgf/QTIFNIDNrvLzI4NVHm8IJdlUnUK7z/AB5lg==
set system login aaa authentication list1
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 6: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:24:58 UTC +00:00

Step 7: Init a Telnet connection from DUT0 to IP address 127.0.0.1 :

admin@DUT0$ telnet 127.0.0.1
Show output
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Linux 6.1.90 (osdx) (pts/1)

osdx login:
Password:

Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testadmin@osdx$

Step 8: Run command service cnm restart at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 9: Run command show running at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 10: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:24:59 UTC +00:00

SSH Default Authorization

Description

A RADIUS server is added to a RADIUS group which is added to an AAA list. This list is assigned to the SSH service’s authentication. In this scenario, the default authorization mapping is used, which maps the standard level to monitor and the privileged level to admin. The device then starts an SSH session with itself to check that it can only run the commands that role is authorized to run.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service ssh aaa authentication list1
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX19UR2dGZTtpCZQclZ0UP3+zvohfTzEy2HfZXN5WLuaaD65nsdptrpCur68xWrGnelg+x/6zRERNnA==
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.262 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.262/0.262/0.262/0.000 ms

Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user testing:

admin@DUT0$ ssh testing@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '127.0.0.1' (ED25519) to the list of known hosts.
testing@127.0.0.1's password:
Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testing@osdx$

Step 4: Run command service cnm restart at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 5: Run command show running at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 6: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:25:05 UTC +00:00

Step 7: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user testadmin:

admin@DUT0$ ssh testadmin@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '127.0.0.1' (ED25519) to the list of known hosts.
testadmin@127.0.0.1's password:
Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

Last login: Tue Jul 30 10:25:05 2024 from 127.0.0.1
testadmin@osdx$

Step 8: Run command service cnm restart at DUT0 and expect this output:

Show output
service inactive. doing nothing.

Step 9: Run command show running at DUT0 and expect this output:

Show output
# Teldat OSDx VM version v4.1.1.2
# Tue 30 Jul 2024 10:25:06 UTC +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.64/24
set service ssh aaa authentication list1
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX19UR2dGZTtpCZQclZ0UP3+zvohfTzEy2HfZXN5WLuaaD65nsdptrpCur68xWrGnelg+x/6zRERNnA==
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 10: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:25:06 UTC +00:00

SSH Privilege Map

Description

A RADIUS server is added to a RADIUS group which is added to an AAA list. This list is assigned to SSH service’s authentication. Finally, the RADIUS privilege levels are mapped to locally defined roles. The device then starts an SSH session with itself to check that it can only run the commands that role is authorized to run.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service ssh aaa authentication list1
set system aaa authorization privilege-map radius privileged role monitor
set system aaa authorization privilege-map radius standard role admin
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX18vP4rB4u/1fevufRgIs2+ckXaAK7jl1ciYtspXv6cm6kRPVl3pfHC7OLj6tQFc3I8s4mjIOcDqGg==
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.103 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.103/0.103/0.103/0.000 ms

Step 3: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user testing:

admin@DUT0$ ssh testing@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '127.0.0.1' (ED25519) to the list of known hosts.
testing@127.0.0.1's password:
Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

testing@osdx$

Step 4: Run command service cnm restart at DUT0 and expect this output:

Show output
service inactive. doing nothing.

Step 5: Run command show running at DUT0 and expect this output:

Show output
# Teldat OSDx VM version v4.1.1.2
# Tue 30 Jul 2024 10:25:13 UTC +00:00
# Warning: Configuration has not been saved
set interfaces ethernet eth0 address 10.215.168.64/24
set service ssh aaa authentication list1
set system aaa authorization privilege-map radius privileged role monitor
set system aaa authorization privilege-map radius standard role admin
set system aaa group radius radgroup1 server serv1
set system aaa list list1 method 1 group radius radgroup1
set system aaa server radius serv1 address 10.215.168.1
set system aaa server radius serv1 encrypted-key U2FsdGVkX18vP4rB4u/1fevufRgIs2+ckXaAK7jl1ciYtspXv6cm6kRPVl3pfHC7OLj6tQFc3I8s4mjIOcDqGg==
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 6: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:25:13 UTC +00:00

Step 7: Init an SSH connection from DUT0 to IP address 127.0.0.1 with the user testadmin:

admin@DUT0$ ssh testadmin@127.0.0.1 option StrictHostKeyChecking=no option UserKnownHostsFile=/dev/null
Show output
Warning: Permanently added '127.0.0.1' (ED25519) to the list of known hosts.
testadmin@127.0.0.1's password:
Welcome to Teldat OSDx v4.1.1.2

This system includes free software.
Contact Teldat for licenses information and source code.

Last login: Tue Jul 30 10:25:13 2024 from 127.0.0.1
testadmin@osdx$

Step 8: Run command service cnm restart at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 9: Run command show running at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges

Step 10: Run command show date at DUT0 and expect this output:

Show output
Tue 30 Jul 2024 10:25:14 UTC +00:00