Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created January 7, 2022 02:39
Show Gist options
  • Save miguelmota/426380382431dd6e07a0fc180c33c7c3 to your computer and use it in GitHub Desktop.
Save miguelmota/426380382431dd6e07a0fc180c33c7c3 to your computer and use it in GitHub Desktop.
Linux iptables block Docker container from accessing AWS metadata API (169.254.169.254)
sudo iptables --insert DOCKER-USER --destination 169.254.169.254 --jump REJECT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment