Fortinet white logo
Fortinet white logo

Script Reference Guide

TCP commands

TCP commands

  • TCP:peek() — Allows you to get data from a TCP connection before connecting to a real server.

  • TCP:receive() — Allows you to get data from a TCP connection.

  • TCP:reject() — Allows you to reject a TCP connection from a client.

  • TCP:set_snat_ip(str) — Allows you to set the backend TCP connection’s source address and port.

  • TCP:set_src_key(data) — Allows you to set a source key. FortiADC uses this key to identify the TCP connection in scenarios where there are multiple clients to one real server.

  • TCP:set_dst_key(data) — Allows you to set a destination key. FortiADC uses this key to identify the TCP connection in scenarios where there are multiple clients to one real server.

  • TCP:isolate_client_close(flag) — Allows you to isolate the real server connection in the event the client connection closes. If the flag is 1, then FortiADC will not close the real server the client closes.

  • TCP:isolate_server_error(flag) — Allows you to isolate the client connection in the event of a real server error. If the flag is 1, then FortiADC will not close the client when the real server sends a RESET to FortiADC.

TCP commands

TCP commands

  • TCP:peek() — Allows you to get data from a TCP connection before connecting to a real server.

  • TCP:receive() — Allows you to get data from a TCP connection.

  • TCP:reject() — Allows you to reject a TCP connection from a client.

  • TCP:set_snat_ip(str) — Allows you to set the backend TCP connection’s source address and port.

  • TCP:set_src_key(data) — Allows you to set a source key. FortiADC uses this key to identify the TCP connection in scenarios where there are multiple clients to one real server.

  • TCP:set_dst_key(data) — Allows you to set a destination key. FortiADC uses this key to identify the TCP connection in scenarios where there are multiple clients to one real server.

  • TCP:isolate_client_close(flag) — Allows you to isolate the real server connection in the event the client connection closes. If the flag is 1, then FortiADC will not close the real server the client closes.

  • TCP:isolate_server_error(flag) — Allows you to isolate the client connection in the event of a real server error. If the flag is 1, then FortiADC will not close the client when the real server sends a RESET to FortiADC.