jak3ster
(Jay)
November 3, 2022, 3:06am
1
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
jak3ster
(Jay)
November 3, 2022, 1:38pm
3
Hi David,
I have but since the proxy server requires additional user/password, it fails.
Thanks
asdffdsa
(jojothehumanmonkey)
November 3, 2022, 1:47pm
4
might try something like
https_proxy="https://username:password@server:port/"
ncw
(Nick Craig-Wood)
November 3, 2022, 4:50pm
5
We should probably put that in the docs... Fancy sending a PR @asdffdsa ?
asdffdsa
(jojothehumanmonkey)
November 4, 2022, 1:09pm
6
yes, i will do that and update this topic
1 Like
jak3ster
(Jay)
November 4, 2022, 1:14pm
7
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
asdffdsa
(jojothehumanmonkey)
November 4, 2022, 1:17pm
8
can you post the rclone debug log for that command.
and for testing, might try a simple command using rclone lsd
jak3ster
(Jay)
November 4, 2022, 1:58pm
9
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.
asdffdsa
(jojothehumanmonkey)
November 4, 2022, 1:59pm
10
jak3ster:
rclone lsd
command
please post the full debug log.
jak3ster
(Jay)
November 4, 2022, 2:02pm
11
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.
asdffdsa
(jojothehumanmonkey)
November 4, 2022, 2:05pm
12
--- 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
jak3ster
(Jay)
November 4, 2022, 2:13pm
13
will do. It will take me sometime to execute and get the logs.
asdffdsa
(jojothehumanmonkey)
November 4, 2022, 2:59pm
14
--- 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
jak3ster
(Jay)
November 4, 2022, 3:23pm
15
Thank you from the detail example. I will try this out and get back to you.
asdffdsa
(jojothehumanmonkey)
November 12, 2022, 6:30pm
16
Not making an issue submit a PR to fix the docs
asdffdsa
(jojothehumanmonkey)
November 15, 2022, 4:57pm
18
2 Likes
jak3ster
(Jay)
November 17, 2022, 7:51pm
20
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?