Fortinet white logo
Fortinet white 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 ssl-cert {string}
    set ssl-ca-cert {string}
    set fast-policy-match [enable|disable]
    set ldap-user-cache [enable|disable]
    set use-dynamic-pkey [enable|disable]
    set proxy-fqdn {string}
    set max-request-length {integer}
    set max-message-length {integer}
    set strict-web-check [enable|disable]
    set forward-proxy-auth [enable|disable]
    set forward-server-affinity-timeout {integer}
    set webproxy-profile {string}
    set learn-client-ip [enable|disable]
    set learn-client-ip-from-header [true-client-ip|x-real-ip|...]
    config learn-client-ip-srcaddr
        Description: Source address name (srcaddr or srcaddr6 must be set).
        edit <name>
        next
    end
    config learn-client-ip-srcaddr6
        Description: IPv6 Source address name (srcaddr or srcaddr6 must be set).
        edit <name>
        next
    end
    set strict-guest [enable|disable]
    set https-replacement-message [enable|disable]
    set message-upon-server-error [enable|disable]
    set trace-auth-no-rsp [enable|disable]
    set explicit-outgoing-ip {ipv4-address-any}
    set explicit-outgoing-ip6 {ipv6-address}
    set realm {string}
end

config web-proxy global

Parameter

Description

Type

Size

ssl-cert

SSL certificate for SSL interception.

string

Maximum length: 35

ssl-ca-cert

SSL CA certificate for SSL interception.

string

Maximum length: 35

fast-policy-match

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

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ldap-user-cache

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

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

use-dynamic-pkey

Enable/disable use dynamic private key in the resigned cert.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

proxy-fqdn

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

string

Maximum length: 255

max-request-length

Maximum length of HTTP request line .

integer

Minimum value: 2 Maximum value: 64

max-message-length

Maximum length of HTTP message, not including body .

integer

Minimum value: 16 Maximum value: 256

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

-

Option

Description

enable

Enable strict web checking.

disable

Disable strict web checking.

forward-proxy-auth

Enable/disable forwarding proxy authentication headers.

option

-

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

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

learn-client-ip

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

option

-

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.

strict-guest

Enable/disable strict guest user checking by the explicit web proxy.

option

-

Option

Description

enable

Enable strict guest user checking.

disable

Disable strict guest user checking.

https-replacement-message

Default action to enable or disable return replacement message for HTTPS requests.

option

-

Option

Description

enable

Display a replacement message for HTTPS requests.

disable

Do not display a replacement message for HTTPS requests.

message-upon-server-error

Enable/disable return of replacement message upon server error detection.

option

-

Option

Description

enable

Display a replacement message when a server error is detected.

disable

Do not display a replacement message when a server error is detected.

trace-auth-no-rsp

Enable/disable logging timed-out authentication requests.

option

-

Option

Description

enable

Enable logging timed-out authentication requests.

disable

Disable logging timed-out authentication requests.

explicit-outgoing-ip

Outgoing HTTP requests by explicit webproxy will have this IP address as their source address. An interface must have this IP address.

ipv4-address-any

Not Specified

explicit-outgoing-ip6

Outgoing HTTP requests by explicit webproxy will leave this IP. An interface must have this IP address.

ipv6-address

Not Specified

realm

Authentication realm.

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 ssl-cert {string}
    set ssl-ca-cert {string}
    set fast-policy-match [enable|disable]
    set ldap-user-cache [enable|disable]
    set use-dynamic-pkey [enable|disable]
    set proxy-fqdn {string}
    set max-request-length {integer}
    set max-message-length {integer}
    set strict-web-check [enable|disable]
    set forward-proxy-auth [enable|disable]
    set forward-server-affinity-timeout {integer}
    set webproxy-profile {string}
    set learn-client-ip [enable|disable]
    set learn-client-ip-from-header [true-client-ip|x-real-ip|...]
    config learn-client-ip-srcaddr
        Description: Source address name (srcaddr or srcaddr6 must be set).
        edit <name>
        next
    end
    config learn-client-ip-srcaddr6
        Description: IPv6 Source address name (srcaddr or srcaddr6 must be set).
        edit <name>
        next
    end
    set strict-guest [enable|disable]
    set https-replacement-message [enable|disable]
    set message-upon-server-error [enable|disable]
    set trace-auth-no-rsp [enable|disable]
    set explicit-outgoing-ip {ipv4-address-any}
    set explicit-outgoing-ip6 {ipv6-address}
    set realm {string}
end

config web-proxy global

Parameter

Description

Type

Size

ssl-cert

SSL certificate for SSL interception.

string

Maximum length: 35

ssl-ca-cert

SSL CA certificate for SSL interception.

string

Maximum length: 35

fast-policy-match

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

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

ldap-user-cache

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

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

use-dynamic-pkey

Enable/disable use dynamic private key in the resigned cert.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

proxy-fqdn

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

string

Maximum length: 255

max-request-length

Maximum length of HTTP request line .

integer

Minimum value: 2 Maximum value: 64

max-message-length

Maximum length of HTTP message, not including body .

integer

Minimum value: 16 Maximum value: 256

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

-

Option

Description

enable

Enable strict web checking.

disable

Disable strict web checking.

forward-proxy-auth

Enable/disable forwarding proxy authentication headers.

option

-

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

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

learn-client-ip

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

option

-

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.

strict-guest

Enable/disable strict guest user checking by the explicit web proxy.

option

-

Option

Description

enable

Enable strict guest user checking.

disable

Disable strict guest user checking.

https-replacement-message

Default action to enable or disable return replacement message for HTTPS requests.

option

-

Option

Description

enable

Display a replacement message for HTTPS requests.

disable

Do not display a replacement message for HTTPS requests.

message-upon-server-error

Enable/disable return of replacement message upon server error detection.

option

-

Option

Description

enable

Display a replacement message when a server error is detected.

disable

Do not display a replacement message when a server error is detected.

trace-auth-no-rsp

Enable/disable logging timed-out authentication requests.

option

-

Option

Description

enable

Enable logging timed-out authentication requests.

disable

Disable logging timed-out authentication requests.

explicit-outgoing-ip

Outgoing HTTP requests by explicit webproxy will have this IP address as their source address. An interface must have this IP address.

ipv4-address-any

Not Specified

explicit-outgoing-ip6

Outgoing HTTP requests by explicit webproxy will leave this IP. An interface must have this IP address.

ipv6-address

Not Specified

realm

Authentication realm.

string

Maximum length: 63