First connection: console, GUI and the first password
This lesson is open to everyone. The other lessons open with a package: sign in or sign up, then choose a package.
Key points
- On a new FortiGate the username is admin and the password is empty. At first login the device forces you to set a new password.
- On most models the default address of the management port is 192.168.1.99/24 and the GUI opens at
https://192.168.1.99. - The console port does not depend on network settings: 9600 baud, 8 data bits, no parity, 1 stop bit. It works even when the IP is wrong.
- In the GUI everything is in the left menu: Network, Policy & Objects, Security Profiles, VPN, User & Authentication, System, Log & Report.
- Management access through a port is granted with allowaccess. Opening HTTPS and SSH on an internet-facing port is dangerous.
Three ways to connect
| Way | What you need | When |
|---|---|---|
| Console | A console cable and a terminal program (PuTTY etc.) | First setup, when you lose the IP, when the network is down |
| GUI (HTTPS) | A browser and the device IP | Daily work, visual overview |
| SSH | An SSH client and the device IP | Remote CLI work |
Terminal settings for the console: 9600 baud, 8 data bits, no parity, 1 stop bit, no flow control.
Default settings
A device out of the box comes with these (the port name depends on the model):
| Setting | Value |
|---|---|
| User | admin |
| Password | empty (press Enter) |
| Management IP | 192.168.1.99/24 |
| Port | internal / lan on small models, mgmt or port1 on larger ones |
| DHCP server | Enabled on the internal port of small models |
| WAN port | Waits for a DHCP address on small models |
On a small model you plug the computer into the internal port, it gets a 192.168.1.x address by DHCP, and you open https://192.168.1.99 in the browser. On a model without DHCP you set the computer manually, for example to 192.168.1.10/24.
The browser will show a certificate warning. That is normal: the device uses a certificate it signed itself.
First login
FortiGate-60F login: admin Password: You are forced to change your password. Please input a new password. New Password: Confirm Password: Welcome! FortiGate-60F #
Nothing appears on screen while you type the password; that is normal. The same happens in the GUI: first a new password, then a few short setup steps (device registration, name, dashboard choice). These steps can be skipped with "Later".
Watch out on a real device: if you lose the admin password there is no way to "recover" it. The way out is a factory reset, which erases the whole configuration. Keep the password somewhere safe and take backups.
Getting to know the GUI
The left menu, from top to bottom:
- Dashboard: device status, CPU, memory, licences, sessions.
- Network: interfaces, DNS, routing, SD-WAN.
- Policy & Objects: firewall policies, addresses, services, NAT.
- Security Profiles: antivirus, web filter, application control, IPS and more.
- VPN: IPsec and other VPN settings.
- User & Authentication: users, groups, LDAP, RADIUS.
- System: administrators, firmware, certificates, general settings.
- Security Fabric: connections to other Fortinet devices, automation.
- Log & Report: traffic and event logs.
The >_ icon in the top right corner opens a CLI window inside the GUI. It is handy for typing commands without a cable or an SSH client.
Some sections are hidden by default. You enable them on the System > Feature Visibility page. If you cannot find something in the GUI, look there first.
A first look in the CLI
FortiGate-60F # get system interface physical == [onboard] ==[wan1] mode: dhcp ip: 0.0.0.0 0.0.0.0 status: down speed: n/a ==[internal] mode: static ip: 192.168.1.99 255.255.255.0 status: up speed: 1000Mbps (Duplex: full)
This command shows the physical ports, their IPs and whether a cable is connected.
Changing the admin password later
FortiGate-60F # config system admin FortiGate-60F (admin) # edit admin FortiGate-60F (admin) # set password <new-password> FortiGate-60F (admin) # next FortiGate-60F (admin) # end
In the GUI: click the admin name in the top right and choose Change Password. The words config, edit and end are explained in detail in the next lesson.
Who can reach management?
Which management protocols are open on each port is defined by allowaccess, for example ping https ssh. If https is not on a port, the GUI does not open on that port's IP.
- On an internal (LAN) port:
ping https sshis usually enough. - On an internet-facing (WAN) port: do not open management. If you need it, come in through a VPN and manage from the internal address.
httpandtelnetare not encrypted; do not use them.
We will do this in practice in the interfaces lesson (lesson 5).
Returning to factory defaults
FortiGate-60F # execute factoryreset This operation will reset the system to factory default! Do you want to continue? (y/n)
This command erases the whole configuration and reboots the device. It is used to start clean on a lab device. On a working device, take a backup before you type it.
🧪 Hands-on lab · Device: FortiGate-VM
First look and the admin password
You have just connected to the device. Look at the ports with get system interface physical. Then set a new password for the admin account: config system admin → edit admin → set password ... → end.
Checked:
- Ports viewed
- admin password set
Check yourself
5 questions · answers are shown instantly · 3 correct answers complete the lesson
1What are the default username and password on a new FortiGate?
2What is the default IP address of the management port on most models?
3You typed the wrong IP on the device and cannot connect over the network. Which way still works?
4Which terminal setting is correct for the console?
5What is the best choice for allowaccess on an internet-facing port?
Comments
Sign in to comment.