Fortinet black logo

FortiGate configuration script

Copy Link
Copy Doc ID ef8a5052-6955-11ea-9384-00505692583a:943023
Download PDF

FortiGate configuration script

The configuration script for a FortiGate-VM uses standard FortiOS CLI syntax.

Here is a simple example, where the hostname is Example-Day0 and port1 is configured to use DHCP to get an IP address:

cat config-drive/openstack/latest/user_data

#Example FGT Day0 Configuration

config system global

set hostname Example-Day0

end

config system interface

edit port1

set mode dhcp

set allowaccess https ssh ping

end

fgt-user@ubuntu:/var/tmp$

FortiGate configuration script

The configuration script for a FortiGate-VM uses standard FortiOS CLI syntax.

Here is a simple example, where the hostname is Example-Day0 and port1 is configured to use DHCP to get an IP address:

cat config-drive/openstack/latest/user_data

#Example FGT Day0 Configuration

config system global

set hostname Example-Day0

end

config system interface

edit port1

set mode dhcp

set allowaccess https ssh ping

end

fgt-user@ubuntu:/var/tmp$