-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error's when going from Fortigate to Cisco #10
Comments
Log file: |
Hi @mattynealo, Looking through the log, have you changed the IP in your routing to X.X.X.X before running your config through the converter? Or have you just replaced this in the log? Can you share the full 'config router static' section of the config please? Or output of command 'show router static' on the fortigate. Thanks, |
Glenn,
Thanks for the quick response the x.x.x.x is a scrubbed ip as I didn’t want
it posted publicly.
On Sun, Aug 1, 2021 at 9:35 AM Glenn ***@***.***> wrote:
Hi @mattynealo <https://github.com/mattynealo>,
Looking through the log, have you changed the IP in your routing to
X.X.X.X before running your config through the converter? Or have you just
replaced this in the log?
Can you share the full 'config router static' section of the config
please? Or output of command show router static on the fortigate.
Thanks,
Glenn
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3A3PYTIER5ZCE5FZ3RAVLT2VETPANCNFSM5BLB5O5Q>
.
--
Thanks,
Matt
|
See Below: config router static |
Hi @mattynealo, Thanks for sharing your config. I have made some updates to the FortiGate parser module which hopefully resolves. Can you pull the latest from git and try again? Glenn |
Thanks Glenn, Looks like it still has errors on the GeoBlocks I removed Moldova which was in the first log and then it errored at the next which was Russia. see log below: |
I have permission to upload the whole config |
Thanks @mattynealo, will have a look into this. I've downloaded your config and removed it from your comment as it's potentially sensitive. Glenn |
@glennake Thank you so much, Is there a way I can contribute to this project? |
Hi @mattynealo, I've made a few fixes and additions which mean the tool will process your config without erroring now if you can pull the latest. I have not checked for accuracy so please make sure you do before using any configs from it, and let me know of any issues you find. Always happy for additional contributors, if you can work in Python feel free to fork and improve any existing modules, or add your own for new vendors. Then raise a pull request for your changes to be reviewed for merge. Thanks, |
@glennake I am not a programmer... I was asking if I could buy you a beer or financially contribute for your time. |
THis is great so far, Looks like it stops right after the groups and network objects, but doesn't convert any of the rules. |
Also is it suppose to output to a file? If so I can't seem to find it. |
@mattynealo really appreciate the offer, thank you. It's fine though, you don't have to. FortiGate parsing support is detailed here, I've just added service objects and service groups. Will add policies as soon as I can. Glenn |
Traceback (most recent call last):
File "converter.py", line 254, in
main(src_format=args.source, dst_format=args.destination, routing_info=args.routing)
File "/home/user/.local/lib/python3.8/site-packages/traceback_with_variables/print.py", line 98, in wrapper
return func(*args, **kwargs)
File "converter.py", line 230, in main
parsed_data = parse(
File "converter.py", line 127, in parse
parsed_data = parse(src_config, routing_info)
File "/home/user/DirectFire_Converter/DirectFire/Converter/parsers/fortigate.py", line 118, in parse
route["network"] = re_match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
The text was updated successfully, but these errors were encountered: