Skip to content

Instantly share code, notes, and snippets.

@wesinator
Created February 17, 2019 21:32
Show Gist options
  • Select an option

  • Save wesinator/27e9f1f1443205b2bb169d0efa7c93f5 to your computer and use it in GitHub Desktop.

Select an option

Save wesinator/27e9f1f1443205b2bb169d0efa7c93f5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Put a list of IPs into UFW
IPs=ips.txt
for ip in `cat $IPs` ; do sudo ufw deny out to $ip; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment