[Privoxy-users] WebSocket in Privoxy

ZzZombo zzzombo at vivaldi.net
Tue Mar 21 09:10:50 CET 2023


When I used to use Privoxy, I had to make sure it doesn't attempt to 
buffer or modify the "body" of the tunnel in any way, shape or form. 
Then it started to proxy WS connections correctly.

You have to remove pretty much all filtering rules for them, 
interestingly this used to happen even if you do not decipher TLS, but 
such rules were active for such secure connection.

On 21.03.2023 14:37, Fabian Keil wrote:
> Marek Küthe <m-k-mailling-list at mk16.de> wrote on 2023-03-20 at 21:48:11:
>
>> I am trying to use a web application which uses WebSockets. As a
>> browser I use Firefox ESR. Privoxy is running locally on my computer
>> and Firefox is set to send requests to Privoxy. Now I have tried
>> something around and found that the web application works without
>> problems if no proxy is configured. When Privoxy is configured, it
>> stops at `Connection is being established.`. Then after some time the
>> web application sometimes reports WebSocket error `1006` (no error
>> text). The web application does not use HTTPS / TLS and therefore
>> `ws://` and not `wss://`. Firefox itself outputs `Firefox cannot
>> connect to the server at ws://lg.reseau.mk16.de/ws.` in the developer
>> console.
>>
>> Is this due to Privoxy? If yes, is there a workaround? Is it possible
>> to forward WebSocket connections one-to-one or similar?
>>
>> I hope I am right here at the Mailling list. I would be glad about an
>> answer!
> Which Privoxy version do you use?
>
> Please provide a log excerpt created with the debug settings
> listed at [0] that shows the problems.
>
> To create a WebSocket through Privoxy, Firefox should use
> a CONNECT request to open a tunnel. If Privoxy isn't configured
> to block or intercept this, this is expected to work.
>
> We currently have not tests for WebSockets, though, so it's
> conceivable that there is a regression.
>
> Fabian
>
> [0] <https://www.privoxy.org/user-manual/contact.html>
>
> _______________________________________________
> Privoxy-users mailing list
> Privoxy-users at lists.privoxy.org
> https://lists.privoxy.org/mailman/listinfo/privoxy-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-users/attachments/20230321/f5126473/attachment.bin>


More information about the Privoxy-users mailing list