3 ms·
I haven't checked today, but e.g. Amazon's JSON file belies the fact that they own 3.0.0.0/8 in practice if not in fact. I'm not going to play "let's block Amaz
by m3047 2y ago
I haven't checked today, but e.g. Amazon's JSON file belies the fact that they own 3.0.0.0/8 in practice if not in fact. I'm not going to play "let's block Amazon's huge JSON list". I've got 53 rules. I'm willing to step on some fingers / toes. I can get to sites in AWS just fine.
- oneplane 2y agoAmazon does have 3.0.0.0/8. Granted, it is noted as two separate /9 blocks, but it's all Amazon. Perhaps a better use of your time (because de-balkanization of the internet would be more of an academic exercise than a mass market reality; consumers have already self-selected into social media and crappy LLM outputs which is a far bigger matter and driver than ephemeral resources or reverse DNS) would be making your TLS work in a way that doesn't allow for easy abuse. So automatic redirects, HSTS, and a certificate that is standards-compliant.
- huggingmouth 2y ago> consumers have already self-selected into ... crappy LLM outputs Tangent, but last I checked, it was all the big tech giants pushing it down our throat. Unless it's your full time job to find loopholes and workarounds, there is no reasonable way for consumers to opt-out.
- zamadatix 2y ago> I haven't checked today, but e.g. Amazon's JSON file belies the fact that they own 3.0.0.0/8 in practice if not in fact. While it may seem more useful to aggregate the ranges in some points of view it'd be significantly less useful from other points of view. E.g. those who want to whitelist any IP ranges matching a specific DC, service, availability zone, or country. You can always aggregate the detailed list but you can't do the inverse on your own.
- hughesjj 2y agoAnd you don't even have to invent the aggregation from scratch https://cidr-aggregator.pages.dev/ https://cidr-aggregator.pages.dev/
- LinuxBender 2y agoI don't remember where I found this but there is also some perl code that will do it. I wish they added a comment so I could give them credit. I use it to build block lists for adding null routes on hobby web servers using a few blocklists from around the web and for importing data from BGP AS databases. It keeps my routing table below 300K. It's only for ipv4. [Edit] I think this might be where I found it [1] #!/usr/bin/perl use strict; use warnings; use Net::CIDR::Lite; my $ipv4String='[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'; if(defined $ARGV[0] && $ARGV[0] eq '-h'){ print "usage: $0 This script summarizes your IP classes (if possible). Input IPs with mask one per line. End with CTRL+D. Optionally, redirect a file to stdin like so: $0 < cidr.txt "; exit; } print "Enter IP/Mask one per line (1.2.3.0/24). End with CTRL+D.\n"; my $cidr =Net::CIDR::Lite->new; while(<>){ if(/($ipv4String\/[0-9]{1,2})/){ my $item=$1; $cidr->add($item); } else{ print "Ignoring previous line.\n"; } } my @cidr_list = $cidr->list; print "======Aggregated IP list:======\n"; foreach my $item(@cidr_list){ print "$item\n"; } [1] - https://adrianpopagh.blogspot.com/2008/03/route-summarization-script.html https://adrianpopagh.blogspot.com/2008/03/route-summarizatio...
- quectophoton 2y agoIf using Python, there's a nice method too: https://docs.python.org/3/library/ipaddress.html#ipaddress.collapse_addresses https://docs.python.org/3/library/ipaddress.html#ipaddress.c...
- theginger 2y agoIt was ge sold to Amazon a few years ago. There was a thread about it here https://news.ycombinator.com/item?id=24840405 https://news.ycombinator.com/item?id=24840405