Azure Container Instances as SOCKS proxy

ยท 180 words ยท 1 minute read
view gist on GitHub

Azure Container Instances as SOCKS proxy ๐Ÿ”—

Sometimes it’s useful to originate traffic from a specific region - etc to test global load balancers, DNS, etc. A common way to do this is to SSH to some remote VPN service or VM, then forward your traffic through that remote endpoint.

You can also use this to watch Netflix outside of your current country while traveling abroad :P

Azure Container Instances are a quick & easy way to do this as well - launch the ssh daemon in a container, expose port 22, and start forwarding traffic!

Check out the regions you can forward traffic on the Products available by region page

How to use ๐Ÿ”—

Follow the steps in proxy.sh

Why this is a gist ๐Ÿ”—

I’ve not changed the default root:root password, and I’m exposing port 22. Please secure your ssh daemon and don’t use this as-is in a production environment

Extra credit ๐Ÿ”—

You probably don’t want to leave your proxy container running in case you forget. Use my self-destruct CLI extension to have it automatically clean itself up after N hours!

proxy.sh