Skip to main content
  1. Fortinet/

How to Perform an Initial FortiGate Configuration (FortiOS 8.0)

·
Table of Contents

Setting up a FortiGate firewall from scratch can seem daunting, but following a structured initial configuration ensures both seamless end-to-end network connectivity and baseline administrative security.

Whether you are deploying a virtual appliance (VMware) or a physical FortiGate unit, this step-by-step guide walks you through initial access, network routing, firewall policies, NAT, and essential hardening settings.

Tested using FortiGate/FortiOS v8.0.0

Initial Access and First Login
#

Depending if you’re using a hardware or virtual appliance, the initial access to the FortiGate differs:

  • Hardware appliances:
    • Entry-Level Models (e.g., FortiGate 50G, 60F, 70G, 80F, 90G): connect your PC to FortiGate port1.
    • Enterprise Models (3-digit series or higher): connect your computer directly to the dedicated management (MGMT) port.

FortiGate 90G - port1:

FortiGate 90G port1

FortiGate 200G - MGMT port:

FortiGate 200G MGMT

The default management IP address for physical appliances is 192.168.1.99/24. Set your computer’s IP within this subnet.

  • Virtual Machines appliances: port1 defaults to DHCP client mode.

For FortiGate VM appliances, connect to its VM console and at the first login as admin you must set a new password:

Default credentials: admin / (no password)
FortiGate VMware first login

Next, to find its assigned IP execute the following command once you are log into the VM console:

# show system interface ?
FortiGate VMware port1 interface

Accessing the Web GUI
#

  1. Now that you know the FortiGate IP address, open a web browser and navigate to:
https://<FortiGate-IP>

In FortiGate hardware appliances the default URL would be https://192.168.1.99

  1. Accept the browser security warning regarding the self-signed certificate
FortiGate unsecure HTTPS connection
  1. Log in with admin and your newly created password, or define a new password if this is the first time you’re log in to FortiGate:
FortiGate HTTPS admin login
  1. Skip the initial setup wizard if you are configuring a fresh appliance from scratch.

Topology
#

We will use the following topology to exemplify the LAN and WAN configuration of the following sections:

Topology - FortiGate initial configuration
  • FortiGate port1 interface is connected to the WAN router subnet, providing internet connectivity.
  • FortiGate port2 interface is connected to the LAN subnet, where a client VM is also connected.

The goal will be to allow the client VM internet traffic to be routed and permitted through FortiGate.

Configuring the WAN Interface and Default Route
#

Follow these steps to configure the WAN interface:

  1. Navigate to Network > Interfaces and edit port1.
  2. Set an alias (e.g., WAN) for easy identification.
  3. Change addressing mode to Manual and define the static IP address and subnet mask according to the topology.
  4. Leave at least HTTPS, and SSH administrative access enabled for now.
  5. Press OK to save changes.
FortiGate port1 WAN configuration

Follow these steps to configure the default static route:

  1. Go to Network > Static Routes, click on Create New.
  2. Configure the default route:
    • Destination: 0.0.0.0/0.0.0.0
    • Gateway Address: 192.168.26.2
    • Interface: WAN (port1)
  3. Press OK to save changes.
FortiGate static route configuration
FortiGate basic static route

On the top right corner, you can open a new CLI Console session to test internet connectivity from the firewall:

FortiGate new CLI Console

Use the following command for testing internet connectivity from FortiGate:

# execute ping 8.8.8.8

If everything went well we should see ping responses:

FortiGate execute ping on console

Setting Up the LAN Interface & DHCP Server
#

Follow these steps to configure the LAN interface:

  1. Navigate to Network > Interfaces and edit port2.
  2. Set an alias (e.g., LAN) for easy identification.
  3. Define the static IP address and subnet mask according to the topology.
  4. Enable PING administrative access in case we want to test connectivity later.
FortiGate port2 LAN configuration
  1. Also enable DHCP Server to lease IP addresses and default route to clients on the LAN networks. Set the Address range and Netmask matching to the LAN network in the topology:
FortiGate port2 DHCP server configuration
If you’re running your FortiGate VM and VM clients on a virtual environment, like VMware, remember to disable the DHCP leasing by “Virtual Network Editor” program on the LAN network to avoid DHCP conflicts.
  1. Press OK to save changes.

Creating a Firewall Policy
#

FortiGate blocks all traffic by default. You must create an explicit firewall policy to allow internal LAN users to browse the web:

  1. Navigate to Policy & Objects > Firewall Policy and click Create New.
  2. Set the firewall policy matching fields:
    • Name: LAN to WAN
    • Incoming Interface: LAN (port2)
    • Outgoing Interface: WAN (port1)
    • Source: Create a subnet address object matching your local network (e.g., 192.168.12.0/24)
    • Destination: all
    • Service: ALL
    • Action: ACCEPT
    • NAT: Enable Source NAT (SNAT) so internal private addresses translate to the public WAN IP
    • Log Allowed Traffic: Set to All Sessions
FortiGate LAN to WAN firewall policy

The LAN subnet address object is defined as follows:

FortiGate LAN subnet address object

Finally, press OK to see your new policy listed:

FortiGate LAN to WAN policy created

Clients connected to LAN network should now be able to reach internet through FortiGate after successfully receiving a DHCP lease from FortiGate.

Recommended System Settings#

Besides network connectivity settings, some initial system and administration settings are also recommended.

  1. Go to System > Settings
    • Define a meaningful Hostname for this FortiGate device
    • Under General tab, set the Time zone according to your region.
FortiGate time zone system settings
  • Under Access tab, enable Redirect to HTTPS, so unsecure HTTP administrative connections are redirected to HTTPS encrypted sessions. Also you can increase the Idle timeout for admin sessions.
FortiGate system settings access
  1. Click Apply to save changes.

  2. Under System > Administrators, you can create a new FortiGate administrator so the default admin can be deleted according to best practices.

Define the username, password and super_admin profile.

FortiGate new administrator
  1. Click OK to save changes.
FortiGate administrators list
  1. Log out, sign back in using the new account, and delete the default admin account to eliminate brute-force targeting.
FortiGate delete default administrator