2017 © Pedro Peláez
 

library submuncher

Tool for consolidating subnets

image

silverstripeltd/submuncher

Tool for consolidating subnets

  • Monday, April 23, 2018
  • by mateusz
  • Repository
  • 5 Watchers
  • 0 Stars
  • 333 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 135 % Grown

The README.md

Submuncher

Tool for shortening CIDRs lists., (*1)

Inspired by @andrewandante https://github.com/andrewandante/submuncher., (*2)

Promises

The tool promises the list will be shortened to desired maximum size. It also promises all input addresses will be included within the output CIDRs., (*3)

It does not guarantee output list will not have ("leak") non-input IPs. In other words, it consolidates the list by merging CIDRs and making them bigger., (*4)

Algorithm aims to minimise the leak size., (*5)

Example

$longList = ['1.1.1.0', '1.1.1.1', '1.1.1.2'];
$subMuncher = new SubMuncher();
$shortList = $subMuncher->consolidate($longList, 1);
// $shortList is ['1.1.1.0/30']
echo $subMuncher->getLeakTotal();
// Outputs "1" - 1.1.1.3 was leaked.

The Versions

23/04 2018

dev-master

9999999-dev

Tool for consolidating subnets

  Sources   Download

MIT

The Requires

 

The Development Requires

22/04 2018

1.0

1.0.0.0

Tool for consolidating subnets

  Sources   Download

MIT

The Requires

 

The Development Requires