Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mattatcha/373edb2d5b815d0c2dd3a8d3c3b9ab23 to your computer and use it in GitHub Desktop.
Save mattatcha/373edb2d5b815d0c2dd3a8d3c3b9ab23 to your computer and use it in GitHub Desktop.
Block users access to AWS EC2 meta data
sudo iptables -A OUTPUT -m owner ! --uid-owner root -d 169.254.169.254 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment