Fortinet white logo
Fortinet white logo

Script Reference Guide

TCP:set_snat_ip(str)

TCP:set_snat_ip(str)

Allows you to set the backend TCP connection's source address and port.

Syntax

TCP:set_snat_ip(str)

Arguments

Name Description

str

A string which specifies the IP address and port.

Events

Applicable in STREAM_CLIENT_INIT.

Example

when STREAM_CLIENT_INIT { 
    TCP:set_snat_ip(IP:remote_addr()) 
} 

Supported Version

FortiADC version 6.1.1 and later.

TCP:set_snat_ip(str)

TCP:set_snat_ip(str)

Allows you to set the backend TCP connection's source address and port.

Syntax

TCP:set_snat_ip(str)

Arguments

Name Description

str

A string which specifies the IP address and port.

Events

Applicable in STREAM_CLIENT_INIT.

Example

when STREAM_CLIENT_INIT { 
    TCP:set_snat_ip(IP:remote_addr()) 
} 

Supported Version

FortiADC version 6.1.1 and later.