< Home

Web: Example for Configuring User- and Application-based Security Policies

This section provides an example for configuring security policies to implement access control by user, time range, or application.

Networking Requirements

As shown in Figure 1, the FW is deployed at the network border of an enterprise as a security gateway.

Based on their ranks and functions, employees of the enterprise are divided into three user groups: senior executives, marketing employees, and R&D employees. The permissions granted to them are as follows:

  • Senior executives are granted the full Internet access permission.
  • Marketing employees are granted the access to the Internet, but they cannot play online games or watch online videos.
  • R&D employees are granted the access only to the TortoiseSVN application.
Figure 1 Networking for configuring user- and application-based security policies

Data Planning

Users in this example are already added to the FW, and the authentication configuration is complete.

Item

Data

Description

Security policy for senior executives

  • Name: policy_sec_management
  • Source zone: trust
  • Destination zone: untrust
  • User: management
  • Action: permit

Security policy policy_sec_management grants senior executives the full access to the Internet.

Security policy 1 for marketing employees

  • Name: policy_sec_marketing_1
  • Source zone: trust
  • Destination zone: untrust
  • User: marketing
  • Application: Game, Media_Sharing
  • Action: deny

Security policy policy_sec_marketing_1 does not allow marketing employees to play online games or watch online videos.

Game indicates playing online games. Media_Sharing indicates watching online videos.

Security policy 2 for marketing employees

  • Name: policy_sec_marketing_2
  • Source zone: trust
  • Destination zone: untrust
  • User: marketing
  • Action: permit

Security policy policy_sec_marketing_2 allows marketing employees to access the Internet.

Security policy 1 for R&D employees

  • Name: policy_sec_research_1
  • Source zone: trust
  • Destination zone: untrust
  • User: research
  • Application: TortoiseSVN
  • Action: permit

Security policy policy_sec_research_1 allows R&D employees to access the TortoiseSVN application for version control.

Security policy 2 for R&D employees

  • Name: policy_sec_research
  • Source zone: trust
  • Destination zone: untrust
  • User: research
  • Action: deny

Security policy policy_sec_research_2 does not allow R&D employees to access other Internet applications.

Procedure

  1. Set the IP address and security zone of the interface.
    1. Choose Network > Interface.
    2. Click of GE0/0/1> and set the parameters as follows:

      IP Address

      1.1.1.1

      Mask

      255.255.255.0

      Zone

      untrust

    3. Click OK.
    4. Repeat the previous steps to set the parameters of interface GE0/0/3.

      IP Address

      10.3.0.1

      Mask

      255.255.255.0

      Zone

      trust

  2. Configure the security policy for senior executives.
    1. Choose Policy > Security Policy > Security Policy.

    2. Click Add Security Policy.
    3. Set the parameters of the security policy for senior executives.

      Name

      policy_sec_management

      Source Zone

      trust

      Destination Zone

      untrust

      User

      /default/management

      Action

      permit

    4. Click OK.
  3. Configure security policies for marketing employees.
    1. Choose Policy > Security Policy > Security Policy.
    2. Click Add Security Policy.
    3. Set the parameters of security policy 1 for marketing employees.

      Name

      policy_sec_marketing_1

      Source Zone

      trust

      Destination Zone

      untrust

      Application

      Game, Media_Sharing

      NOTE:

      As there are various types of applications, the loading runs slowly. You are advised to enter the needed application (such as Game) in the Application drop-down list box. Wait for a moment and the options in the drop-down list box can be selected.

      User

      /default/marketing

      Action

      deny

    4. Click OK.
    5. Repeat the previous steps to set the parameters of security policy 2 for marketing employees.

      Name

      policy_sec_marketing_2

      Source Zone

      trust

      Destination Zone

      untrust

      Application

      any

      User

      /default/marketing

      Action

      permit

  4. Configure the security policy for R&D employees.
    1. Choose Policy > Security Policy > Security Policy.
    2. Click Add Security Policy.
    3. Set the parameters of the security policy 1 for R&D employees.

      Name

      policy_sec_research_1

      Source Zone

      trust

      Destination Zone

      untrust

      User

      /default/research

      Application

      TortoiseSVN

      Action

      permit

    4. Click OK.
    5. Repeat the preceding steps to configure security policy 2 for R&D employees based on the following parameters:

      Name

      policy_sec_research_2

      Source Zone

      trust

      Destination Zone

      untrust

      Application

      any

      User

      /default/research

      Action

      Deny

Verification

  1. Check whether senior executives can access the Internet without any restrictions. If yes, the security policy for senior executives is successfully configured.
  2. Check whether marketing employees can access the Internet but cannot use the game and media_sharing applications which FW defines. If yes, the security policies for marketing employees are successfully configured.
  3. Check whether R&D employees can access only the TortoiseSVN application. If yes, the security policies for R&D employees are successfully configured.
  4. Choose Monitor > Log > Policy Matching Log and check whether senior executives, marketing employees, and R&D employees match the desired security policies.

Configuration Scripts

#                                                                               
interface GigabitEthernet0/0/1                                                  
 undo shutdown
 ip address 1.1.1.1 255.255.255.0                                        
#                                                                               
interface GigabitEthernet0/0/3                                                  
 undo shutdown
 ip address 10.3.0.1 255.255.255.0                                        
#                                                                               
firewall zone trust                                                             
 add interface GigabitEthernet0/0/3                                             
#                                                                               
firewall zone untrust                                                           
 add interface GigabitEthernet0/0/1                                             
#                                                                               
security-policy                                                                 
 rule name policy_sec_management                                                
  source-zone trust                                                             
  destination-zone untrust                                                      
  user /default/management                                                              
  action permit                                                                 
 rule name policy_sec_marketing_1                                               
  source-zone trust                                                             
  destination-zone untrust                                                      
  user /default/marketing                                                               
  application category Entertainment sub-category Game                          
  application category Entertainment sub-category Media_Sharing                 
  action deny                                                                   
 rule name policy_sec_marketing_2                                               
  source-zone trust                                                             
  destination-zone untrust                                                      
  user /default/marketing                                                               
  action permit                                                                 
 rule name policy_sec_research_1                                                  
  source-zone trust                                                             
  destination-zone untrust                                                      
  user /default/research                  
  application app TortoiseSVN  
  action permit                                                      
 rule name policy_sec_research_2                                                  
  source-zone trust                                                             
  destination-zone untrust                                                      
  user /default/research                                                                
  action deny
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >