Prasit Mankad

Your own private proxy for $5 a month

An AWS Lightsail instance in Mumbai and an SSH tunnel gives you a private India-region proxy. No VPN app, no logging policy to trust.

I’m in Melbourne. A lot of the websites I use regularly are in India: government portals, banking, a few streaming services. Some are geo-restricted. Others just perform badly over a Sydney-to-Mumbai route that bounces through three continents.

The fix is a $3.50/month AWS Lightsail instance in Mumbai and an SSH tunnel. I’ve been running this for about eight months. It works.

How it works

An SSH tunnel with the -D flag creates a SOCKS5 proxy on your local machine. All traffic you route through that proxy exits from the remote server. To the destination website, the request is coming from Mumbai.

The setup:

  1. Launch a Lightsail instance in the ap-south-1 (Mumbai) region. The nano_3_0 bundle is enough: 1GB RAM, 1 vCPU, 1TB data transfer per month, static IP included. $3.50/month.

  2. Download the key pair from the Lightsail console.

  3. Start the tunnel:

ssh -D 8080 -N -i ~/lightsail.pem ubuntu@[YOUR_INSTANCE_IP]
  1. Configure your browser to use a SOCKS5 proxy at localhost:8080. In Brave, this is under Settings > System > Open your computer’s proxy settings, or you can use a browser extension like FoxyProxy to switch proxy profiles per-tab.

All browser traffic now routes through Mumbai. Indian banking portals load correctly. Geo-restricted content works. Pages that were timing out over the direct route load in under two seconds.

Why not a commercial VPN

Commercial VPNs for India cost $10 to $15 per month. They have logging policies you have to trust. They give you “India” as a region, which might mean Mumbai, Chennai, or a server in Singapore with an Indian IP. You don’t control the routing.

With Lightsail, I control the server. I know exactly where it is (Mumbai, ap-south-1a). I know what’s running on it (Ubuntu 22.04, nothing else). There’s no logging because there’s no logging software. The only record of my traffic is in AWS’s infrastructure logs, which I accept as a tradeoff.

The cost is also lower. $3.50/month versus $10 to $15/month. Over a year, that’s a meaningful difference.

The Lightsail vs EC2 decision

EC2 charges for compute and data transfer separately. For a proxy, data transfer is the variable you can’t predict. A busy month could cost significantly more than a quiet one.

Lightsail bundles everything into a flat monthly price. The nano_3_0 bundle includes 1TB of data transfer. I’ve never come close to that limit for normal browsing. If I did, additional transfer is $0.12/GB, which is still reasonable.

For a proxy that you’re using for normal browsing rather than bulk downloads, Lightsail’s flat pricing is the right choice.

The one limitation

The SSH tunnel drops when you close the terminal or put the laptop to sleep. For occasional use, this is fine. You just restart the tunnel command when you need it.

For persistent use, autossh keeps the tunnel alive automatically. It monitors the connection and restarts it if it drops:

autossh -M 0 -D 8080 -N -i ~/lightsail.pem ubuntu@[YOUR_INSTANCE_IP]

You can run this as a systemd service so it starts at login and stays running in the background. The service file is straightforward:

[Unit]
Description=Mumbai SSH proxy
After=network.target

[Service]
ExecStart=/usr/bin/autossh -M 0 -D 8080 -N -i /home/youruser/lightsail.pem ubuntu@[YOUR_INSTANCE_IP]
Restart=always
User=youruser

[Install]
WantedBy=multi-user.target

Enable it with systemctl enable --now mumbai-proxy and the tunnel is always available at localhost:8080.

The AWS CLI setup

If you prefer the command line to the Lightsail console:

aws lightsail create-instances \
  --instance-names india-proxy \
  --availability-zone ap-south-1a \
  --blueprint-id ubuntu_22_04 \
  --bundle-id nano_3_0

aws lightsail download-default-key-pair

The instance takes about 90 seconds to start. Allocate a static IP from the Lightsail console so the address doesn’t change between reboots.

Total setup time from zero to working proxy: about 15 minutes. Monthly cost: $3.50. No app to install on every device, no logging policy to read, no “India region” that’s actually Singapore.