Related Documentation
- J Series
- Understanding Client Groups for Firewall Authentication
- SRX Series
- Understanding Client Groups for Firewall Authentication
- Additional Information
- Junos OS Feature Support Reference for SRX Series and J Series Devices

Example: Configuring Local Users for Client Groups
This example shows how to configure a local user for client groups in a profile.
Requirements
Before you begin, create an access profile. See Example: Configuring the Access Profile.
Overview
A client group is a list of groups to which the client belongs. As with client-idle timeout, a client group is used only if the external authentication server does not return a value in its response (for example, LDAP servers do not return such information).
This example shows how to configure a local user called Client-1 for client groups G1, G2, and G3 in a profile called Managers. Within this example, client groups are configured for a client. If a client group is not defined for the client, then the client group under the access profile session-options hierarchy is used.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
set access profile Managers client Client-1
client-group G1set access profile Managers client Client-1
client-group G2set access profile Managers client Client-1
client-group G3set access profile Managers client Client-1
firewall-user password pwdset access profile Managers session-options
client-group G1set access profile Managers session-options
client-group G2set access profile Managers session-options
client-group G3Step-by-Step Procedure
The following example requires you to navigate various
levels in the configuration hierarchy. For instructions on how to
do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide
.
To configure a local user for client groups in a profile:
- Configure the firewall user and assign client groups to
it.[edit access profile Managers]
user@host# set client Client-1 client-group G1
user@host# set client Client-1 client-group G2
user@host# set client Client-1 client-group G3
user@host# set client Client-1 firewall-user password pwd - Configure client groups in the session options.[edit access profile Managers]
user@host# set session-options client-group G1
user@host# set session-options client-group G2
user@host# set session-options client-group G3
Results
Confirm your configuration by entering the show access profile Managers command from configuration mode. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
[edit]user@host# show access profile Managers
client Client-1 {
client-group [ G1 G2 G3 ];
firewall-user {
password "$9$jpimT9A0REyn6yl"; ## SECRET-DATA
}
}
session-options {
client-group [ G1 G2 G3 ];
}
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform this task:
Troubleshooting with Logs
Purpose
Use these logs to identify any issues.
Action
From operational mode, enter the show log messages command and the show log dcd command.
Related Documentation
- J Series
- Understanding Client Groups for Firewall Authentication
- SRX Series
- Understanding Client Groups for Firewall Authentication
- Additional Information
- Junos OS Feature Support Reference for SRX Series and J Series Devices


