Created
January 30, 2019 22:00
-
-
Save dewomser/01f49f8000b8ce5a145bea65d00f41ff to your computer and use it in GitHub Desktop.
greensnow ufw bash crontab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read line; do sleep .5;ufw delete deny from $line; done < greensnow.txt | |
sleep 1 | |
rm greensnow.txt | |
wget https://blocklist.greensnow.co/greensnow.txt | |
sleep 1 | |
while read line; do sleep .5;ufw deny from $line to any; done < greensnow.txt | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Be careful .This script may damage your iptables