- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add mulitple static routes
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yep, here's the version that actually WORKS...
Version:0.9 StartHTML:-1 EndHTML:-1 StartFragment:128 EndFragment:3427 StartSelection:128 EndSelection:3427
