Skip to content
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

Conversion from netscreen not working #20

Open
marcodalli opened this issue Apr 16, 2024 · 0 comments
Open

Conversion from netscreen not working #20

marcodalli opened this issue Apr 16, 2024 · 0 comments

Comments

@marcodalli
Copy link

Hi,
I'm trying to convert a Juniper SSG config file to Fortigate, but every time I try I get an error.
Same error if I use as input one of the provided config files:
marco@MNB:~/DirectFire_Converter$ python3 converter.py -c /home/marco/DirectFire_Converter/tests/netscreen/netscreen.txt -s netscreen -d fortigate Traceback (most recent call last): File "/home/marco/DirectFire_Converter/converter.py", line 261, in <module> main(src_format=args.source, dst_format=args.destination, routing_info=args.routing) File "/home/marco/.local/lib/python3.11/site-packages/traceback_with_variables/print.py", line 98, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/marco/DirectFire_Converter/converter.py", line 247, in main dst_config = generate(dst_format=dst_format, parsed_data=parsed_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/marco/DirectFire_Converter/converter.py", line 177, in generate dst_config = generate(parsed_data) ^^^^^^^^^^^^^^^^^^^^^ File "/home/marco/DirectFire_Converter/DirectFire/Converter/generators/fortigate.py", line 362, in generate for ports in attributes["dst_ports"]: ~~~~~~~~~~^^^^^^^^^^^^^ KeyError: 'dst_ports'

I also tried using ciscoasa as destination, same thing.
It works if I use other firewalls as input (i.e. Juniper SRX to Fortigate).

Could you please help me solve this issue?

Thank you,
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant