SRX

Security Poilcy

Set of rules(Rules: Permit, deny or tunnel) that determine how network traffic is controlled, inspected, and allowed or denied

Domain based policies

Policies are created to manage traffic between different security domains/zones.
For example, you might have separate zones for the internal network, the DMZ, and external networks. Policies define how traffic is allowed or denied between these zones.

Group based policies

Policies can also be based on user groups. User group policies can be configured to apply different rules based on group membership.
For example, you can create rules for specific groups of users, granting or denying access to certain resources or applications.

Authentication Table

Authentication table contains the IP addresses of active users. Each entry contains:
username, device IP(from where logged in), domainname, groups.


                1. On qa-central or dav-central.
                $ get_vsrx_tanant 
                  TenantPop: uuid1
                    srx: ip-address-1
                  TenantPop: uuid2
                    srx: ip-address-2
                  TenantPop: uuid3
                    srx: ip-address-3
                
                2. Login to any srx
                $ ssh root@ip-address-2
                Password:
                # run show services user-identification authentication-table authentication-source all
                Total entries: 8
                Key            Username       groups(Ref by policy)   state
                1.2.3.4        administrator                          Valid
                4.5.6.6        amit                                   Valid             //user=amit logged with IP
                
                # run show services user-identification authentication-table authentication-source all extensive
                Domain: test.com
                    IP: 1.2.3.4
                    username: User
                    groups: g1,g2
                    state: Valid
                    timestamp:
                    age: 150
            
Commands
IP Addresses
              > cli
              > show interfaces terse
            
JIMS Configuration

              root# cli
              root> edit

              Entering configuration mode
              root# show | display set                              //All services
              set version 10.4R
              set global interfaces 1o0 ...........   //Interfaces for connectivity
              set                                     //zones
              ..                                      //Policies
              
              # show services user-identification | display set     //for JIMS
              set services user-identification device-information authentication-source-network-access-controller
              set services user-identification device-information end-user-profile profile-name a domain-name <>
              set services user-identification device-information end-user-profile profile-name a-group device-identity string <>
              set services user-identification identity-maangement connection connect-method https
              
              delete services user-identification identity-maangement connection connect-method https        //To delete config
              
              set services user-identification identity-maangement connection port 443
              set services user-identification identity-maangement connection primary address jims-IP        //Primary
              set services user-identification identity-maangement connection primary client-id test
              set services user-identification identity-maangement connection primary client-secret test
              set services user-identification identity-maangement connection secondary address jims-IP      //Secondary
              set services user-identification identity-maangement connection secondary client-id test
              set services user-identification identity-maangement connection secondary client-secret <>
              set services user-identification identity-maangement batch-query items-per-batch 100
              set services user-identification identity-maangement batch-query query-interval 5
              
              root# deactivate services user-identification identity-management connection secondary          //Deactivate Secondary
              root# commit
              root# set services user-identification identity-maangement connection primary address jims-IP   //Set New Primary
              root# commit
              root# set services user-identification identity-maangement connection primary client-secret test
              root# commit
            
Logging

              exit
              exit
              > configure
              Entering configuration mode
              # set services user-identification identity-maangement traceoptions file test.txt
              # set services user-identification identity-maangement traceoptions flag all
              # set services user-identification identity-maangement traceoptions level all
              # exit
              Exiting configuration mode
              > exit
              > cat /var/log/test.txt
              Batch query logs
              
              set groups jims-server services user-identification identity-management traceoptions file jims_query.log
              set groups jims-server services user-identification identity-management traceoptions file size 10M
              set groups jims-server services user-identification identity-management traceoptions level all
              set groups jims-server services user-identification identity-management traceoptions flag all
              set groups jims-server services user-identification identity-management traceoptions flag jims-validator-query
              
              show log jims-query.log
              or
              goto shell prompt and open /var/log/jims-query.log
            
Counters, Status

              # run show services user-identification identity-management counters
              # run show services user-identification identity-management status
                          Primary server :
                          Address                      : ip
                          Port                         : 443
                          Source                       : Automatic
                          Interface                    : Automatic
                          Routing-instance             : Automatic
                          Connection method            : HTTPS
                          Connection status            : Online
                          Last received status message : OK (200)
                          Access token                 : <>
                          Token expire time            : 2022-01-31 16:20:08
              
                          Secondary server :
                          Address                      : ip
                          Port                         : 443
                          Source                       : Automatic
                          Interface                    : Automatic
                          Routing-instance             : Automatic
                          Connection method            : HTTPS
                          Connection status            : Online
                          Last received status message : OK (200)
                          Access token                 : <>
                          Token expire time            : 2022-01-31 16:22:19
                  
Reboot
                # reboot
            
Groups from Domain
                > cli
                > request services user-identification authentication-source jims groups domain test.com status
                node0:
                -------------------------------------------
                Server-type: JIMS
                Domain: test.com
                Groups: finished:(800 groups are Processed)
            
srx authentication table