Fortinet white logo
Fortinet white logo

config system interface

config system interface

Configure system interface settings.

In a cloud environment, only status can be set.

Usage

config system interface
  edit <port>
    set allowaccess <services>
    set ip <ip_address/netmask>
    set status {enable | disable}
    set ssh_allowlist <ip_address>,<ip_address>/<netmask>
end

Subcommands

Command

Description

abort

End and discard last config.

edit

Add or edit a table value.

help

List available commands or provide detailed help for a specific command.

show

Show all table values.

Set arguments

Argument

Description

services

A comma-separated list of services allowed on this port. Default: ssh,https.

Accepted services:

  • ssh

  • https

  • icmp

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.

ssh_allowlist

Specify the allowed IP addresses as a comma-separated list of IP addresses or IP addresses with a netmask. Default: 0.0.0.0.

config system interface

config system interface

Configure system interface settings.

In a cloud environment, only status can be set.

Usage

config system interface
  edit <port>
    set allowaccess <services>
    set ip <ip_address/netmask>
    set status {enable | disable}
    set ssh_allowlist <ip_address>,<ip_address>/<netmask>
end

Subcommands

Command

Description

abort

End and discard last config.

edit

Add or edit a table value.

help

List available commands or provide detailed help for a specific command.

show

Show all table values.

Set arguments

Argument

Description

services

A comma-separated list of services allowed on this port. Default: ssh,https.

Accepted services:

  • ssh

  • https

  • icmp

ip

IP address with subnet prefix length (192.168.49.2/24)

status

Enable or disable the interface.

ssh_allowlist

Specify the allowed IP addresses as a comma-separated list of IP addresses or IP addresses with a netmask. Default: 0.0.0.0.