Google Drive: Proxy Server Support please!

Get help for specific problems
Posts: 4
Joined: 10 Mar 2022

PixelCosplay

I love FFS but I cant use it proably with a proxy.. is there any solution (any conifg file I can change manually or so?)
Please dear Developer add some textbox with proxy support :/

Best regards,
Louis
Posts: 4893
Joined: 11 Jun 2019

xCSxXenon

Probably? why not?
Posts: 346
Joined: 7 Jan 2018

bgstack15

Could you try running the program with an environment variable set:
ftp_proxy=http://proxyname:3128 /path/to/FreeFileSync
And check to see if that works?
Now, if you are trying to use one of those "cloud" solutions like Google Drive, you should test with variable https_proxy. Let's see if the program uses whatever it is that uses those variables, probably glibc or something.
Edit: Oh, sometimes the environment variable name needs to be in all caps. So try FTP_PROXY, FTPS_PROXY, HTTP_PROXY and all those variants.
User avatar
Site Admin
Posts: 7516
Joined: 9 Dec 2007

Zenju

Which OS? HTTP access on Windows uses Internet Explorer settings (including Proxy support) automatically.
Posts: 4
Joined: 10 Mar 2022

PixelCosplay

Which OS? HTTP access on Windows uses Internet Explorer settings (including Proxy support) automatically. Zenju, 11 Mar 2022, 07:53
Windows 10. Proxy Server is set in Internet Explorer etc. When I use Proxifier it works but I wanna use FFS without it. So it seems it doesnt regognize the System Proxy. There are some other users here which said the same :/
Is it possible to work with environment variable in this case?

Best regards,
Louis
Posts: 4
Joined: 10 Mar 2022

PixelCosplay

Could you try running the program with an environment variable set:
ftp_proxy=http://proxyname:3128 /path/to/FreeFileSync
And check to see if that works?
Now, if you are trying to use one of those "cloud" solutions like Google Drive, you should test with variable https_proxy. Let's see if the program uses whatever it is that uses those variables, probably glibc or something.
Edit: Oh, sometimes the environment variable name needs to be in all caps. So try FTP_PROXY, FTPS_PROXY, HTTP_PROXY and all those variants. bgstack15, 11 Mar 2022, 00:58
Thank you so so much man!
Setting HTTP_PROXY and HTTPS_PROXY in the Env Variables fixed my problem!
Have a wonderful day!

Best regards,
Louis
User avatar
Site Admin
Posts: 7516
Joined: 9 Dec 2007

Zenju

So the issue was with Google Drive? If so, I could add automatic support so that libcurl fetches the proxy config of Internet Explorer.
Posts: 4
Joined: 10 Mar 2022

PixelCosplay

So the issue was with Google Drive? If so, I could add automatic support so that libcurl fetches the proxy config of Internet Explorer. Zenju, 11 Mar 2022, 10:20
Yes! Tried to connect to my Google Drive in this Scenario!
Posts: 1
Joined: 6 Jun 2022

fbrasileiro

even configuring the proxy in internet explorer/system, when being redirected to the google authorization page and confirming the access of FreeFileSync, when returning to the app, it tries to make a direct connection with the IP, without using the proxy.

Windows 10 Pro (21H2)
User avatar
Site Admin
Posts: 7516
Joined: 9 Dec 2007

Zenju

Implemented for FFS 14.8! The system proxy will be detected automatically and used for GoogleDrive:
https://www.mediafire.com/file/6unlr9zzksn3o5t/FreeFileSync_14.8_%255BBeta%255D_Windows_Setup%25282%2529.exe

PS: the old hack to use environment variables is still supported, but they need to be in *lower* case:
set http_proxy=127.0.0.1:8888
set https_proxy=127.0.0.1:8888

PPS: there should also be manual proxy support for other protocols, but it is untested: ftp_proxy, ftps_proxy

Reference: https://curl.se/libcurl/c/libcurl-env.html#schemeproxy