Fortinet white logo
Fortinet white logo

Script Reference Guide

UDP:set_snat_ip(str)

UDP:set_snat_ip(str)

Allow you to set the backend UDP datagram's source address and port.

Syntax

UDP: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 { 
    UDP:set_snat_ip(IP:remote_addr()) 
} 

Supported Version

FortiADC version 6.1.1 and later.

UDP:set_snat_ip(str)

UDP:set_snat_ip(str)

Allow you to set the backend UDP datagram's source address and port.

Syntax

UDP: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 { 
    UDP:set_snat_ip(IP:remote_addr()) 
} 

Supported Version

FortiADC version 6.1.1 and later.