can't import Fortigate conf
Hello,
i try to import my Fortigate conf but it failed.
i'have the log below: 14:02:37 INFO Mode: backup file (no API calls). File: /data/tmp/run-oia71cgh/input/xxxxxxxxxxxxxxxxxxx.conf 14:02:37 INFO Detected fortigate configuration, parsing... 14:02:38 INFO ✓ Parsed 1632 rules and 1418 objects (41 NAT rule(s)) 14:02:38 INFO Retrieved 1632 rules from fortigate (FW-xxxxxxxxx) 14:02:38 INFO No rule hit counters: This firewall type provides no hit counters. 14:02:38 INFO Generating reports and graphs... 14:02:38 INFO No previous snapshot: change report starts with this run 14:02:42 INFO Audit: 979 finding(s) 14:02:42 INFO Risk score: 100/100 (CRITICAL) 14:02:42 INFO ✓ Global CSV created: /data/tmp/run-oia71cgh/xxxxxxx/xxxxxxxxx_ALL_flows.csv 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-1 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/z-2 14:02:46 INFO ✓ Graph generated: Floating-rules 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-3 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/WIFI 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-4 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-5 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-6 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-7 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-8 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-9 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-10 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-11 14:02:46 INFO ✓ Graph generated: FW-xxxxxx/Z-12 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-13 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-14 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-15 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-16 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/SSL VPN 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-17 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-18 14:02:47 INFO ✓ Graph generated: FW-xxxxxx/Z-19 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-20, Z-21 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-21E, Z-20 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-22 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-23 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-24 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-25 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-26 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-27 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-28 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-29 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-30 14:02:48 INFO ✓ Graph generated: FW-xxxxxx/Z-31 14:02:49 INFO ✓ Graph generated: FW-xxxxxx/Z-1, Z-32 14:02:49 INFO ✓ Graph generated: FW-xxxxxx/Z-33 14:02:49 INFO ✓ Graph generated: FW-xxxxxx/Z-1, Z-34 14:02:49 INFO ✓ Graph generated: FW-xxxxxx/Z-35 14:02:49 INFO ✓ Graph generated: FW-xxxxxx/Z-36 14:02:53 ERROR Analysis failed: <Table@0x7FA3339667B0 180 rows x 179 cols> with cell(0,0) containing '<Paragraph at 0x7fa333b800b0>From / To': flowable given negative availWidth=-8.261134212156065 width=3.7388657878439355 - leftPadding=6 - rightPadding=6
thanks for your help.
Hi, thanks for the detailed report and the log.
The crash comes from the zone matrix page of the PDF report. Your firewall has about 179 zones, and the matrix put all the destination zones in a single table on one page: the columns became narrower than their padding and reportlab raised "negative availWidth", which made the whole analysis fail right after the graphs.
I have a fix: the destination columns are now split into blocks of 10, each block repeating the source column. With a matrix of 180 zones (like yours) the PDF is generated again, so the analysis should complete.
One caveat: on a matrix this large the PDF becomes very long (about 163 pages for 180 zones). We are going to run more tests to check whether the PDF is still readable at that size and whether a different layout is needed. In the meantime, the Excel workbook and the CSV of the matrix (
The fix will be in the next release. If you can, please try it on your real configuration once it is out and tell us how the PDF looks. Thanks again!