Routing for Metadata Service

We highly recommend you check out the ECS credential provider emulator capability instead of using the Metadata service capability. But if needed, here are the steps:

Run commands:

sudo ifconfig lo0 alias

echo "rdr pass on lo0 inet proto tcp from any to port 80 -> port 9091" | sudo pfctl -ef -

Alternatively to persist the settings above on a Mac, download the plists and place them in /Library/LaunchDaemons and reboot or issue the following commands:

launchctl load /Library/LaunchDaemons/com.user.weep.plist
launchctl load /Library/LaunchDaemons/com.user.lo0-loopback.plist

Last updated