Category Archives: Security

Wipe a Fortinet FortiGate Firewall – Delete All Logs and Configuration

On occasion, I have found that I have the need to not only wipe a Fortinet Fortigate Firewall’s configuration, settings, and logs, but to actually verify that the contents of the logs were wiped out. The script below will allow you to do this.

I would recommend using PuTTY with logging enabled to document your progress. With some modification this may work on other Fortinet devices. Note that you will have to modify the script to add any custom VDOMs you may have on your device.

I would highly recommend backing up your configuration and any logs that you need to retain, as I know of no way to undo this. Use the following script at your own risk!

#-------------------------------#
#Fortinet Device wipe - Supports CTAP Units
#Version: 1.02
#Update: 2018-11-06
#Notes: For systems without VDOMs enabled,
#the config lines will produce an error, however

Continue reading Wipe a Fortinet FortiGate Firewall – Delete All Logs and Configuration

Fortinet FortiGate Transparent Web Proxy on v6.x Setup Walkthrough

This tutorial will walk you through setting up a transparent proxy on a Fortinet Firewall running v6.x code. This tutorial was written on v6.0.1.

Why would you want to do this? Straight from the Fortinet Cookbook here, https://cookbook.fortinet.com/transparent-web-proxy-56/:

“With the transparent web proxy, you can forward your user’s web traffic to the proxy without requiring your users to reconfigure their browsers or without needing to publish a proxy auto-configuration (PAC) file.”

There are a couple of differences in the instructions from v5.6 to v6.0.1 so the intent of this post is to provide an updated Cookbook article.

First off, make sure the FortiGate is in Proxy mode.
Go to System -> Settings and scroll down to the bottom.
Under the System Operations Settings section, select Proxy where it lists the Inspection Mode:

Now, enable Explicit Proxy under Feature Visibility:

Continue reading Fortinet FortiGate Transparent Web Proxy on v6.x Setup Walkthrough