Hello all, first i would like to thank the community for their interest in my first article about running FortiGate (FortiOS 5.6) in GNS3.
File listing for project GNS3. Visit gns-3 project, files pages.File listing converted from the RSS. GNS3-2.2.26dev1.source.zip (path, direct) GNS3-2.2.26dev1. Section 2: Generate and add the Cisco IOURC License. You need a licence for your GNS3 VM to run IOU. This licence is provided by Cisco. We called this licence file iourc. The content of the licence file will be like this: license gns3vm =. GNS3 only worked for the first day I installed GNS3 with VM warework station pro/ player. After a day, and a reboot, GNS3 stopped communicating with GNS3 VM; GNS3 says GNS3 VM is starting then the status disappears and it remains gray. Software Information GNS3 2.2.17. VMWare Workstation 16.1.0-17198595. GNS3 VMware workstation VM 2.2.17.
As per the many requests that i got for running FortGate with FortiOS 6 inside GNS3, this article will be about deploying FortiGate (FortiOS 6.2.3 which is currently the latest version) in GNS3. So let's get started!!
Python3 CiscoIOUKeygen3f.py. Generate the license. After running this command, a file called iourc.txt will be created. Copy and paste the license key in the file to the Preference IOS on UNIX section of GNS3. IOS on UNIX section. No files were found to uninstall. Successfully installed aiofiles-0.5.0 aiohttp-cors-0.7.0 gns3-server-2.2.17 psutil-5.6.7 py-cpuinfo-7.0.0 sentry-sdk-0.19.5. Wait for installation to complete then install the GUI component.
Requirements
---------------------------
- Download GNS3 2.2.5 from Here
- Download FortiGate appliance from Here
- Download FortiGate 6.2.3 Image from Here
- Deploy any VM that have a browser, in my case i deployed CentOS 7 with GUI on VMware and added it to GNS3.
---------------------------
Import Appliances & Images
Start a new blank project, click File > Import Appliance, then choose the FortiGate appliance file (.gns3a)
Choose 'Run the appliance on the GNS3 VM(recommended)' option, then choose the Qemu settings and click Next. GNS3 will verify the VM requirements to run the appliance and a list of FortiGate versions should appears.
Under FortiGate 6.2.3 on the list, click on FGT_VM64_KVM-v6-build1010....., then import, then choose the file extracted from the FortiGate Image.
Note: In order for FortiGate to operate, it needs an empty harddisk
The harddisk can be created using linux tool called 'qemu-img' using the following command:
or you can download the file from Here .
To import the harddisk into GNS click on empty30G.qcow2 under FortiGate 6.2.3 on the list, then import and choose the harddisk file.
After importing the two files, FortiGate version 6.2.3 on list will indicate the status of 'Ready to install', make sure to click on the version number before clicking on next, otherwise you might get errors.
Appliance Deployment
After the installation is done, create a simple topology like the below.
New FortiGate VMs are configured to have DHCP enabled by default. in order to check the current IP of the FortiGate, open the console, set a new password, and type the below commands:
Then check for the 'IP' and 'allowaccess' parameters.
In my case the IP is '192.168.101.129' and allow access is the protocols highlighted in green.
Gns3 2 2 500
The final step is to open a browser and login to FortiGate.
and that's it, pretty simple!! let me know in case you have any comments or questions.
Gns3 2 2 5000
Also let me know if you are interested in having FortiManager, FortiAnalyzer, FortiMail, FortiWeb, Forti.... in GNS3 in order to create articles for them.