Fortinet white logo
Fortinet white logo

Administration Guide

Scripting

Scripting

  • The Scripting module contains tools that allow you to apply Lua Scripting for HTTP/HTTPS virtual servers and Layer 7 TCP and UDP virtual servers. These Lua Scripts allow you to perform actions that are not supported by the current built-in feature set.
  • The Server Load Balance > Scripting sub-menu contains the following configurations:

    • HTTP — From the HTTP page, you can import HTTP scripts directly in the GUI. Applicable to Layer 4 and 7 HTTP/HTTPS virtual servers, the HTTP scripts are event-triggered, allowing you to manipulate HTTP requests and responses, redirection, and dynamically change backend routing. This functionality can be combined with other HTTP related functions such as WAF, SSL, and Authentication. To get you started, FortiADC provides system predefined HTTP scripts that can be cloned for customization. For details, see Using HTTP scripting.
    • Stream — From the Stream page, you can import Stream scripts directly in the GUI. Applicable to Layer 7 TCP and UDP virtual servers, the Stream scripts are event-triggered, allowing you to manipulate the TCP/UDP request and response. For details, see Using Stream scripting.

    Scripting

    Scripting

  • The Scripting module contains tools that allow you to apply Lua Scripting for HTTP/HTTPS virtual servers and Layer 7 TCP and UDP virtual servers. These Lua Scripts allow you to perform actions that are not supported by the current built-in feature set.
  • The Server Load Balance > Scripting sub-menu contains the following configurations:

    • HTTP — From the HTTP page, you can import HTTP scripts directly in the GUI. Applicable to Layer 4 and 7 HTTP/HTTPS virtual servers, the HTTP scripts are event-triggered, allowing you to manipulate HTTP requests and responses, redirection, and dynamically change backend routing. This functionality can be combined with other HTTP related functions such as WAF, SSL, and Authentication. To get you started, FortiADC provides system predefined HTTP scripts that can be cloned for customization. For details, see Using HTTP scripting.
    • Stream — From the Stream page, you can import Stream scripts directly in the GUI. Applicable to Layer 7 TCP and UDP virtual servers, the Stream scripts are event-triggered, allowing you to manipulate the TCP/UDP request and response. For details, see Using Stream scripting.