On v4 it is 169.254.169.254 hence the final 254 (and other services like DNS at 253), but using the ULA range of ec2 is a simple, effective touch.
On v4 it is 169.254.169.254 hence the final 254 (and other services like DNS at 253), but using the ULA range of ec2 is a simple, effective touch.
I prefer the latter as it's far simpler.
iptables -A OUTPUT \
-d 169.254.0.0/16 \
-m owner -j REJECT \
'!' --uid-owner 0Put yourself in AWS's position. Your customer is running a VM which you have only hypervisor level control over. Could be Linux, could be AIX, could be an appliance. How could you possibly implement user/process level security from the outside? How could you know what processes inside the opaque black box are the privileged ones?
> From AWS’s perspective the whole VM is in the same security context.
That's AWS's perspective. But my perspective, as an AWS customer, is important as well. And I might want to run something on a VM that I myself don't necessarily trust - that is the ultimate benefit of an ephemeral, isolated VM.Which could be a problem if intention was to allow it, as your sibling comment points out.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configur...
When you use the AWS SDK, it abstracts it away anyway
Maybe a serial device or something like that would be more appropriate.
(At least, I was trying to point that out, but re-reading my post it's obvious that I didn't do a very good job.)