soylent / weblink

Use your web browser as a proxy server.
31 stars 2 forks source link

proxy is http not https #15

Open i0day opened 1 month ago

i0day commented 1 month ago

proxy is http not https the browser complaints about OCSP errors when open any https site like google https://www.reddit.com/r/LibreWolf/comments/wf71wm/ocsp_errors/?rdt=42268 also had some OCSP error messages and problems with a certain website not loading properly. I found it was because I had “Enable HTTPS-Only Mode in all windows” enabled (in Privacy & Security) and discovered that http was used to connect with the OCSP server, not https. When I open reddit I also got this error. You've been blocked by network security. To continue, log in to your Reddit account or use your developer token

If you think you've been blocked by mistake, file a ticket below and we'll look into it. Thanks

i0day commented 1 month ago

Is it possible to make the proxy https? Thanks for your time and effort :) It is a nice ruby application.

i0day commented 1 month ago

any trick to route all the traffic via this proxy by system default? I am running Arch Linux. Thanks again.

soylent commented 1 month ago

Hey i0day,

weblink supports HTTPS (CONNECT) and SOCKS5 proxy types. The former is used by default.

You could try switching to SOCKS5:

$ weblink --proxy-type socks5 --proxy-port 1080

To proxy all traffic by default, you could set the HTTPS_PROXY envvar, since many apps and net libs support it:

$ env HTTPS_PROXY=socks5h://127.0.0.1:1080 curl https://www.google.com -v

Note that "h" enables remote domain name resolution.

i0day commented 1 month ago

Hi Soylent, Thank you so much for your reply. When I set the https proxy in Firefox plugin to https://127.0.0.1:3128/ it does not work. Only http proxy http://127.0.0.1:3128/ works but I got error when visiting https website like google and Reddit when using http proxy. I am testing the socks5 proxy now and will report back. Thanks again

i0day commented 1 month ago

socks5h://127.0.0.1:1080 works. “Enable HTTPS-Only Mode in all windows” enabled (in Privacy & Security) no ocsp error. https site like google works, but speedtest complaint about https-only mode not working using http connection. Reddit also got this error. You've been blocked by network security.

Thank you so much