Created
February 17, 2019 21:32
-
-
Save wesinator/27e9f1f1443205b2bb169d0efa7c93f5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # 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