mirror of
https://github.com/cham423/cs-tools
synced 2026-06-08 13:30:34 +00:00
adding hacky CloudFront firewall script for opsec
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
apt install ufw
|
||||
ufw allow ssh
|
||||
ufw default deny incoming
|
||||
ufw default allow outgoing
|
||||
for ip in $(curl https://ip-ranges.amazonaws.com/ip-ranges.json | jq '.prefixes[] | select(.service? == "CLOUDFRONT") | .ip_prefix?' | tr -d '"'); do ufw allow proto tcp from $ip to any port 80,443; done
|
||||
ufw enable
|
||||
Reference in New Issue
Block a user