VojtechVitek / sock-proxy

SOCK Proxy for Slack
MIT License
15 stars 24 forks source link

Slack Desktop App (sshuttle) #2

Open TJM opened 6 years ago

TJM commented 6 years ago

We found that, while this socks proxy works for Slack in browser (Safari), It does not work for the Slack Desktop App. A potential workaround you can use, if you have a host you can SSH to that has access to "slack" and all other (internal?) resources you are trying to use is sshuttle (brew install sshuttle). It is only for Mac/Linux (not Windows), but it can be used to effectively "vpn" all your traffic to the target host. An added bonus is that it even works for the Slack Desktop app.

sshuttle --dns -r [user@]SSHSERVER 0/0 NOTE: This requires "sudo" access on client (laptop) side to do the port forwarding.

Then, any traffic that would go out of your computer is forwarded to the SSH host and originates from there instead. There are many other options, but with something like "Slack" where you have a rather dynamic list of hosts and IPs, we decided it would be easiest to just forward all traffic. YMMV.

It might be worth adding this (maybe with some polish) to the README?

https://www.unixmen.com/sshuttle-poor-mans-vpn-ssh/

~tommy

TJM commented 6 years ago

NOTE: This appears to require python on the remote host, but that is usually there by default, right!?

VojtechVitek commented 6 years ago

Does latest Slack app ignore the OS proxy settings? Or what do you think is the problem?

TJM commented 6 years ago

The Slack Desktop App kept telling me it couldn't connect, while Safari was working fine. I am not sure if it uses a different set of proxies (for example, Chrome wouldn't work, but it has its own idea of proxy settings, separate from "System Settings") :-/