Skip to content

Instantly share code, notes, and snippets.

@chrisfranko
Last active August 30, 2021 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisfranko/2e5352bf7df5b3b74f3347eb3cce9159 to your computer and use it in GitHub Desktop.
Save chrisfranko/2e5352bf7df5b3b74f3347eb3cce9159 to your computer and use it in GitHub Desktop.
Fuck this guy
sudo apt-get install ipset
ipset create blacklist hash:ip hashsize 4096 &&
iptables -I INPUT -m set --match-set blacklist src -j DROP &&
iptables -I FORWARD -m set --match-set blacklist src -j DROP
ipset add blacklist 103.137.20.5
ipset add blacklist 195.123.222.16
ipset add blacklist 85.206.160.91
ipset add blacklist 167.99.218.34
ipset add blacklist 62.182.85.30
ipset add blacklist 62.182.82.30
ipset add blacklist 167.99.211.220
ipset add blacklist 188.166.82.157
ipset add blacklist 167.71.9.43
ipset add blacklist 103.137.20.5
ipset add blacklist 178.62.248.76
ipset add blacklist 159.65.198.189
ipset add blacklist 193.56.29.33
ipset add blacklist 206.189.111.118
ipset add blacklist 142.93.236.178
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment