FC_CloseIncomingFirewallPort - General Information

Overview

Type:

Function

Available as of:

SystemInterface_V1.62.4.1

Versions:

Current version

Task

Close incoming firewall port during runtime.

Description

The function can be used to close the incoming firewall port during runtime.

Interface

Input

Data type

Description

i_etProtocol

ET_Protocol

Communication protocol

i_uiPort

UINT

Communication port

i_sSource

STRING[255]

Source address of incoming packets.

Supported values are any, me, all valid IP addresses and ranges.

It is a good practice to use the value any.

i_sDestination

STRING[255]

Destination address of incoming packets.

Supported values are any, me, all valid IP addresses and ranges.

It is a good practice to use the value me.

Return Value

Data type

Description

DINT

0: The incoming port rule was successfully applied.

-1: Input value i_uiPort must be non-zero.

-2: Error detected. Unable to apply firewall rule.