Fortinet white logo
Fortinet white logo
7.2.0

Modify API Port

Modify API Port

FortiNAC uses port 443 by default for REST API. To change the port FortiNAC uses for when communicating with the FortiGate, set the port to use through CLI:

Device –setAttr –ip <FortiGate IP> –name API_Port –value <Port value>

Example:

Device –setAttr –ip x.x.x.x –name API_Port –value 2222

************************* FWF60ETK18001734 *************************

Landscape = 207375981338 00:30:48:92:5B:1A

Pollable = true, Poll interval = 10 Minutes

Type = 1.3.6.1.4.1.12356.101.1.639

Group = 1.3.6.1.4.1.12356

MAC = null

Protocol = SnmpV1

Description =

IP = xxxx

State = Active

Status = Established

DBID = 8913

Attribute Count = 14

Name = SnmpVersion value = 1 length = 1

Name = CLI_CREDENTIALS value = CLICredentials

User Name:[admin]

Password:[***]

Enable Password:[***]

SessionType:[SSH2]

Name = FirmwareVersion value = Fortigate36000 length = 14

Name = SupportsVirtualization value = true length = 4

Name = L2_ENABLED value = true length = 4

Name = L2_POLL_DURATION value = 600 length = 3

Name = L2_MIN_POLL_DURATION value = 300 length = 3

Name = API_Port value = 2222 length = 3

Name = 1.3.6.1.2.1.1.3.0 value = 58 days, 20:54:56.43 length = 20

Name = userDefinedOID value = false length = 5

Name = RestAPIVersion value = 0 length = 1

Name = L2_LAST_POLL value = Mon Apr 01 08:23:24 EDT 2019 length = 28

Name = L2_LAST_SUCCESSFUL_POLL value = Mon Apr 01 08:23:24 EDT 2019 length = 28

Name = DEBUG value = ForwardingInterface length = 19

Community Strings: ********

Modify API Port

Modify API Port

FortiNAC uses port 443 by default for REST API. To change the port FortiNAC uses for when communicating with the FortiGate, set the port to use through CLI:

Device –setAttr –ip <FortiGate IP> –name API_Port –value <Port value>

Example:

Device –setAttr –ip x.x.x.x –name API_Port –value 2222

************************* FWF60ETK18001734 *************************

Landscape = 207375981338 00:30:48:92:5B:1A

Pollable = true, Poll interval = 10 Minutes

Type = 1.3.6.1.4.1.12356.101.1.639

Group = 1.3.6.1.4.1.12356

MAC = null

Protocol = SnmpV1

Description =

IP = xxxx

State = Active

Status = Established

DBID = 8913

Attribute Count = 14

Name = SnmpVersion value = 1 length = 1

Name = CLI_CREDENTIALS value = CLICredentials

User Name:[admin]

Password:[***]

Enable Password:[***]

SessionType:[SSH2]

Name = FirmwareVersion value = Fortigate36000 length = 14

Name = SupportsVirtualization value = true length = 4

Name = L2_ENABLED value = true length = 4

Name = L2_POLL_DURATION value = 600 length = 3

Name = L2_MIN_POLL_DURATION value = 300 length = 3

Name = API_Port value = 2222 length = 3

Name = 1.3.6.1.2.1.1.3.0 value = 58 days, 20:54:56.43 length = 20

Name = userDefinedOID value = false length = 5

Name = RestAPIVersion value = 0 length = 1

Name = L2_LAST_POLL value = Mon Apr 01 08:23:24 EDT 2019 length = 28

Name = L2_LAST_SUCCESSFUL_POLL value = Mon Apr 01 08:23:24 EDT 2019 length = 28

Name = DEBUG value = ForwardingInterface length = 19

Community Strings: ********