Fortinet black logo

CLI Reference

config web-proxy global

config web-proxy global

Configure Web proxy global settings.

config web-proxy global
    Description: Configure Web proxy global settings.
    set always-learn-client-ip [enable|disable]
    set fast-policy-match [enable|disable]
    set forward-proxy-auth [enable|disable]
    set forward-server-affinity-timeout {integer}
    set ldap-user-cache [enable|disable]
    set learn-client-ip [enable|disable]
    set learn-client-ip-from-header {option1}, {option2}, ...
    set learn-client-ip-srcaddr <name1>, <name2>, ...
    set learn-client-ip-srcaddr6 <name1>, <name2>, ...
    set log-app-id [enable|disable]
    set log-forward-server [enable|disable]
    set log-policy-pending [enable|disable]
    set max-message-length {integer}
    set max-request-length {integer}
    set max-waf-body-cache-length {integer}
    set policy-category-deep-inspect [enable|disable]
    set proxy-fqdn {string}
    set proxy-transparent-cert-inspection [enable|disable]
    set request-obs-fold [replace-with-sp|block|...]
    set src-affinity-exempt-addr {ipv4-address-any}
    set src-affinity-exempt-addr6 {ipv6-address}
    set ssl-ca-cert {string}
    set ssl-cert {string}
    set strict-web-check [enable|disable]
    set webproxy-profile {string}
end

config web-proxy global

Parameter

Description

Type

Size

Default

always-learn-client-ip

Enable/disable learning the client's IP address from headers for every request.

option

-

disable

Option

Description

enable

Enable learning the client's IP address from headers for every request.

disable

Disable learning the client's IP address from headers for every request.

fast-policy-match

Enable/disable fast matching algorithm for explicit and transparent proxy policy.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

forward-proxy-auth

Enable/disable forwarding proxy authentication headers.

option

-

disable

Option

Description

enable

Enable forwarding proxy authentication headers.

disable

Disable forwarding proxy authentication headers.

forward-server-affinity-timeout

Period of time before the source IP's traffic is no longer assigned to the forwarding server.

integer

Minimum value: 6 Maximum value: 60

30

ldap-user-cache

Enable/disable LDAP user cache for explicit and transparent proxy user.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

learn-client-ip

Enable/disable learning the client's IP address from headers.

option

-

disable

Option

Description

enable

Enable learning the client's IP address from headers.

disable

Disable learning the client's IP address from headers.

learn-client-ip-from-header

Learn client IP address from the specified headers.

option

-

Option

Description

true-client-ip

Learn the client IP address from the True-Client-IP header.

x-real-ip

Learn the client IP address from the X-Real-IP header.

x-forwarded-for

Learn the client IP address from the X-Forwarded-For header.

learn-client-ip-srcaddr <name>

Source address name (srcaddr or srcaddr6 must be set).

Address name.

string

Maximum length: 79

learn-client-ip-srcaddr6 <name>

IPv6 Source address name (srcaddr or srcaddr6 must be set).

Address name.

string

Maximum length: 79

log-app-id

Enable/disable always log application type in traffic log.

option

-

disable

Option

Description

enable

Enable logging application type in traffic log.

disable

Disable logging application type in traffic log.

log-forward-server

Enable/disable forward server name logging in forward traffic log.

option

-

disable

Option

Description

enable

Enable logging forward server name in forward traffic log.

disable

Disable logging forward server name in forward traffic log.

log-policy-pending

Enable/disable logging sessions that are pending on policy matching.

option

-

disable

Option

Description

enable

Enable logging sessions that are pending on policy matching.

disable

Disable logging sessions that are pending on policy matching.

max-message-length

Maximum length of HTTP message, not including body.

integer

Minimum value: 16 Maximum value: 256

32

max-request-length

Maximum length of HTTP request line.

integer

Minimum value: 2 Maximum value: 64

8

max-waf-body-cache-length

Maximum length of HTTP messages processed by Web Application Firewall.

integer

Minimum value: 1 Maximum value: 1024

1

policy-category-deep-inspect

Enable/disable deep inspection for application level category policy matching.

option

-

enable

Option

Description

enable

Enable deep inspection for application level category policy matching.

disable

Disable deep inspection for application level category policy matching.

proxy-fqdn

Fully Qualified Domain Name to connect to the explicit web proxy.

string

Maximum length: 255

default.fqdn

proxy-transparent-cert-inspection

Enable/disable transparent proxy certificate inspection.

option

-

disable

Option

Description

enable

Enable proxying certificate inspection in transparent mode.

disable

Disable proxying certificate inspection in transparent mode.

request-obs-fold

Action when HTTP/1.x request header contains obs-fold.

option

-

keep

Option

Description

replace-with-sp

Replace CRLF in obs-fold with SP in the request header for HTTP/1.x.

block

Block HTTP/1.x request with obs-fold.

keep

Keep obs-fold in the request header for HTTP/1.x. There are known security risks.

src-affinity-exempt-addr

IPv4 source addresses to exempt proxy affinity.

ipv4-address-any

Not Specified

src-affinity-exempt-addr6

IPv6 source addresses to exempt proxy affinity.

ipv6-address

Not Specified

ssl-ca-cert

SSL CA certificate for SSL interception.

string

Maximum length: 35

Fortinet_CA_SSL

ssl-cert

SSL certificate for SSL interception.

string

Maximum length: 35

Fortinet_Factory

strict-web-check

Enable/disable strict web checking to block web sites that send incorrect headers that don't conform to HTTP 1.1.

option

-

disable

Option

Description

enable

Enable strict web checking.

disable

Disable strict web checking.

webproxy-profile

Name of the web proxy profile to apply when explicit proxy traffic is allowed by default and traffic is accepted that does not match an explicit proxy policy.

string

Maximum length: 63

config web-proxy global

config web-proxy global

Configure Web proxy global settings.

config web-proxy global
    Description: Configure Web proxy global settings.
    set always-learn-client-ip [enable|disable]
    set fast-policy-match [enable|disable]
    set forward-proxy-auth [enable|disable]
    set forward-server-affinity-timeout {integer}
    set ldap-user-cache [enable|disable]
    set learn-client-ip [enable|disable]
    set learn-client-ip-from-header {option1}, {option2}, ...
    set learn-client-ip-srcaddr <name1>, <name2>, ...
    set learn-client-ip-srcaddr6 <name1>, <name2>, ...
    set log-app-id [enable|disable]
    set log-forward-server [enable|disable]
    set log-policy-pending [enable|disable]
    set max-message-length {integer}
    set max-request-length {integer}
    set max-waf-body-cache-length {integer}
    set policy-category-deep-inspect [enable|disable]
    set proxy-fqdn {string}
    set proxy-transparent-cert-inspection [enable|disable]
    set request-obs-fold [replace-with-sp|block|...]
    set src-affinity-exempt-addr {ipv4-address-any}
    set src-affinity-exempt-addr6 {ipv6-address}
    set ssl-ca-cert {string}
    set ssl-cert {string}
    set strict-web-check [enable|disable]
    set webproxy-profile {string}
end

config web-proxy global

Parameter

Description

Type

Size

Default

always-learn-client-ip

Enable/disable learning the client's IP address from headers for every request.

option

-

disable

Option

Description

enable

Enable learning the client's IP address from headers for every request.

disable

Disable learning the client's IP address from headers for every request.

fast-policy-match

Enable/disable fast matching algorithm for explicit and transparent proxy policy.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

forward-proxy-auth

Enable/disable forwarding proxy authentication headers.

option

-

disable

Option

Description

enable

Enable forwarding proxy authentication headers.

disable

Disable forwarding proxy authentication headers.

forward-server-affinity-timeout

Period of time before the source IP's traffic is no longer assigned to the forwarding server.

integer

Minimum value: 6 Maximum value: 60

30

ldap-user-cache

Enable/disable LDAP user cache for explicit and transparent proxy user.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

learn-client-ip

Enable/disable learning the client's IP address from headers.

option

-

disable

Option

Description

enable

Enable learning the client's IP address from headers.

disable

Disable learning the client's IP address from headers.

learn-client-ip-from-header

Learn client IP address from the specified headers.

option

-

Option

Description

true-client-ip

Learn the client IP address from the True-Client-IP header.

x-real-ip

Learn the client IP address from the X-Real-IP header.

x-forwarded-for

Learn the client IP address from the X-Forwarded-For header.

learn-client-ip-srcaddr <name>

Source address name (srcaddr or srcaddr6 must be set).

Address name.

string

Maximum length: 79

learn-client-ip-srcaddr6 <name>

IPv6 Source address name (srcaddr or srcaddr6 must be set).

Address name.

string

Maximum length: 79

log-app-id

Enable/disable always log application type in traffic log.

option

-

disable

Option

Description

enable

Enable logging application type in traffic log.

disable

Disable logging application type in traffic log.

log-forward-server

Enable/disable forward server name logging in forward traffic log.

option

-

disable

Option

Description

enable

Enable logging forward server name in forward traffic log.

disable

Disable logging forward server name in forward traffic log.

log-policy-pending

Enable/disable logging sessions that are pending on policy matching.

option

-

disable

Option

Description

enable

Enable logging sessions that are pending on policy matching.

disable

Disable logging sessions that are pending on policy matching.

max-message-length

Maximum length of HTTP message, not including body.

integer

Minimum value: 16 Maximum value: 256

32

max-request-length

Maximum length of HTTP request line.

integer

Minimum value: 2 Maximum value: 64

8

max-waf-body-cache-length

Maximum length of HTTP messages processed by Web Application Firewall.

integer

Minimum value: 1 Maximum value: 1024

1

policy-category-deep-inspect

Enable/disable deep inspection for application level category policy matching.

option

-

enable

Option

Description

enable

Enable deep inspection for application level category policy matching.

disable

Disable deep inspection for application level category policy matching.

proxy-fqdn

Fully Qualified Domain Name to connect to the explicit web proxy.

string

Maximum length: 255

default.fqdn

proxy-transparent-cert-inspection

Enable/disable transparent proxy certificate inspection.

option

-

disable

Option

Description

enable

Enable proxying certificate inspection in transparent mode.

disable

Disable proxying certificate inspection in transparent mode.

request-obs-fold

Action when HTTP/1.x request header contains obs-fold.

option

-

keep

Option

Description

replace-with-sp

Replace CRLF in obs-fold with SP in the request header for HTTP/1.x.

block

Block HTTP/1.x request with obs-fold.

keep

Keep obs-fold in the request header for HTTP/1.x. There are known security risks.

src-affinity-exempt-addr

IPv4 source addresses to exempt proxy affinity.

ipv4-address-any

Not Specified

src-affinity-exempt-addr6

IPv6 source addresses to exempt proxy affinity.

ipv6-address

Not Specified

ssl-ca-cert

SSL CA certificate for SSL interception.

string

Maximum length: 35

Fortinet_CA_SSL

ssl-cert

SSL certificate for SSL interception.

string

Maximum length: 35

Fortinet_Factory

strict-web-check

Enable/disable strict web checking to block web sites that send incorrect headers that don't conform to HTTP 1.1.

option

-

disable

Option

Description

enable

Enable strict web checking.

disable

Disable strict web checking.

webproxy-profile

Name of the web proxy profile to apply when explicit proxy traffic is allowed by default and traffic is accepted that does not match an explicit proxy policy.

string

Maximum length: 63