Timeline for How to send all WSL traffic through a proxy in host machine
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 9, 2022 at 9:00 | history | tweeted | twitter.com/super_user/status/1601139607457992704 | ||
Jul 8, 2021 at 11:55 | vote | accept | VidathD | ||
Jul 8, 2021 at 11:55 | |||||
S Jul 8, 2021 at 11:54 | history | bounty ended | VidathD | ||
S Jul 8, 2021 at 11:54 | history | notice removed | VidathD | ||
Jul 8, 2021 at 8:13 | answer | added | harrymc | timeline score: 1 | |
Jul 5, 2021 at 7:02 | comment | added | VidathD | @harrymc HAProxy seems to have the functionality that I need. I will look into it. | |
Jul 4, 2021 at 8:04 | comment | added | harrymc | Surely SSH stuff you can do on Windows you can do also in Linux, if not better. You might be looking for mechanisms like Proxies and Jump Hosts or perhaps software like HAProxy. | |
Jul 4, 2021 at 5:40 | comment | added | VidathD | @harrymc So you mean tunnel directly to the remote ssh server (not the host windows machine). The thing is I am using ssl/tls encryption and changing the SNI to bypass some ISP restrictions. Is there a command line tool for linux that will allow me to do that? Does the alpaca project support that functionality? | |
Jul 3, 2021 at 14:34 | comment | added | harrymc |
Try to create the tunnel not from the windows command prompt, but from the WSL command prompt. In windows, launch PowerShell, then type wsl , then create the tunnel, for example: ssh -D 0.0.0.0:20000 USER@IP_ADDRESS . In case of problem, disable temporarily the firewall.
|
|
Jul 3, 2021 at 13:18 | comment | added | VidathD | I have set the firewall rule to allow all incoming and outgoing traffic on that port. That is actually a socks5 proxy on 192.168.1.5:1080. Does that make a difference? | |
Jul 3, 2021 at 13:12 | comment | added | VidathD | @harrymc Yes. Before I couldn't even get to wsl to even try to connect to the proxy on 192.168.1.5:80 (192.168.1.5 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 192.168.1.5:1080. 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. | |
Jul 2, 2021 at 19:01 | comment | added | harrymc | Have you looked at my links? | |
Jul 2, 2021 at 15:17 | comment | added | VidathD | @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 192.168.1.5 (192.168.1.5)]. Any idea why? | |
Jul 2, 2021 at 13:12 | comment | added | harrymc | Some advice is found in here and in here. There is also the alpaca project. | |
Jul 1, 2021 at 13:05 | history | edited | VidathD | CC BY-SA 4.0 |
added 178 characters in body
|
S Jul 1, 2021 at 13:03 | history | bounty started | VidathD | ||
S Jul 1, 2021 at 13:03 | history | notice added | VidathD | Draw attention | |
Jun 29, 2021 at 7:52 | history | asked | VidathD | CC BY-SA 4.0 |