12.5.9. Configuring proxy servers

Commands to view and configure the proxy server parameters are located at the settings proxy level. They allow setting of parameters, such as adding HTTP via and forwarded headers, and the timeout settings for connecting to sites and downloading content. To change a proxy server parameter, use the following command (the <setting-name> is the parameter name):

Admin@UGOS# set settings proxy <setting-name>

You can change the following parameters:

Parameter

Description

add_via_enabled

Adding HTTP Via headers:

  • on.

  • off.

By default, it is disabled.

add_forwarded_enabled

Adding HTTP Forwarded headers:

  • on.

  • off.

By default, it is disabled.

add_xforwarded_enabled

Adding HTTP X-Forwarded-For headers:

  • on.

  • off.

By default, it is disabled.

http_connection_timeout

Timeout for HTTP connections. Default value: 20 seconds.

http_loading_timeout

Timeout for the HTTP content download. Default value: 60 seconds.

proxy_host_rfc

Available values:

  • relaxed: use HTTP PROXY 1.1 protocol without specifying the host parameter. This mode contradicts the RFC but may be necessary to provide compatibility with some software.

  • strict: follow the RFC. This is the default mode.

fmode_enabled

Content download acceleration mode:

  • on.

  • off.

This mode may be incompatible with some sites and is disabled by default.

smode_enabled

SYN Proxy mode:

  • on.

  • off.

This mode is enabled by default.

icap_wait_timeout

Time for a UserGate server to wait for a response from the ICAP server (in seconds). If the server response was not received within the specified time frame, and the rule action is Redirect and ignore, UserGate sends the unmodified data to the user; if the rule action is Redirect, UserGate does not send the data to the user. The default value is 10 seconds.

To view the current settings, use the following command:

Admin@UGOS# show settings proxy

or

Admin@UGOS# show settings proxy <setting-name>