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

Export Fortigate 300d Rules

Hello Guys ,

I need someone show me how can i do Export rules from Fortigate 300d to Excel Sheet  .We dont have a Fortimanager to do this export .

Any idea please ?

 

Regards

1 Solution
TuncayBAS

Full Config Export. One or multi device export

 

http://www.tuncaybas.com/...ortigate-policy-export

Tuncay BAS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS

View solution in original post

Tuncay BASRZK Muhendislik TurkeyFCA,FCP,FCF,FCSS
25 REPLIES 25
emnoc
Esteemed Contributor III

It would be nice to export the rule set via xml or csv format directly from the firewall.

Ken

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Azuriste
New Contributor

Hi ,

Could i use Fortimanager to export rules with trial version ?

 

Regards

brudy
New Contributor II

I wrote a perl script for my customers which need it do document the firewall policies.

 

Maybe it helps: 

 

https://www.brg.ch/dump-fortigate-config-into-csv/

 

Just use the saved config as input. 

 

__
Peter Bruderer
__Peter Bruderer
TuncayBAS

Full Config Export. One or multi device export

 

http://www.tuncaybas.com/...ortigate-policy-export

Tuncay BAS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
Tuncay BASRZK Muhendislik TurkeyFCA,FCP,FCF,FCSS
Azuriste

@brudy : i tried your script but it's not working :(

when i execute the script i show just an appeared window showing the content of the script !

 

Regards ,

Azuriste

@Tuncay : the Tools not working form me also !

 

TuncayBAS New Gold Member  Total Posts : 205Scores: 14Reward points: 0Joined: 7/1/2005Location: Ankara / TurkeyStatus: online[/ul] Re: Export Fortigate 300d Rules 32 minutes ago (permalink)     0 Full Config Export. One or multi device export   http://www.tuncaybas.com/...ortigate-policy-export   Tuncay BAS RZK Muhendislik Turkey NSE 4 5 6 FCESP v5 Answer Helpful Report AbuseForward  Quote   #13 AzuristeNew New Member  Total Posts : 5Scores: 0Reward points: 0Joined: 1 week agoStatus: online[/ul] Re: Export Fortigate 300d Rules seconds ago (permalink)     0 @brudy : i tried your script but it's not working :( when i execute the script i show just an appeared window showing the content of the script !   Regards ,   Forward  Managei  Edit   #14   Azuriste Quick Reply: (Open Full Version)        Paragraph Font Family Font Size                  Path: p     Submit Post     Home » All Forums » [link=https://forum.fortinet.com/tt.aspx?forumid=119][Other FortiGate and FortiOS Topics][/link] » Firewall » Export Fortigate 300d Rules Jump to:  Jump to - - - - - - - - - -  [FortiGate / FortiOS UTM features] - - - - AntiVirus - - - - Application Control - - - - Data Leak Prevention (DLP) - - - - Email filtering (AntiSPAM) - - - - Former Content Management Forum - - - - Intrusion Detection & Prevention - - - - Web Filtering [Fortinet Beta Programs] - - - - Beta Message Board [Fortinet Services] - - - - FortiCloud IOC [Other FortiGate and FortiOS Topics] - - - - Firewall  - - - - Log & Report - - - - Miscellaneous -- FortiOS and FortiGate - - - - New Features -- FortiOS - - - - Routing and Transparent Mode - - - - System settings - - - - User and Authentication - - - - VPN [Other Fortinet Products] - - - - AscenLink - - - - Coyote Point - - - - FortiADC - - - - FortiAnalyzer - - - - FortiAP - - - - FortiAuthenticator - - - - FortiBalancer - - - - FortiBridge - - - - FortiCache - - - - FortiCamera & FortiRecorder - - - - FortiCarrier  - - - - FortiCASB - - - - FortiClient - - - - FortiCloud - - - - FortiConnect - - - - FortiController - - - - FortiConverter - - - - FortiCore - - - - FortiDB - - - - FortiDDOS - - - - FortiDirector - - - - FortiDNS - - - - FortiExplorer - - - - FortiExtender - - - - FortiFone - - - - FortiGuard - - - - FortiHypervisor - - - - FortiMail - - - - FortiManager - - - - FortiMonitor - - - -  Fortinet Security Fabric - - - - FortiPlanner - - - - FortiPortal - - - - FortiPresence - - - - FortiProxy - - - - FortiRPS - - - - FortiSandbox - - - - FortiScan - - - - FortiSIEM - - - - FortiSwitch - - - - FortiTester - - - - FortiToken - - - - FortiTap - - - - FortiVoice - - - - FortiWAN - - - - FortiWeb - - - - FortiWiFi - - - - Wireless Infrastructure (FortiWLC, FortiWLM, Meru) [Forum Information & Miscellaneous Topics] - - - - Forum News - - - - Ideas for Forum Site - - - - Fortinet Cookbook - - - - Knowledge Base - - - - Technical -- non-FortiOS - - - - Miscellaneous -- non-technical      © 2018 APG vNext Commercial Version 5.5   Latest Posts    Re: Block mails from special domain Re: fortinet authentication page Re: Export Fortigate 300d Rules Re: How to assign a fixed ip address from gui Re: FortiAP FAP-221E FortiAnalyser Traffic Shaping Report Re: FortiOS 6.0.2 is out! Re: Export Fortigate 300d Rules FortiOS 6.0.2 is out! Setup IPSec VPN with other brand firewall [/ul] Active Posts    fortinet authentication page Export Fortigate 300d Rules How to assign a fixed ip address from gui Change public IP for IPSec connection FortiSwitch 124E-POE Stability and Function ssl vpn portal login with Error:Permission denied Tunnel Failover Question Juniper to Fortigate BGP FortiGate 1000D -Reboots after 5 s Help with error "...may be caused by a mismatch in the TLS version. ..." [/ul] All FAQs    There is no record available at this moment[/ul] TuncayBAS
brudy
New Contributor II

Hi Azuriste

 

If you are running it on Windows, you have to install Perl first to make it work. I recommend ActivePerl [link]https://www.activestate.com/activeperl/downloads[/link]

__
Peter Bruderer
__Peter Bruderer
Aigarz
New Contributor

brudy - you are a legend, 'give this man a cookie' 

best thing you get all the object details within the same output.

 

 

Azuriste

Hi , 

 

I have Perl on Windows and i tested for some scripts and its working .the problem i got the output file without any data !

 

Should i do the test in Linux Env ?

 

Regards,

Azuriste

Finally it's working .

the brudy Script it's verry goood script .i advice eveery one  to use it.

 

Thank's a lot brudy

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors