Fortinet black logo

PROXY commands

PROXY commands

PROXY:set_auth_key(value) — Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

PROXY:clear_auth_key(value) — Clears the customized authentication key that was previously set to use the default key instead.

PROXY:set_auth_key(value)

Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

Syntax

PROXY:set_auth_key(value);

Arguments
Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Example
when VS_LISTENER_BIND {
AUTH_KEY = “0123456789ABCDEF0123456789ABCDEF”
result = PROXY:set_auth_key(AUTH_KEY)
If result then
Debug(“set auth key succeed\n”)
end
}

FortiADC version: V5.2

Used in events: VS_LISTENER_BIND / TCP_BIND

PROXY:clear_auth_key(value)

Clears the customized authentication key that was previously set to use the default key instead.

Syntax

PROXY:clear_auth_key(value);

Arguments
Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Example
when TCP_BIND {
result = PROXY:clear_auth_key()
}

FortiADC version: V5.2

Used in events: VS_LISTENER_BIND / TCP_BIND

PROXY commands

PROXY:set_auth_key(value) — Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

PROXY:clear_auth_key(value) — Clears the customized authentication key that was previously set to use the default key instead.

PROXY:set_auth_key(value)

Customize the crypto key FortiADC used for encrypt/decrypt authentication cookie name "FortiADCauthSI". This will increase your FortiADC's security so that others cannot forge this authentication cookie.

Syntax

PROXY:set_auth_key(value);

Arguments
Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Example
when VS_LISTENER_BIND {
AUTH_KEY = “0123456789ABCDEF0123456789ABCDEF”
result = PROXY:set_auth_key(AUTH_KEY)
If result then
Debug(“set auth key succeed\n”)
end
}

FortiADC version: V5.2

Used in events: VS_LISTENER_BIND / TCP_BIND

PROXY:clear_auth_key(value)

Clears the customized authentication key that was previously set to use the default key instead.

Syntax

PROXY:clear_auth_key(value);

Arguments
Name Description

value

A string which will be used to encrypt/decrypt the authentication cookie.

Example
when TCP_BIND {
result = PROXY:clear_auth_key()
}

FortiADC version: V5.2

Used in events: VS_LISTENER_BIND / TCP_BIND