| 1 | #=============================================================================== | ||
| 2 | # PODNAME: Net::IP::Identifier::Plugin::B2_Net | ||
| 3 | # ABSTRACT: identify B2_Net Solutions (AS55286) owned IP addresses | ||
| 4 | # | ||
| 5 | # AUTHOR: Reid Augustin (REID) | ||
| 6 | # EMAIL: reid@hellosix.com | ||
| 7 | # CREATED: Sun Oct 12 19:32:46 PDT 2014 | ||
| 8 | #=============================================================================== | ||
| 9 | |||
| 10 | use 5.008; | ||
| 11 | use strict; | ||
| 12 | use warnings; | ||
| 13 | |||
| 14 | package Net::IP::Identifier::Plugin::B2_Net; # _ENTITY_REGEX_ B2.Net | ||
| 15 | |||
| 16 | use Role::Tiny::With; | ||
| 17 | with qw( Net::IP::Identifier_Role ); | ||
| 18 | |||
| 19 | our $VERSION = '0.106'; # VERSION | ||
| 20 | |||
| 21 | sub new { | ||
| 22 | my ($class, %opts) = @_; | ||
| 23 | |||
| 24 | my $self = {}; | ||
| 25 | bless $self, (ref $class || $class); | ||
| 26 | |||
| 27 | # List of known B2_Net Solutions (AS55286) IP blocks as of May 2015 | ||
| 28 | $self->ips( | ||
| 29 | # 17 Network Blocks | ||
| 30 | '23.229.0.0/17', | ||
| 31 | '23.236.128.0/17', | ||
| 32 | '23.250.0.0/17', | ||
| 33 | '23.254.0.0/17', | ||
| 34 | '69.4.80.0/20', | ||
| 35 | '69.58.0.0/20', | ||
| 36 | '104.144.0.0/16', | ||
| 37 | '104.227.0.0/16', | ||
| 38 | '107.152.128.0/17', | ||
| 39 | '138.128.0.0/17', | ||
| 40 | '192.157.48.0/20', | ||
| 41 | '192.186.128.0/18', | ||
| 42 | '192.198.96.0/19', | ||
| 43 | '192.241.64.0/18', | ||
| 44 | '198.20.160.0/19', | ||
| 45 | '198.154.80.0/20', | ||
| 46 | '198.245.64.0/20', | ||
| 47 | ); | ||
| 48 | return $self; | ||
| 49 | } | ||
| 50 | |||
| 51 | sub name { | ||
| 52 | return 'B2_Net'; | ||
| 53 | } | ||
| 54 | |||
| 55 | 1; | ||
| 56 | |||
| 57 | __END__ |