This section provides an example for implementing permission control on users who access the Internet through an HTTP proxy server. When a user sends a packet to access the Internet through an HTTP proxy server, the FW parses the X-Forwarded-For field in the HTTP packet to obtain the user identity and controls the permission of the user.
An enterprise has deployed a FW as the egress gateway to connect the intranet to the Internet, as shown in Figure 1.

The user management and authentication mechanisms of the FW must identify IP addresses on the intranet as users to implement user-specific behavior control and permission assignment. Requirements are as follows:
In this example, only the procedure for configuring the FW to implement permission control on users whose access the Internet through an HTTP proxy server. For details on how to configure AD SSO to enable users to go online from the FW, see the configuration examples of AD SSO.
If the HTTP proxy server does not support the addition of X-Forwarded-For field in HTTP packet, the FW cannot obtain the real IP addresses of users. As a result, the FW cannot implement user-based security control.
Configure AD SSO.
To implement permission control on users who access the Internet through an HTTP proxy server, ensure that the FW has obtained user identities before the users go online. In this example, when users log in to the AD domain, the FW has obtained user identities through the AD SSO function, namely, the users go online from the FW.

If the proxy server and users are on the same network segment, configure an authentication policy on the proxy server and then configure a user authentication policy.
Configure the security policy that references users prior to configuring the security policy that references the proxy server IP address. After the FW identifies the user identity after receiving a packet, the FW only adds the user name as the user identity. The source IP address of the packet is still the IP address of the proxy server. If you configure the security policy that references the proxy server IP address prior to configuring the security policy that references users, traffic matches the security policy that references the proxy server IP address but not the security policy that references users.
Name |
policy_sec_proxy |
|---|---|
Source Zone |
trust |
Destination Zone |
untrust |
Source Address |
10.3.0.2/32 |
Action |
Permit |
#
sysname FW
#
user-manage xff-parse proxy-ip 10.3.0.2
#
security-policy
rule name policy_sec_proxy
source-zone trust
source-address 10.3.0.2 32
destination-zone untrust
action permit
#
auth-policy
rule name auth_policy_user
source-zone trust
source-address 10.3.0.0 24
action exempt-auth
rule name auth_policy_proxy
source-zone trust
source-address 10.3.0.2 32
action none
#