Fortinet black logo

PROXY commands

Copy Link
Copy Doc ID 65767403-7ad4-11ea-9384-00505692583a:388630
Download PDF

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.

Syntax

PROXY:set_auth_key(value);

Arguments

Name Description

value

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

Examples

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:

Used in VS_LISTENER_BIND / TCP_BIND

PROXY:clear_auth_key(value)

clear whatever customized authentication key you might have set before, then the default key is used.

Syntax

PROXY:clear_auth_key(value);

Arguments

Name Description

value

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

Examples

when TCP_BIND {

result = PROXY:clear_auth_key()

}

FortiADC version: V5.2

Used in events:

Used in 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.

Syntax

PROXY:set_auth_key(value);

Arguments

Name Description

value

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

Examples

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:

Used in VS_LISTENER_BIND / TCP_BIND

PROXY:clear_auth_key(value)

clear whatever customized authentication key you might have set before, then the default key is used.

Syntax

PROXY:clear_auth_key(value);

Arguments

Name Description

value

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

Examples

when TCP_BIND {

result = PROXY:clear_auth_key()

}

FortiADC version: V5.2

Used in events:

Used in VS_LISTENER_BIND / TCP_BIND