Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Ydaew
New Contributor III

Import policies to fortigate FW

Hello,

Is it possible to prepare all required policies using CSV file and then during migration import those policies ?

If not what is the best way to prepare the configuration and then migrate it in the migration phase?

 

Thanks in advance

5 REPLIES 5
Alexis_G
Contributor II

NO !!!

if you are speaking of migration

you need export the configuration.

first install objects & services via cli or script

then routes or all other dependencies mentioned in policies vi cli or script.

then the policies in the same way you took the export BUT you need to remove the UUIDs of all the parts of configuration.

IMPORTANT: The interface mapping is the same between the current and new box.

IMPORTANT: if you are about to use different FortiOS there might be some changes in commands - compatibility.

 

--------------------------------------------

If all else fails, use the force !

-------------------------------------------- If all else fails, use the force !
Ydaew
New Contributor III

Thank you so much, as i mentioned before we don't have previous firewall installed. i just want to minimize the working time when the hardware is installed by preparing most things.

 

Dave_Hall
Honored Contributor

If you are planning to upgrade an existing fgt device, perhaps you may have better luck following the upgrade path.  Otherwise, the FortiConverter may be your best bet, assuming you want to import a set of firewall rules from another (supported) FW/UTM plateform to Fortigate.  

 

If migrating from one fgt model to another, Fortinet does not support this method, but provides the steps on doing it here.

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
Ydaew
New Contributor III

Thank you so much, actually no previous firewall is exist. I just want to prepare as much as i can so minimize the working time once the hardware installed up and running.

sw2090
Honored Contributor

hm I never checked if FortiOS would undestand csv. I don't think so.

What it does understand is its cli syntax.

And as of my own erxperience it is way faster to create policies in cli in text editor and then import this to FGT then to create them in gui. 

The only disadvantage affects debugging: if you bulik import it via system->settings and there is some error you will only get "Failed" as a result :\

If you copy to cli you should create the cli config without using tabs or whitespaces. I repeatedly had problems with that upon copiying to cli even if I copied from a config file I exported from a Fortigate.

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Labels
Top Kudoed Authors