Site icon NetworkHunt

How to Add FortiGate Firewall in EVE-NG

how to add fortigate firewall to eve-ng

Fortinet’s FortiGate firewalls are widely recognized for their rich feature set and reliability in enterprise network security. EVE-NG allows you to emulate FortiGate firewalls for hands-on practice, testing, and lab scenarios. This guide outlines the step-by-step process of adding a FortiGate firewall to EVE-NG.


Why Use FortiGate in EVE-NG?


Table of Contents

Step 1: Download FortiGate Firewall Image

EVE Image NameDownloaded Original FilenameVersionvCPUsvRAMConsole
1.fortinet-FGT-v5-build1449FGT_VM64_KVM-v5-build1484-FORTINET.out.kvm.zip5.611024telnet
2.fortinet-FMG-v5.4-build1151FMG_VM64-v5-build1151-FORTINET.out.ovf.zip5.412048vnc
The above images are used for testing and for this post.

Other versions should also be supported following the procedure

  1. From the Fortinet Website:
    • Log in to the Fortinet Support Portal.
    • Download the KVM-compatible FortiGate image file (e.g., FGT_VM64_KVM-v5-build1484-FORTINET.out.kvm.zip).
  2. From Alternate Sources:
    • If you don’t have portal access, some educational platforms may provide indexed links for learning purposes.

Step 2: Create a Directory for the FortiGate Image

  1. SSH into the EVE-NG Server:
    • Use an SSH client (e.g., PuTTY) to connect to your EVE-NG server.
  2. Create the Image Directory:
    • Execute the following command:

mkdir -p /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1484/

Replace fortinet-FGT-v5-build1484 with the image version you are using.


Step 3: Upload the FortiGate Image to EVE-NG

  1. Transfer the File:
    • Use FileZilla or WinSCP to upload the downloaded FortiGate .zip file to the directory created in the previous step
      /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1484/
  2. Verify the Upload:
    • Check that the file has been uploaded:

ls -l /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1484/


Step 4: Unzip the FortiGate Image

1. Navigate to the Image Folder

cd /opt/unetlab/addons/qemu/fortinet-FGT-v5-build1484/

2. Unzip the Image File:

unzip FGT_VM64_KVM-v5-build1484-FORTINET.out.kvm.zip


Step 5: Rename and Remove Unnecessary Files

1. Rename the Image File: Rename the extracted .qcow2 file to virtioa.qcow2:

mv fortios.qcow2 virtioa.qcow2

2. Remove the Original Zip File:

rm FGT_VM64_KVM-v5-build1484-FORTINET.out.kvm.zip


Step 6: Fix Permissions

  1. Set Correct Permissions:
    • Run the following command to ensure proper permissions for the image directory:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions


Step 7: Add and Test the FortiGate Node

  1. Access the EVE-NG Web Interface:
    • Open a browser and navigate to the EVE-NG GUI.
  2. Create a New Lab:
    • Create a new lab or open an existing one.
  3. Add the FortiGate Node:
    • In the lab topology editor, select the FortiGate node and add it to your lab.
  4. Start the Node:
    • Power on the FortiGate node and connect to its console.
  5. Default Login Credentials:
    • Username: admin
    • Password: (Press Enter; no default password is set).

Troubleshooting

Exit mobile version