| 1 | #=============================================================================== | ||
| 2 | # PODNAME: Net::IP::Identifier::Plugin::Amazon | ||
| 3 | # ABSTRACT: identify Amazon owned IP addresses | ||
| 4 | # | ||
| 5 | # AUTHOR: Reid Augustin (REID) | ||
| 6 | # EMAIL: reid@hellosix.com | ||
| 7 | # CREATED: Sun Nov 16 17:18:54 PST 2014 | ||
| 8 | #=============================================================================== | ||
| 9 | |||
| 10 | use 5.008; | ||
| 11 | use strict; | ||
| 12 | use warnings; | ||
| 13 | |||
| 14 | package Net::IP::Identifier::Plugin::Amazon; | ||
| 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 Amazon IP blocks as of May 2015 | ||
| 28 | # AS9059 AS8987 AS7224 AS58588 AS39111 AS38895 AS17493 AS16509 AS14618 AS10124 | ||
| 29 | $self->ips( | ||
| 30 | # 42 Network Blocks | ||
| 31 | # extending 8.18.144.0/24 to include 8.18.145.0/24 | ||
| 32 | '8.18.144.0/23', | ||
| 33 | '23.20.0.0/14', | ||
| 34 | '27.0.0.0/22', | ||
| 35 | '46.51.128.0/17', | ||
| 36 | '46.137.0.0/16', | ||
| 37 | '50.16.0.0/14', | ||
| 38 | '50.112.0.0/16', | ||
| 39 | # extending 54.64.0.0/13 to include 54.72.0.0/13 | ||
| 40 | # extending 54.64.0.0/12 to include 54.80.0.0/12 | ||
| 41 | '54.64.0.0/11', | ||
| 42 | # extending 54.144.0.0/12 to include 54.160.0.0/12 | ||
| 43 | # extending 54.144.0.0-54.175.255.255 to include 54.176.0.0/12 | ||
| 44 | # extending 54.144.0.0-54.191.255.255 to include 54.192.0.0/12 | ||
| 45 | # extending 54.144.0.0-54.207.255.255 to include 54.208.0.0/13 | ||
| 46 | # extending 54.144.0.0-54.215.255.255 to include 54.216.0.0/14 | ||
| 47 | # extending 54.144.0.0-54.219.255.255 to include 54.220.0.0/15 | ||
| 48 | '54.144.0.0-54.221.255.255', | ||
| 49 | # extending 54.224.0.0/12 to include 54.240.0.0/12 | ||
| 50 | '54.224.0.0/11', | ||
| 51 | '67.202.0.0/18', | ||
| 52 | '72.21.192.0/19', | ||
| 53 | '72.44.32.0/19', | ||
| 54 | '75.101.128.0/17', | ||
| 55 | '79.125.0.0/17', | ||
| 56 | '87.238.80.0/21', | ||
| 57 | '96.127.0.0/17', | ||
| 58 | '103.246.148.0/22', | ||
| 59 | '107.20.0.0/14', | ||
| 60 | '122.248.192.0/18', | ||
| 61 | '174.129.0.0/16', | ||
| 62 | '176.32.64.0/18', | ||
| 63 | '176.34.0.0/16', | ||
| 64 | '178.236.0.0/20', | ||
| 65 | '184.72.0.0/15', | ||
| 66 | '184.169.128.0/17', | ||
| 67 | '185.48.120.0/22', | ||
| 68 | '199.127.232.0/22', | ||
| 69 | '199.255.192.0/22', | ||
| 70 | '203.83.220.0/22', | ||
| 71 | '204.236.128.0/17', | ||
| 72 | '204.246.160.0/19', | ||
| 73 | '205.251.192.0/18', | ||
| 74 | '207.171.160.0/19', | ||
| 75 | '216.137.32.0/19', | ||
| 76 | '216.182.224.0/20', | ||
| 77 | '2400:6500::/32', | ||
| 78 | '2403:b300::/32', | ||
| 79 | '2406:da00::/24', | ||
| 80 | '2620:107:3000::/44', | ||
| 81 | '2620:108:7000::/44', | ||
| 82 | '2a01:578::/32', | ||
| 83 | ); | ||
| 84 | return $self; | ||
| 85 | } | ||
| 86 | |||
| 87 | sub name { | ||
| 88 | return 'Amazon'; | ||
| 89 | } | ||
| 90 | |||
| 91 | 1; | ||
| 92 | |||
| 93 | __END__ |