tmatilai / vagrant-proxyconf

Vagrant plugin that configures the virtual machine to use proxies
MIT License
531 stars 74 forks source link

how to use socket5 proxy #127

Open foxundermoon opened 9 years ago

foxundermoon commented 9 years ago

as the title。

otahi commented 9 years ago

At this time, there is no implementation for socks5 proxies.

tmatilai commented 9 years ago

@foxundermoon what kind of configuration would you need?

idf commented 9 years ago

+1 for this issue.

I guess we need to access host's socket5 proxy and forward the socks5 in vagrant.

otahi commented 9 years ago

@foxundermoon , @idf , What kind of applications do you want to use? Git? SVN? or something else?

idf commented 9 years ago

@otahi It would be cool to set global mode and/or application specific mode for socket5 proxy for http/https, but I think global mode is much needed first.

otahi commented 9 years ago

@idf, Thank you for your reply. I don't know how to use socks5 proxy in general. Do you mean setting 'ALL_PROXY'? Could you please give some ideas?

idf commented 9 years ago

@otahi Assumed the socks5 proxy server is up, the client (host) need to configure server-ip:port, password, and encryption method. The guest machine need to have a way to access the host's socket proxy client, usually through socks5 127.0.0.1 1080.

Here is a famous socks5 proxy implementation: https://github.com/shadowsocks/shadowsocks. You can try it out.

Thanks for your time.

otahi commented 9 years ago

@idf , I'm very sorry for late reply. Vagrant-proxyconf is the plugin which set environment variables for proxy servers like http_proxy. If we need to use corporate socks5 proxy server, I cannot imagine how to set environment variables for any applications(svn, git, ...), but only for some specific applications are OK. Because each application has each configuration for socks5.

desmax commented 7 years ago

maybe some news here?

tmatilai commented 7 years ago

@desmax If someone comes up with a generic enough configuration, we add automation for it. But based on earlier discussion, it seems that SOCKS5 configuration is very client specific.

Nesh108 commented 7 years ago

Any update on this?

I have shadowsocks running on my Ubuntu and Vagrant can ping to the Internet but running anything else will result in failure.

Something for SOCKS5 and rc-md5 would be great!