Hi folks!
Unfortunately the webtunnel bridge guide only seems to provide instructions on how to setup a webtunnel brige with nginx.
Are there also instructions somewhere for doing this with Apache? I cannot find any.
So far I have adapted the nginx configuration to Apache syntax, but the bridge seems not to work.
I’m on Linux and have build the webtunnel server executable from source.
After configuration and start of tor webtunnel instance verified that the webtunnel processes are running and listening on 127.0.0.1:15000
.
Threw socat
in to check what Apache is passing to the webtunnel executable:
socat stdio tcp-listen:15000,fork
,
pressed the ‘Connect’ button in Tor Browser and got the following output:
GET / HTTP/1.1
Host: example.com
User-Agent: Go-http-client/1.1
Accept-Encoding:
X-Real-IP: 123.123.123.123
X-Forwarded-Proto: https
X-Forwarded-For: 123.123.123.123
X-Forwarded-Host: example.com
X-Forwarded-Server: example.com
Connection: Keep-Alive
Replaced the host name with example.com
and the client IP address with 123.123.123.123
here. The rest is unchanged.
Also tried to send this output to the webtunnel process as follows:
printf "GET / HTTP/1.1\r\nHost: example.com\r\nUser-Agent: Go-http-client/1.1\r\nAccept-Encoding: \r\nX-Real-IP: 123.123.123.123\r\nX-Forwarded-Proto: https\r\nX-Forwarded-For: 123.123.123.123\r\nX-Forwarded-Host: example.com\r\nX-Forwarded-Server: example.com\r\nConnection: Keep-Alive\r\n\r\n" | socat stdio tcp:127.0.0.1:15000
without any response…
Any ideas what’s wrong? When there is no guide for Apache, I will post the whole configuration here then.