Git Product home page Git Product logo

aclmaker's Introduction

ACLMaker

Given a list of IPs and subnets, this program calculates the least number of lines required to write the ACL

Some notes:

  • It currently only works for the last octect of the IPv4 address space
  • When entering in networks, enter the ip address followed by the subnet
  • The program assumes that the router has an implicit DENY ALL at the end of every list
  • This program is not maintained
  • The effeciency of the program is questionable due to the nature of needing to write down every host along with a subnet. At that rate, it would probably be faster to just type "deny host x.x.x.x" into an ACL and be on with your life

Examples:

Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.2 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.4 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.16 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.42 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.94 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.124 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.206 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.46 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.86 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 
permit 192.168.0.42 0.0.0.4
permit 192.168.0.94 0.0.0.8
permit 192.168.0.2 0.0.0.0
permit 192.168.0.4 0.0.0.0
permit 192.168.0.16 0.0.0.0
permit 192.168.0.124 0.0.0.0
permit 192.168.0.206 0.0.0.0


Finished in 1.72 seconds.
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.6 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.9 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.7 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.16 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.5 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.2 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.12 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.14 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 192.168.0.0 255.255.255.0
Enter a network to calculate the access list or press 'Enter' to exit: 
deny 192.168.0.4 0.0.0.0
permit 192.168.0.6 0.0.0.3
deny 192.168.0.18 0.0.0.0
permit 192.168.0.16 0.0.0.18
permit 192.168.0.12 0.0.0.2
permit 192.168.0.9 0.0.0.0


Finished in 1.79 seconds.

aclmaker's People

Contributors

trdan6577 avatar

Watchers

James Cloos avatar  avatar

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.