Configure Security Settings for NSX by Using CLI Commands
You configure NSX Manager to back up audit records to a logging server. Also, you configure NSX Edge nodes to back up audit records to a central audit server.
- VMW-NSX-01401Synchronize internal information system clocks using redundant authoritative time sources.
- Open the VM console of the NSX Manager appliance in vCenter Server and log in with credentials authorized for administration.
- Run the following commands:#remove any unknown or nonauthoritative NTP servers del ntp-server <server-ip or server-name> #configure ntp server set ntp-server <server-ip or server-name>
- VMW-NSX-01414Configure NSX Manager to send logs to a central log server.You can configure the logging server with one of the following protocols: TCP, LI-TLS, or TLS. If you use the protocls TLS or LI-TLS to configure a secure connection to a log server, the server and client certificates must be stored in the/image/vmware/nsx/file-store/folder on each NSX Manager appliance.
- Open the VM console of the NSX Manager appliance in vCenter Server and log in with credentials authorized for administration.
- If you want to configure a TCP or UDP syslog server, runset logging-serverand press Enter.<server-ip_or_server-name>proto<tcp or udp>level info
- If you want to configure a TLS syslog server, runset logging-serverand press Enter.<server-ip_or_server-name>proto tls level info serverca ca.pem clientca ca.pem certificate cert.pem key key.pem
- If you want to configure an LI-TLS server, runset logging-serverand press Enter.<server-ip_or_server-name>proto li-tls level info serverca root-ca.crt
- VMW-NSX-01421Enforce a minimum of 15 characters for password length on the NSX Manager nodes.
- Open the VM console of an NSX Manager appliance in vCenter Server and log in with credentials authorized for administration.
- Run the command and press Enter.set password-complexity minimum-password-length 15
- VMW-NSX-01530NSX Manager must require that when a password is changed, the characters are changed in at least eight of the positions within the password.
- Open the VM console of an NSX Manager appliance in vCenter Server and log in with credentials authorized for administration.
- Run the command and press Enter.set password-complexity max-repeats 8
- Configure login sessions settings for the NSX Manager.
- Open the VM console of the NSX Manager appliance in vCenter Server and log in with credentials authorized for administration.
- VMW-NSX-01416Configure session lock after a 10-minute period of inactivity.Set service http session-timeout 600
- VMW-NSX-01418Prevent an account from further log in attempts by using the UI or API after three consecutive failed log in attempts.Set auth-policy api max-auth-failures 3
- VMW-NSX-01498Prevent an account from further log in attempts by using CLI after three consecutive failed log in attempts.set auth-policy cli max-auth-failures 3