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$