A network-level Imgur proxy for UK users, built with Gluetun, Nginx, and AdGuard Home. Routes all Imgur traffic through a VPN exit node transparently - no client configuration required.
📖 Full write-up on my blog: makes.swakes.co.uk
Imgur geo-blocks UK users. Rather than running a VPN on every device, this setup intercepts Imgur DNS requests at the network level and proxies traffic through a VPN-connected Docker container. Every device on your LAN gets working Imgur images automatically.
📱 Device requests i.imgur.com
↓
🛡️ AdGuard returns 192.168.1.200
↓
⚙️ Nginx receives on port 443, reads SNI header
↓
🔒 Gluetun tunnels through PIA VPN (Netherlands)
↓
✅ Real i.imgur.com responds - no UK block
- Docker & Docker Compose
- AdGuard Home (or Pi-hole) as your network DNS
- Private Internet Access subscription
- A free IP on your LAN (e.g.
192.168.1.200)
docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
--ip-range=192.168.1.200/32 \
-o parent=eth0 \
imgur-macvlanReplace values to match your LAN. Check your interface with
ip link.
git clone https://github.com/pqpxo/imgur-proxy.git
cd imgur-proxycp .env.example .envEdit .env with your PIA credentials:
PIA_USER=your_pia_username
PIA_PASSWORD=your_pia_password
SERVER_REGIONS=Netherlandsdocker compose up -dIn AdGuard Home → Filters → DNS rewrites, add:
| Domain | Answer |
|---|---|
i.imgur.com |
192.168.1.200 |
imgur.com |
192.168.1.200 |
www.imgur.com |
192.168.1.200 |
imgur-proxy/
├── docker-compose.yml
├── nginx.conf
├── .env.example
└── README.md
From any device on your network (not the Docker host):
curl -vI --resolve imgur.com:443:192.168.1.200 https://imgur.comCheck the X-Served-By header - it should show an Amsterdam or Frankfurt cache node, not London (LCY).
- The Docker host itself cannot reach the macvlan IP - this is a known Linux macvlan limitation. All other LAN devices work fine.
- The Nginx
stream {}block does TCP passthrough only - TLS is never terminated, traffic is never decrypted. imgur.commain site may still return 403 errors - Imgur have largely abandoned it as a platform. The real value here isi.imgur.comimage loading in Reddit threads, forums, and READMEs.- To change VPN region, update
SERVER_REGIONSin.envand rundocker compose down && docker compose up -d.
MIT
