Fortinet white logo
Fortinet white logo

Script Reference Guide

TCP:reject()

TCP:reject()

Allows the user to reject a TCP connection from a client.

Syntax

TCP:reject();

Arguments

N/A

Events

Applicable in TCP_ACCEPTED.

Example

when TCP_ACCEPTED {
--check if the st is true or false;
If st then
TCP:reject();
end
}

Supported Version

FortiADC version 5.0.x and later.

TCP:reject()

TCP:reject()

Allows the user to reject a TCP connection from a client.

Syntax

TCP:reject();

Arguments

N/A

Events

Applicable in TCP_ACCEPTED.

Example

when TCP_ACCEPTED {
--check if the st is true or false;
If st then
TCP:reject();
end
}

Supported Version

FortiADC version 5.0.x and later.