Skip to content

Script to ban all Amazon Web Services IP Ranges in your Linux Bitcoin node

License

Notifications You must be signed in to change notification settings

iioch/ban-aws-bitcoin-nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Ban Bitcoin nodes that are using AWS IP addresses

Script to ban all Amazon Web Services IP address ranges. Protect your node's ressources from VPS nodes.

The list of AWS IP ranges is obtained from http://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html

Requirements for the bash script (ban.sh)

Command-line JSON processor jq.

Install on Debian-based Linux

sudo apt-get install jq

Download and use the script

git clone https://github.com/iioch/ban-aws-bitcoin-nodes.git

Run:

cd ban-aws-bitcoin-nodes   
chmod u+x ban.sh   
./ban.sh

To view banned IP addresses:

bitcoin-cli listbanned

To clear banned IP addresses:

bitcoin-cli clearbanned

About

Script to ban all Amazon Web Services IP Ranges in your Linux Bitcoin node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages