Figure 1 shows that the FW has a local administrator. The local administrator has some administrator permissions and can use STelnet to log in to the CLI only from a local PC for FW management and maintenance. HWTACACS server authentication takes precedence over local authentication. The FW implements local authentication on administrators only when the HWTACACS server does not respond.
Item |
Data |
|
|---|---|---|
FW |
SSH account |
sshadmin |
Authentication mode |
Password |
|
Password |
Mydevice@123 |
|
Service type |
STelnet |
|
Administrator PC |
SSH client software: PuTTY software. The PuTTY software includes the PuTTY client for the STelnet service and the SFTP client PSFTP. |
|
The prerequisite is that IP addresses of the interface and administrator PC, security zone, route, and security policies have been configured. The following example introduces content related only to the administrator.
The configuration procedure includes adding a device, adding a user, setting the user level to 3, and configuring command line authorization (the reset hwtacacs-server statistics all command is not allowed).
# interface GigabitEthernet0/0/2 ip address 172.16.0.1 255.255.255.0 # interface GigabitEthernet0/0/3 ip address 10.3.0.1 255.255.255.0 service-manage enable service-manage ssh permit # user-interface vty 0 4 authentication-mode aaa user privilege level 3 protocol inbound ssh # hwtacacs-server template hwtacacs_server hwtacacs-server authentication 172.16.0.2 49 hwtacacs-server authorization 172.16.0.2 49 hwtacacs-server shared-key cipher %@%@*y:3*ZN}.%%qcL1cCyDwlB.|@XBVMDWq'6JF(iOz2D8>A\SN%@%@ # aaa authentication-scheme hwtacacs authentication-mode hwtacacs local authorization-scheme admin_hwtacacs authorization-mode hwtacacs authorization-cmd 3 hwtacacs domain default //Method 1: In authentication domain mode, no administrator is created on the device. authentication-scheme hwtacacs authorization-scheme admin_hwtacacs hwtacacs-server hwtacacs_server service-type administrator-access manager-user sshadmin //Method 2: Create an administrator with the same name as the HWTACACS server on the device. password cipher @%@%{kD2R62'},HC+d2\#5SC'z`9LZu'ZMekWC;a4K&YNWO>z`<'@%@% service-type ssh authentication-scheme hwtacacs authorization-scheme admin_hwtacacs hwtacacs-server hwtacacs_server # stelnet server enable ssh authentication-type default password # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # security-policy rule name rule1 source-zone local destination-zone dmz destination-address 172.16.0.2 32 action permit # return