FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
caunon
Staff
Staff
Article Id 217745
Description

This article describes about situations, where one might delete all firewall policies, VIPs (Virtual IPs) or firewall addresses to re-create them again.

Scope FortiGate.
Solution

Deleting firewall policies, VIPs or firewall addresses one by one might take a lot of time, in cases where the configuration is huge.

Using the following CLI commands complete firewall config of respective fields can be deleted.


To delete all firewall policies

 

FGT # config firewall policy
FGT (policy) # purge

This operation will clear all table!
Do you want to continue? (y/n)y

 

To delete all VIPs (Virtual IPs)

 

FGT # config firewall vip
FGT (vip) # purge

This operation will clear all table!
Do you want to continue? (y/n)y

 

To delete all firewall address

 

FGT # config firewall address
FGT (policy) # purge

This operation will clear all table!
Do you want to continue? (y/n)y

 

Note:

Be careful while running the above CLI commands as it will delete all related settings under that function permanently.

Contributors