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

Project cisco acl parsing #14

Merged
merged 51 commits into from
Apr 23, 2020
Merged

Project cisco acl parsing #14

merged 51 commits into from
Apr 23, 2020

Conversation

cctechwiz
Copy link
Contributor

@cctechwiz cctechwiz commented Apr 7, 2020

Closes #4


This PR includes the following enhancements to nmdb-import-cisco :

  • Documents format of cisco access-list rules
  • Parsing / saving access-list extended information into NetBooks, ServiceBooks, and RuleBooks
  • Parsing access-group information to show which rules are applied to a given interface
  • A full implementation of IpNetwork::setWildcardMask for contiguous masks

This PR does NOT include the following:

  • Parsing / saving access-list standard' information (logged as Notable`)
  • Marking / saving AcRules that have been defined but not applied (logged as Notable)
  • Exploding NetBooks, ServiceBook, or RuleBooks (since everything is currently global)

marshall-sg and others added 30 commits March 17, 2020 09:50
simply copied.

Mainly, the Cisco parser uses indentation to group the related rules
under a name. Whereas the ASA parser uses a new line for each rule.
All parsing will currently only be done against extended rules.
Standard rules are logged as unsups.
handles (rules added in comments around parser logic).
still.

There is also some clean up that can be done with merging rules and
returning data rather than calling functions for every sub-rule.
testing to auto-populate
There are a few things left to do:
  - Use setWildcardMask (dummy implementation done)
  - Create parser for ip access-group
  - Create save logic in tool
  - Verify everything is saving correctly and looks the same as ASA
  parser
Copy link
Contributor Author

@cctechwiz cctechwiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to resolve comments and suggestions before merging.

LICENSE Show resolved Hide resolved
core/objects/IpNetwork.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.hpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.hpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Show resolved Hide resolved
@cctechwiz
Copy link
Contributor Author

My review is done, and I've changed everything but the last two items above that I want your input on.

Copy link
Collaborator

@marshall-sg marshall-sg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See targeted notes for change info.

core/objects/IpNetwork.cpp Outdated Show resolved Hide resolved
LICENSE Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.hpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Outdated Show resolved Hide resolved
importers/nmdb-import-cisco/Parser.cpp Show resolved Hide resolved
@marshall-sg marshall-sg added this to WIP: Week in FC#001 Apr 14, 2020
@marshall-sg marshall-sg removed this from WIP: Week in FC#001 Apr 14, 2020
Copy link
Contributor Author

@cctechwiz cctechwiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that covers all requested changes.

@marshall-sg marshall-sg self-assigned this Apr 23, 2020
@marshall-sg marshall-sg self-requested a review April 23, 2020 14:06
Copy link
Collaborator

@marshall-sg marshall-sg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. Regression looks good.

@marshall-sg marshall-sg merged commit 437c628 into master Apr 23, 2020
@marshall-sg marshall-sg deleted the project-cisco-acl-parsing branch April 23, 2020 17:58
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

Successfully merging this pull request may close these issues.

ACL Processing for nmdb-import-cisco
2 participants