Help Center/ Cloud Bastion Host/ User Guide/ Managing Users/ User/ Configuring User Login Restrictions
Updated on 2026-11-09 GMT+08:00

Configuring User Login Restrictions

Scenarios

You can configure the following login settings to manage user login permissions. This helps effectively reduce security risks caused by account leakage.

  • Multifactor verification: With this feature enabled, login requires a local password in combination with a second authentication factor. Commonly supported factors include SMS verification codes, OTP tokens, USB security keys, and email verification codes.
  • Validity period: specifies the period during which a user can log in to the system.
  • Login time range: controls the days and time when a user can log in to the system.
  • Login limit by IP address: controls users from specified IP addresses to log in to the system.
  • Login limit by MAC address: controls only users with specified MAC addresses on a LAN to log in to the system.

Notes and Constraints

  • MAC addresses belong to the data link layer and are used for LAN addressing. The parameter MAC Limit takes effect only on the LAN.
  • If multifactor verification is configured for the admin user, the first time login will fail. Submit a service ticket for technical support to deselect all multifactor verification options.

Prerequisites

Your role has the management permission for the User module. You can check permissions assigned to a role in Role.

Configuring Login Restrictions for a User

  1. Log in to your bastion host system.
  2. In the navigation pane on the left, choose User > User to go to the user list page.
  3. Click the login name of the target user, or click Manage in the Operation column to go to the details page.
  4. In the User Setting area, click Edit. The configuration window is displayed.

    Table 1 User login limit parameters

    Parameter

    Description

    Multifactor Verification

    Configure multifactor authentication for the user. You can select more than one authentication factor.

    • By default, no factor is selected. This means MFA is disabled, and only the local password is required for login identity authentication.
    • Mobile SMS: If this is selected, a local password and SMS verification code are required for login identity authentication. For more details, see Configuring SMS Login Verification.
    • Mobile OTP: If you select this, the user must enter both a local password and a mobile one-time password (OTP) to log in to the bastion host system. For more details, see Configuring Mobile OTP Login Verification.
    • USBKey: If you select this, the user must enter both a local password and a USB key to log in to the bastion host system. For more details, see Configuring USB Key Login.
    • OTP token: If you select this, the user must enter both a local password and a dynamic OTP to log in to the bastion host system. For more details, see Configuring OTP Token Login Verification.
    • Email Verification: If you select this, the user must enter both a local password and an email verification code to log in to the bastion host system. For more details, see Configuring Email Address Login Verification.

    IAM Login

    If you enable this, the user can directly log in to the bastion host from IAM.

    Period of validity

    Configure the validity period of the user. You need to specify the start time and expiration time.

    Logon Time Limit

    Configure the days and time when the user can log in to the bastion host. Blue indicates that the login is allowed, and white indicates that the login is forbidden.

    Edit IP limit

    Configure the IP address whitelist or blacklist to restrict user logins to the bastion host.

    • Blacklist: forbids all user logins from the specified IP address or IP address range.
    • Whitelist: allows only user logins from the specified IP address or IP address range.
    • Blacklist-Multifactor Verification for within the list: forbids users with IP addresses within the specified IP address or IP address range from logging in to the bastion host through multifactor verification.
    • Whitelist-Multifactor Verification for beyond the list: allows users with IP addresses outside the specified IP addresses or IP address range to log in to the bastion host through multifactor verification only.
    • If no IP address is specified, there is no IP-based login limit.

    MAC Limit

    Configure the MAC address whitelist or blacklist to restrict user logins to the bastion host.

    • Blacklist: forbids the users with specified MAC address to log in to the bastion host.
    • Whitelist: allows only users with specified MAC addresses to log in to the bastion host.
    • If no MAC address is specified, there is no login limit by MAC address.

  5. Click OK.

    You can view the user login configurations on the user details page.

Configuring Login Restrictions for Multiple Users At Once

  1. Log in to your bastion host system.
  2. In the navigation pane on the left, choose User > User to go to the user list page.
  3. In the user list, select one or more users.

    • Edit multifactor verification for all selected users.
      1. In the lower left corner, choose More > Edit multifactor. In the displayed window, configure parameters by referring to Table 2.
        Table 2 Editing multifactor verification

        Parameter

        Description

        Multifactor Verification

        Configure multifactor authentication for the user. You can select more than one authentication factor.

        • By default, no factor is selected. This means MFA is disabled, and only the local password is required for login identity authentication.
        • Mobile SMS: If this is selected, a local password and SMS verification code are required for login identity authentication. For more details, see Configuring SMS Login Verification.
        • Mobile OTP: If you select this, the user must enter both a local password and a mobile one-time password (OTP) to log in to the bastion host system. For more details, see Configuring Mobile OTP Login Verification.
        • USBKey: If you select this, the user must enter both a local password and a USB key to log in to the bastion host system. For more details, see Configuring USB Key Login.
        • OTP token: If you select this, the user must enter both a local password and a dynamic OTP to log in to the bastion host system. For more details, see Configuring OTP Token Login Verification.
        • Email Verification: If you select this, the user must enter both a local password and an email verification code to log in to the bastion host system. For more details, see Configuring Email Address Login Verification.

        Modify All

        If you select this, new MFA settings will be applied to all users in the department to which the currently logged-in user belongs and its subordinate departments.

      2. Confirm the settings and click OK.
    • Edit the validity period for all selected users.
      1. In the lower left corner, choose More > Edit validity period. The configuration window is displayed.

        Configure the validity period of the user. You need to specify the start time and expiration time.

      2. Confirm the settings and click OK.
    • Edit the login time limit for all selected users.
      1. In the lower left corner, choose More > Edit time limit. The configuration window is displayed.

        Configure the days and time when the user can log in to the bastion host. Blue indicates that the login is allowed, and white indicates that the login is forbidden.

      2. Confirm the settings and click OK.
    • Edit IP address login limit for all selected users.
      1. In the lower left corner, choose More > Edit IP limit. The configuration window is displayed.

        Configure the IP address whitelist or blacklist to restrict user logins to the bastion host.

        • Blacklist: forbids all user logins from the specified IP address or IP address range.
        • Whitelist: allows only user logins from the specified IP address or IP address range.
        • Blacklist-Multifactor Verification for within the list: forbids users with IP addresses within the specified IP address or IP address range from logging in to the bastion host through multifactor verification.
        • Whitelist-Multifactor Verification for beyond the list: allows users with IP addresses outside the specified IP addresses or IP address range to log in to the bastion host through multifactor verification only.
        • If no IP address is specified, there is no IP-based login limit.
      2. Confirm the settings and click OK.
    • Edit the MAC address limit for selected users.
      1. In the lower left corner, choose More > Edit MAC. The configuration window is displayed.

        Configure the MAC address whitelist or blacklist to restrict user logins to the bastion host.

        • Blacklist: forbids the users with specified MAC address to log in to the bastion host.
        • Whitelist: allows only users with specified MAC addresses to log in to the bastion host.
        • If no MAC address is specified, there is no login limit by MAC address.
      2. Confirm the settings and click OK.