Closed nifflin closed 5 years ago
I think you may be right. I tried curl -f -L --socks5-host 127.0.0.1:1081 -- "ftp://ftp.videolan.org/pub/videolan/contrib/x86_64-apple-darwin10/vlc-contrib-x86_64-apple-darwin10-latest.tar.bz2" > "vlc-contrib-x86_64-apple-darwin10-latest.tar.bz2"
but no download speeds. It should be v2ray-core that does not support ftp. You may open an issue here.
However, the option --socks5-host 127.0.0.1:1080
worked when I tried ShadowsocksX. So you can temporarily download your file by shadowsocks.
Also, it is necessary to point out that auto and global modes work only when you are using a cocoa application, like Safari.app or Twitter.app, which obeys macOS's proxy settings. Shell commands usually do not obey system proxy rules. For curl, you can specify the option --socks5-host hostname:port
to use a socks5 proxy.
I have added the option "allowPassive" to the newest version. At least on my personal mac, there is no problem to download that file using curl and v2rayx now. But Chrome still says ERR_NO_SUPPORTED_PROXIES. I have no idea about this.
Chrome probably tries to use Socks proxy with BIND request for passive FTP connection. V2Ray's socks implementation doesn't support this mode.
I tried with shadowsocksX, it worked. @Cenmrev @nifflerfox
I have installed lastest v2rayx in macbook, config as global mode, it works well for visiting websites such like google.com. _But it seems like not work for ftp_.
my shell command: curl -f -L -- "ftp://ftp.videolan.org/pub/videolan/contrib/x86_64-apple-darwin10/vlc-contrib-x86_64-apple-darwin10-latest.tar.bz2" > "vlc-contrib-x86_64-apple-darwin10-latest.tar.bz2"
Download speed very slow, _the speed is the same as v2rayx is closed. I use this command in my vps in japan, the download speed is very very high._
Then I try to download it in chrome, _the chrome says: ERR_NO_SUPPORTED_PROXIES_
After that, I change v2rayx config to "auto mode", add "videolan.org" to pac.js, and restart v2rayx. Chrome can download than ftp url, but speed is still very slow. Seems like v2ray(x) works not well for ftp. The speed should be very good.