Skip to content

Network engineers working in denied areas rquire access to a reliable subnet calculator that can operate off-line. Because U.S. Government computers have restrictions on the applications that administrators can install, there are few options which meet these criteria. This software does not require any compiling and does not write to the system …

Notifications You must be signed in to change notification settings

Artemis-Holdings/TheSub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                           |`-:_
  ,----....____            |    `+.
 (             ````----....|___   |
  \     _                      ````----....____
   \    _)                                     ```---.._
    \                                                   \
  )`.\  )`.   )`.   )`.   )`.   )`.   )`.   )`.   )`.   )`.   )
-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `-'   `

------------------------------------------------

The Sub: Expeditionary VLSM Calculator

This application can calculate IPv4 subnets for complex networks in resource constrained runtimes.

Network engineers working in denied areas rquire access to a reliable subnet calculator that can operate off-line. Because U.S. Government computers have restrictions on the applications that administrators can install, there are few options which meet these criteria. This software does not require any compiling and does not write to the system allowing for usage on any government computer.

UPDATE

New powershell script available.

Powershell Features

  • Can run in any windows environment natively.
  • Simplified math allows for small program file ~12kb
  • Made with security in mind.
  • Does not require external modules.
  • Outputs in CSV format for easy import into Excel.
  • Can calculate up to 40 subnets. Posibly higher, but not tested.
  • Works without internet connection.
  • Does not require administrator privlages to run.

Python Features

  • Requires the basic python interpreter (anaconda not required).
  • Simplified math allows for small program file ~14kb
  • Made with security in mind.
  • Does not require external modules. Tabulate module is optional.
  • Outputs in CSV format for easy import into Excel.
  • Can calculate up to 40 subnets. Posibly higher, but not tested.
  • Works without internet connection.
  • Does not require administrator privlages to run.

FAQ

  • Why are the IP addresses outputted with commas and brackets? The IP addresses are stored and operated upon in a list format. The format is preserved for output into other applications if needed.
  • Why python and not java or C? Most government computers have python installed and can run simple scripts, but cannot support additional moduals. The Sub does not have any external dependencies other than the "Tabulate" module.
  • What happens if I don't copy or want to use Tabulate? The Sub will still work without tabulate module, butt you will need to import the printout into Excel to view your calculation in a human readable format.
  • What is CSV? Comma Seperated Values (CSV) is a file format for storing spreadsheet data. CSV files are saved in a text file and opend in spreadsheet software.

1 - Install and initiate application

  1. Create a directory to save the calculator and required modules. If possible, you can fork or clone this repo. But this instruction set assumes that git is not available on your machine.
  2. Copy and paste the the main.py file into a text document on your local machine. Save the file as a .py extension.
  3. Optional: Copy and paste the tabulate.py file in the same directory. If you do not copy the tabulate module, The Sub will only output a CSV format.
  4. In powershell or CMD Prompt, navigate to the directory with the file.
  5. Enter the following command: py main.py

2 - Usage

  1. Enter your network IPv4. The Sub will not subnet or accept IPv6.
  2. Enter your subnet mask in dotted decimal or CIDR in slash notation.
  3. Enter the desired amount of subnets. The Sub is tested up to 40 subnets, but can probably go higher.
  4. Enter the common name for your network. Any easy to remember Alpha Numeric string is acceptable.
  5. Enter the number of hosts required for the network. Include network devices (switches, firewalls). DO NOT Include broadcast or network address, the calculator will account for those addresses. Screencap of CLI for The Sub

3 - Excel Integration

  1. Highlight and copy the CSV output.
  2. Paste the text into a notepad.
  3. Save the text file with a .csv extension.
  4. Open Excel.
  5. Navigate to the Data tab.
  6. Click, "From Text/CSV"
  7. Select your file, click import on the bottom right of the window.
  8. On the top drop down "delimiter", choose colon.
  9. Click import. Import Tabs on Excel Location of Data tab and CSV import button. Excel Import settings Required import settings for CSV in Excel.

About

Network engineers working in denied areas rquire access to a reliable subnet calculator that can operate off-line. Because U.S. Government computers have restrictions on the applications that administrators can install, there are few options which meet these criteria. This software does not require any compiling and does not write to the system …

Resources

Stars

Watchers

Forks

Packages

No packages published