--- tags: fortigate --- # 如何匯出FortiGate FW Policy到CSV 2022/04/25 因有需求要匯出所有policy出來, 爬文發現[參考1]有FortiPolicyExport工具可以使用, 但我使用會出錯只能另尋他法 找到[參考2]成功匯出 ## 匯出教學 1. 將FW設定備份一份出來 > `https://<FW IP>/ng/system/config/backup`  3. 接著從GitHub把轉換用的python工具抓下來 > https://github.com/maaaaz/fgpoliciestocsv/blob/master/fgpoliciestocsv.py 4. 輸入 > `python fgpoliciestocsv.py -i <設定檔.conf> -d ","`  5. 成功匯出 預設會匯出到同資料夾下的policies-out.csv (可加上 `-o` 參數改變名稱) ## 參考連結 [1]. [Fortigate Policy Export](http://www.tuncaybas.com/index.php/fortigate-policy-export) [2]. [Technical Tip: How to export IPv4 Policies from FortiGate to Excel.](https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-export-IPv4-Policies-from-FortiGate-to/ta-p/191623)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up