Proxy on Windows 10 is not working

Hi All,

What's my problem

I'm trying to get the proxy support working on windows 10, but it won't work. So I'm asking for your help.

Wich rclone version I'm using

rclone v1.58.1

  • os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
  • os/kernel: 10.0.19044.1526 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: dynamic
  • go/tags: cmount

What did I try?

I tried to invoke rclone like this

set http_proxy=http://my-proxy:3128/
rclone lsd test:/

But this idles forever.
I also tried to use the proxy in filezilla, and there it worked. So it's not about the proxy server itself I guess.
Then I opened up a server on localhost port 3128 (WSL: nc localhost -l 3128) and set the proxy to http://localhost:3128, but the server did not show any connection attempt.
I also tried to use the rclone-browser which provides settings for the proxy. But this wasn't working either.

Well, I'm out of ideas. So it would be great if someone of you can help me.

Many thanks in advance for any help.
Best regards, -chris-

You appear to be doing the right thing...

Are you running set http_proxy=... in the same cmd windows you are starting rclone from?

Can you try rclone lsd test:/ -vv --dump headers which will show the HTTP connections.

Thanks for suggesting this. Here's what it said.
I executed in a cmd window:

set http_proxy=http://my-proxy.local:3128
rclone.exe lsd test:/ -vv --dump headers

and here's what came back

2022/06/28 13:23:26 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone.exe" "lsd" "test:/" "-vv" "--dump" "headers"]
2022/06/28 13:23:26 DEBUG : Creating backend with remote "test:/"
2022/06/28 13:23:26 DEBUG : Using config file from "C:\Users\user\AppData\Roaming\rclone\rclone.conf"
2022/06/28 13:23:26 DEBUG : ftp://my-ftp.de:21: Connecting to FTP server

Best Regards, -chris-

You are trying to use an HTTP proxy for an FTP server which won't work. You'd want to set ftp_proxy but rclone doesn't support it at the moment I don't think.

hi,
how can we tell if rclone is using a proxy server and the details?
did not see it in the debug log and --dump=headers.

You'd see it if it was using an HTTP service I think - the connection and the host would be different. You don't see it for FTP though.

When I did a search in the git repo, there was no evidence of http_proxy in any of the go source code. So I guess this is somehow managed by the go libs themselves.
So, go doesn't support the ftp_proxy env var at the moment?! Sadly I did not find any reference in go yet.
Cheers, -chris-

Nevermind,
rclone is an excellent software, from what I've seen so far. It just does not fit my requirements at the moment.
So I have written a powershell script using WinSCP.net. This is nothing compared to rclone but it's working for me.

Thanks to any one trying to help. This is a great community.
Best Regads, -chris-

1 Like

It is, yes.

Its more that this module GitHub - jlaffaye/ftp: FTP client package for Go doesn't support it at the moment.

Thanks for figuring that out.
-chris-

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.