Connecting to the FortiGate-VM
To connect to the FortiGate-VM, you need your login credentials and its public DNS address.
To connect to the FortiGate-VM:
- Choose the instance from the list of instances on the VM Instances page.
- Depending on how you provisioned the instance, you must use the instance ID or the fortigate_user_password as the password. The instance ID is represented as a number that can be found after locating the instance in the GCP Compute Engine console.
- There are two methods to obtain the instance ID. To use the instance ID as the password, do one of the following:
- Open Serial port 1 (console) as seen.
The first time you access the serial console, you find the instance ID represented as a number. This is the login password.
- Do the following:
- Select View gcloud command on the VM instance details.
- Click RUN IN CLOUD SHELL.
- By default, a command is shown as underlined in the following example. Delete the command shown underlined.
- Enter the following command:
gcloud compute instances describe <instance_name>
. - You see a line starting with
id: ‘<number>’
. This is the FortiGate initial login password.You can also enter
gcloud compute instances describe <instance_name> | grep id:
This number is the login password.
- Open Serial port 1 (console) as seen.
- To use the fortigate_user_password as the password, go to the VM instance details page and find the fortigate_user_password under Custom metadata.
- There are two methods to obtain the instance ID. To use the instance ID as the password, do one of the following:
- Open an HTTPS session using the FortiGate-VM's public DNS address in your browser (https://<public_DNS>). You can find the FortiGate-VM's public IP address on the VM instance details page.
- Access the FortiGate in your browser.
- You see a certificate error message from the browser. This is expected since browsers do not recognize the default self-signed FortiGate certificate. Proceed past the error message.
- Log into the FortiGate-VM with the username admin and the password (the instance ID or fortigate_user_password, depending on how you provisioned this instance).
- Upload your license (.lic) file to activate the FortiGate-VM. The FortiGate-VM automatically restarts. After it restarts, wait about 30 minutes until the license is fully registered at Fortinet, and log in again.
You now see the FortiOS dashboard. The information in the main dashboard varies depending on the instance type.
You are encouraged to change the initial password at the top right corner of the FortiOS GUI.