logo

Tutorial – How to setup a forward proxy with HAProxy that routes TOR through a VPN…in docker

ID: 0f854724-abb3-5b7a-9626-c668e5080b18

STIX ID: report--0f854724-abb3-5b7a-9626-c668e5080b18

Feed Name: JUMPSEC Labs

Date Published: 2025-03-06

Date Updated: 2026-04-28

Author: Bjoern Schwabe

...
...

**Executive Summary:** This article explains how to build and troubleshoot a Docker-based forward proxy architecture (HAProxy -> dperson/torproxy -> thrnz/docker-wireguard-pia) so container traffic is routed through Tor and out via a WireGuard VPN, covering docker-compose examples, fixed IP/IPAM allocation, NET_ADMIN capability, ip route adjustments in the Tor container, iptables post-up NAT and FORWARD rules in the VPN container, and practical debugging tips.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.