Giter Club home page Giter Club logo

aws-blocker's People

Contributors

aleho avatar chubbard avatar jacoballred avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-blocker's Issues

Getting an error trying aws-block: Join is not defined.

I got the latest script and tried to execute it using:

sudo ./aws-blocker

And I got the following error:

2 compile errors
error: join is not defined
[ .ipv6_prefixes[] ] | group_by(.ipv6_prefix) | map({ "ip": .[0].ipv6_prefix, "regions": map(.region) | 
unique, "services": map(.service) | unique }) | .[] | .ip + " \"" + (.regions | sort | join (", ")) + "\" \"" + 
(.services | sort | join (", ")) + "\""
                                                                                                                                                                                           
^^^^
error: join is not defined
[ .ipv6_prefixes[] ] | group_by(.ipv6_prefix) | map({ "ip": .[0].ipv6_prefix, "regions": map(.region) | 
unique, "services": map(.service) | unique }) | .[] | .ip + " \"" + (.regions | sort | join (", ")) + "\" \"" + 
(.services | sort | join (", ")) + "\""
                                                                                                                                                                                                                                        
^^^^
2 compile errors

I'm on ubuntu, and /usr/bin/join is there. I checked the $PATH for root, and it has /usr/bin on the path. So I'm not sure why it can't find it.

aws-unblocker?

After blocking/banning there should be a way to undo it. ;)

I never used iptables as command-line, but I think this is the solution?
# iptables -F AWS

Could really use an unban option to the script

I found after a week or so of blocking AWS, it was preventing https certifications from renewing (letsencrypt.org), causing certbot renew operations to fail with "connection refused" when their "multi-perspective" validation checks tried to come in from different locations to verify our webserver, some of which are apparently AWS originated and REJECT'ed.

It'd be good if there was a simple option to the script to 'unban' all the AWS chains.

Some IPs missing from ranges

54.157.217.95

Shows as ec2-54-157-217-95.compute-1.amazonaws.com according to various IP lookup sites but amazon denies it according to their JSON. I know its not part of this package... but any idea what's going on here?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.