How to add an IP User Mapping on the Palo Alto Firewall using Command Line
12289
Created On 07/05/19 04:26 AM - Last Modified 12/11/20 17:49 PM
Objective
- Add an IP User Mapping on the Palo Alto Firewall.
- This task can be accomplished by using the command line.
- This feature can be used for a quick test without the need to actually setup User-id
Environment
- Palo Alto Networks Firewall
Procedure
- To add an IP User mapping on the Palo Alto Firewall, the following command can be used :-
> set user-id data '<uid-message><version>2.0</version><vsys>vsys1</vsys><type>update</type><payload><login><entry name="domain\uid1"ip="10.1.1.2"timeout="20"/></login></payload></uid-message>'
- This command would add an ip-user-mapping as follows :-
admin@FW> show user ip-user-mapping all IP Vsys From User IdleTimeout(s) MaxTimeout(s) --------------------------------------------- ------ ------- -------------------------------- -------------- ------------- 10.1.1.2 vsys1 XMLAPI domain\uid1 1191 1191 Total: 1 users