From 5bbfb57a296e51cec77591f499dacd06719b23e3 Mon Sep 17 00:00:00 2001 From: Paige Thompson Date: Sun, 5 Jan 2025 08:25:37 -0800 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 5c4c3ac..038362b 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,19 @@ docker exec -it tor-tor-1 cat /var/lib/tor/ircd/hostname q6ihxyqviqz76xt6dcpvgidbal64ltbvptbjp4yoxyjihgmqpxugcbid.onion ``` +HAProxy is necessary in this case because Tor's `HiddenServiceExportCircuitID` uses PROXY protocol v1 and inspircd uses PROXY protocol v2, HAProxy supports both: + +``` +frontend tor-north + bind 127.0.0.1:19818 accept-proxy + mode tcp + default_backend inspircd-south + +backend inspircd-south + mode tcp + server inspircd 127.0.0.1:7001 send-proxy-v2 +``` + - cd to `haproxy/` - `docker-compose up -d` - By default, the inspircd `include.conf` should already provide the necessary configuration: