Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Export firewall rules
I am wondering if there is anyone that knows a good way to export firewalls rules with comments to a readable format ?
copying the rulebase from the gui and paste it to excel works but to get the comments you need to copy the rule base from the CLI and then filter and so on which takes time. Checkpoint for example has many good ways to export the rulebase to HTML.
Is there any scripts that can read the config file and export id,src int,dst int,src,dst,port and comment ?
Solved! Go to Solution.
1 Solution
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Program link http://www.tuncaybas.com/...rtigate-policy-export/
Tuncay BAS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
Tuncay BASRZK Muhendislik TurkeyFCA,FCP,FCF,FCSS
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can review any firewpolicies and ordering via the " show firewall policy" commands.
You can copy these down a build a script that parser the field you want , bu t I don' t know of any one tool that' s provide by fortinet. You need to get creative.
PCNSE
NSE
StrongSwan
PCNSE
NSE
StrongSwan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the fortimanager has an export to csv option, but the fortigates do not.
I usually end up copying the rules from the CLI and open with MSWord.
Then do some creative search and replace to put each policy on one line seperated by tabs.
Then I can import that into excel.
time consuming and sucks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Program link http://www.tuncaybas.com/...rtigate-policy-export/
Tuncay BAS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
RZK Muhendislik Turkey
FCA,FCP,FCF,FCSS
Tuncay BASRZK Muhendislik TurkeyFCA,FCP,FCF,FCSS
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nice tool Tuncay, thanks.
Ralph
