I am trying to configure my LFTP FTP session to use a SOCKS Proxy (Dante v1.2.0) on my server gateway.mydomain.com on port 1080 with no success. Dante does not require any authentication to connect outbound. Near as I can tell it doesn't even attempt a connection to the proxy server, which I know is working since other processes use it readily.
Based on what documentation I can find I have set the following variables: SOCKS5_PROXY=gateway.mydomain.com:1080 SOCKS_PROXY=gateway.mydomain.com:1080 When I run LFTP, I attempt the following sets of commands in the shell with no connection: Session Information (with no ftp:proxy): lftp :~> set net:timeout 30 lftp :~> set net:max-retries 2 lftp :~> debug 9 lftp :~> open ftp://myUser:[email protected] ---- Resolving host address... ---- 1 address found: 64.3.120.162 lftp [email protected]:~> cd myUser_dir ---- Connecting to 64.3.120.162 (64.3.120.162) port 21 **** connect(control_sock): Connection refused ---- Closing control socket Session Information (with ftp:proxy): lftp :~> set net:timeout 30 lftp :~> set net:max-retries 2 lftp :~> debug 9 lftp :~> set ftp:proxy gateway.mydomain.com:1080 lftp :~> set ftp:proxy-auth-type open lftp :~> open ftp://myUser:[email protected] ---- Resolving host address... ---- 2 addresses found: XXXXX, gateway.mydomain.com lftp [email protected]:~> cd myUser_dir ---- Connecting to proxy gateway.mydomain.com port 1080 **** connect(control_sock): Network is unreachable ---- Closing control socket ---- Connecting to proxy gateway.mydomain.com (XXXXXX) port 1080 cd `myUser_dir' [Logging in...] In either case, I don't see any log msg on the SOCKS proxy server. General Questions: Just to confirm ,do I need these variables set in the LFTP session to use the proxy: set ftp:proxy gateway.mydomain.com:1080 set ftp:proxy-auth-type open Should the ftp:proxy setting be: set ftp:proxy ftp://gateway.mydomain.com:1080 OS, Version and Library information below ================================================================================================= O/S: Solaris 10 (Sparc) Compiled by: OpenCSW (www.opencsw.org/package/lftp) Version: LFTP | Version 4.0.10 | Copyright (c) 1996-2010 Alexander V. Lukyanov ... Libraries used: Readline 6.1, Expat 2.0.1, OpenSSL 0.9.8a 11 Oct 2005, libiconv 1.13 Version of Libsocks: 1.2.1,REV=2010.08.31 LDD linkage showing libsocks is available: % ldd ./lftp libexpat.so.1 => /opt/csw/lib/sparcv8/libexpat.so.1 libssl.so.0.9.8 => /opt/csw/lib/sparcv8plus+vis/libssl.so.0.9.8 libcrypto.so.0.9.8 => /opt/csw/lib/sparcv8plus+vis/libcrypto.so.0.9.8 librt.so.1 => /lib/librt.so.1 libsocks.so.0 => /opt/csw/lib/sparcv8/libsocks.so.0 libintl.so.8 => /opt/csw/lib/sparcv8/libintl.so.8 libiconv.so.2 => /opt/csw/lib/sparcv8/libiconv.so.2 libreadline.so.6 => /opt/csw/lib/sparcv8/libreadline.so.6 libcurses.so.1 => /lib/libcurses.so.1 libresolv.so.2 => /lib/libresolv.so.2 libdl.so.1 => /lib/libdl.so.1 libnsl.so.1 => /lib/libnsl.so.1 libsocket.so.1 => /lib/libsocket.so.1 libCstd.so.1 => /usr/lib/libCstd.so.1 libCrun.so.1 => /usr/lib/libCrun.so.1 libm.so.1 => /lib/libm.so.1 libc.so.1 => /lib/libc.so.1 libaio.so.1 => /lib/libaio.so.1 libmd.so.1 => /lib/libmd.so.1 libpam.so.1 => /lib/libpam.so.1 libsec.so.1 => /lib/libsec.so.1 libncurses.so.5 => /opt/csw/lib/libncurses.so.5 libmp.so.2 => /lib/libmp.so.2 libscf.so.1 => /lib/libscf.so.1 libcmd.so.1 => /lib/libcmd.so.1 libavl.so.1 => /lib/libavl.so.1 libdoor.so.1 => /lib/libdoor.so.1 libuutil.so.1 => /lib/libuutil.so.1 libgen.so.1 => /lib/libgen.so.1 /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1 libm.so.2 => /lib/libm.so.2 /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1
