I am using a SSH tunnel to connect to the internet on my host Windows machine. I am using proxifier to send all my traffic though port 1080 which is the proxy port. However, proxifier or selecting the proxy using windows "Proxy Settings" in settings menu doesn't seem to route WSL traffic though the proxy..

My question is how can I route WSL traffic through the proxy.

I also tried letting port 1080 though firewall (both inbound and outbound) and trying to send wsl data though proxychains to socks5 <host_IP> 1080. That didn't work either...

  • Some advice is found in here and in here. There is also the alpaca project.
    – harrymc
    Jul 2 at 13:12
  • @harrymc I seem to be unable to connect to the socks5 proxy on my host for some reason. When I run sudo apt-get update it just hangs as [Connecting to (]. Any idea why?
    – VidathD
    Jul 2 at 15:17
  • Have you looked at my links?
    – harrymc
    Jul 2 at 19:01
  • @harrymc Yes. Before I couldn't even get to wsl to even try to connect to the proxy on ( is the host machine for wsl). Now it tries to connect but hangs. I didn't try the alpaca project. I don't think it is what I am looking for. Both others suggest the same thing basically. Export the http_proxy variable to be It does what it is supposed to but it still doesn't connect to the proxy on host. Like I said in the previous comment, it hangs.
    – VidathD
    Jul 3 at 13:12
  • I have set the firewall rule to allow all incoming and outgoing traffic on that port. That is actually a socks5 proxy on Does that make a difference?
    – VidathD
    Jul 3 at 13:18

The poster has indicated the the free HAProxy seems to have the needed functionality:

HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. It is particularly suited for very high traffic web sites and powers quite a number of the world's most visited ones. Over the years it has become the de-facto standard opensource load balancer, is now shipped with most mainstream Linux distributions, and is often deployed by default in cloud platforms. Since it does not advertise itself, we only know it's used when the admins report it :-)

  • From reading about it, it seems to have the necessary functionality for an alternative way to achieve my ultimate goal which is to modify the SNI. However, I haven't tried it yet and by the reading that I have done about it, it doesn't technically answer the question. I will mark this as the answer after I try it. I hope that's OK with you.
    – VidathD
    Jul 8 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.