Giter VIP home page Giter VIP logo

aclgrep's Introduction

ACLGrep

Description

This is a simple script to easily grep ACL control files from various sources.

It knows about IP addresses and subnet masks providing some advantage over using the standard grep command.

If you are looking for a certain IP address all lines whose subnets contain the IP address will match. Additionally you can filter for ports and give different parameters for source and destination.

Usage

Basic usage information is available on the command line when using the -h oder --help switch.

Usage: aclgrep.py [options] [file, file, ...]

Options:
  -h, --help            show this help message and exit
  -a, --any             Match ACLs with 'any', too
  -i SOURCE_IP, --sip=SOURCE_IP
                        Source IP to look for
  -p SOURCE_PORT, --sport=SOURCE_PORT
                        Source port to look for
  -I DESTINATION_IP, --dip=DESTINATION_IP
                        Destination IP to look for
  -P DESTINATION_PORT, --dport=DESTINATION_PORT
                        Destination port to look for
  -o PROTOCOL, --proto=PROTOCOL
                        Protocol to look for

Details

One goal was to make the script as portable as possible:

  • everything you need is a somewhat recent Python installation
  • no installation required
  • single file

To use this you only need the aclgrep.py script from the main directory. All other files are test cases used during development.

Important note: This is still work in progress, so expect errors to occur!

aclgrep's People

Contributors

imhof avatar gitgoonie avatar

Watchers

 avatar

Forkers

gitgoonie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.