Skip to content

Instantly share code, notes, and snippets.

@dewomser
Created January 30, 2019 22:00
Show Gist options
  • Select an option

  • Save dewomser/01f49f8000b8ce5a145bea65d00f41ff to your computer and use it in GitHub Desktop.

Select an option

Save dewomser/01f49f8000b8ce5a145bea65d00f41ff to your computer and use it in GitHub Desktop.
greensnow ufw bash crontab
#!/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
@dewomser
Copy link
Copy Markdown
Author

Be careful .This script may damage your iptables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment