Windows proxy with user/password

I'm running a rclone serve webdav and in our LAN we have proxy with user/password settings on clients. I'm able to connect using web browser with proxy settings configured so I know it has access thru the LAN

How do configure rclone copy to use proxy with user/password

Hi

Did tout try what was indicated here : FAQ

Regards

Hi David,

I have but since the proxy server requires additional user/password, it fails.

Thanks

might try something like
https_proxy="https://username:password@server:port/"

We should probably put that in the docs... Fancy sending a PR @asdffdsa ?

yes, i will do that and update this topic

1 Like

Just to clarify I'm connecting from a windows workstation.

To add, I use a command line window and type the following:

set https_proxy="https://username:password@server:port/"
rclone --config=rclone.conf  --ca-cert ca.pem --client-cert client.pem  --client-key client.key copy FILESERVER:/download/ C:\download\ --log-level DEBUG  --max-depth=1  --order-by modtime,ascending

can you post the rclone debug log for that command.
and for testing, might try a simple command using rclone lsd

I'll have to test it again but this is what I get after I run using the rclone lsd command

2022/11/01 18:40:02 ERROR : : error listing: error listing "": failed to readDir: Get "https://fileserver.domain.com/download/": proxyconnect tcp: dial tcp: lookup http: no such host
2022/11/01 18:40:02 Failed to lsd with 2 errors: last error was: error listing "": failed to readDir: Get "https://fileserver.domain.com/download/": proxyconnect tcp: dial tcp: lookup http: no such host

The URL is replaced for privacy/security reasons. Thank you.

please post the full debug log.

Just to clarify... what command do I use to output a full debug log ?

--log-level DEBUG

This just outputs to the window screen not to a log file.

--- post the full batch script.
--- run the simplest rclone command possible, as few flags as possible. use root of the remote, not a subdir.

rclone lsd FILESERVER: -vv

will do. It will take me sometime to execute and get the logs.

--- this works

set https_proxy=username:password@localhost:8080 

rclone lsd wasabi: -vv 
DEBUG : rclone: Version "v1.60.0" starting with parameters ["C:\\data\\rclone\\rclone.exe" "lsd" "wasabi:" "-vv"]
          -1 2022-02-09 09:49:42        -1 zork

to prove rclone is using the proxy server, i changed the password to incorrect value.

set https_proxy=username:xyz@localhost:8080 

rclone ls wasabi: -vv 
DEBUG : rclone: Version "v1.60.0" starting with parameters ["C:\\data\\rclone\\rclone.exe" "ls" "wasabi01:" "-vv"]
Failed to ls: RequestError: send request failed
caused by: Get "https://s3.us-east-2.wasabisys.com/": Proxy Authentication Required
1 Like

Thank you from the detail example. I will try this out and get back to you.

sorry, forgot about this.

https://github.com/rclone/rclone/issues/6565

Not making an issue submit a PR to fix the docs :slight_smile:

well, here it is, my first PR

https://github.com/rclone/rclone/pull/6569

2 Likes

Merged - thank you :slight_smile:

Just want to update the thread, this solution worked for our configuration. I appreciate @asdffdsa for the detailed steps.

Now I just have to verify download/upload but I'm sure it works!

@ncw will this be a syntax that can be added when calling rclone in the future?