Hello all,
I am new to the forum as well as new to Fortigate. I am looking at switching over from another firewall vendor and there is no converter for them. I need to add about 140 static routes and I am not looking forward to manually entering all of them. I wanted to know if anyone has a batch file or script that will parse a text file and output it to a file and I can paste into the CLi. Any help would be greatly appreciated!
Thank you in advance!!
Solved! Go to Solution.
Hi Dano,
If you can share the text file from the other firewall containing the routes, I might be able to provide a Notepad++ macro to perform the conversion.
-prithvi
I've stirred up a quick hack to get this done. It's a Windows command script, reading a plain text file in CSV format.
@echo off
192.168.47.0,255.255.255.0,192.168.1.1,internal,10
10.16.99.0,255.255.240.0,172.16.23.254,vl_company,20
Hi Dano,
If you can share the text file from the other firewall containing the routes, I might be able to provide a Notepad++ macro to perform the conversion.
-prithvi
I would like to thank all that replied. ede_pfau provided a script for me that was able to create the routes from my extract out of the old firewall.
Thanks so much!
Yep, here's the version that actually WORKS...
Version:0.9 StartHTML:-1 EndHTML:-1 StartFragment:128 EndFragment:3427 StartSelection:128 EndSelection:3427
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1742 | |
1114 | |
760 | |
447 | |
241 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.