* [gentoo-user] NCFTP in passive mode...
@ 2005-08-09 16:23 Steve [Gentoo]
2005-08-09 18:28 ` Billy Holmes
0 siblings, 1 reply; 4+ messages in thread
From: Steve [Gentoo] @ 2005-08-09 16:23 UTC (permalink / raw
To: gentoo-user
Can anyone see where I'm going wrong.
I'm behind a NAT box which precludes my use of active-FTP but not
passive. I have verified this both with Windows based FTP clients and
with the latest unmasked "vanilla" ftp from portage. When I try to use
ncftp, however, I run into difficulties:
--
NcFTP 3.1.8 (Jul 27, 2004) by Mike Gleason (http://www.NcFTP.com/contact/).
ncftp> set passive on
ncftp> open ftp.mirror.ac.uk
Resolving ftp.mirror.ac.uk...
Connecting to ftp.mirror.ac.uk...
Welcome to the JISC National Mirror Service.
... <<Blurb omitted>>....
Logging in...
Login successful.
Logging in...
Logged in to ftp.mirror.ac.uk.
ncftp / > ls
Data connection timed out.
List failed.
ncftp / >
--
NCFTP also fails when I leave passive at the default "optional" (which
allegedly automatically determines if passive ftp is required) - and
when I set passive to on, off or optional in .ncftp/prefs_v3.
Does ncftp work in passive mode for other people?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] NCFTP in passive mode...
2005-08-09 16:23 [gentoo-user] NCFTP in passive mode Steve [Gentoo]
@ 2005-08-09 18:28 ` Billy Holmes
2005-08-10 10:36 ` Steve [Gentoo]
0 siblings, 1 reply; 4+ messages in thread
From: Billy Holmes @ 2005-08-09 18:28 UTC (permalink / raw
To: gentoo-user
Steve [Gentoo] wrote:
> Can anyone see where I'm going wrong.
>
> I'm behind a NAT box which precludes my use of active-FTP but not
> passive. I have verified this both with Windows based FTP clients and
> with the latest unmasked "vanilla" ftp from portage. When I try to use
> ncftp, however, I run into difficulties:
I think you need to set passive on before you do any data transfers. I
know that with my copy, ncftp will hang while waiting on a active
transfer to finish. I normally have to terminate the program (CTRL-Z ;
jobs -l ; kill $PID). However, I've been able to set the passive option
before I've transfered any files.
You can also try "wget" if you know the file path, and just want to
retreive a file.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] NCFTP in passive mode...
2005-08-09 18:28 ` Billy Holmes
@ 2005-08-10 10:36 ` Steve [Gentoo]
2005-08-11 17:00 ` Billy Holmes
0 siblings, 1 reply; 4+ messages in thread
From: Steve [Gentoo] @ 2005-08-10 10:36 UTC (permalink / raw
To: gentoo-user
Billy Holmes wrote:
> Steve [Gentoo] wrote:
>
>> Can anyone see where I'm going wrong.
>>
>> I'm behind a NAT box which precludes my use of active-FTP but not
>> passive. I have verified this both with Windows based FTP clients
>> and with the latest unmasked "vanilla" ftp from portage. When I try
>> to use ncftp, however, I run into difficulties:
>
>
> I think you need to set passive on before you do any data transfers. I
> know that with my copy, ncftp will hang while waiting on a active
> transfer to finish. I normally have to terminate the program (CTRL-Z ;
> jobs -l ; kill $PID). However, I've been able to set the passive
> option before I've transfered any files.
>
> You can also try "wget" if you know the file path, and just want to
> retreive a file.
As far as I can tell I tried to enable passive mode before transferring
any files. In the example I posted I called "set passive on" before I
called "open ..." - I also tired setting passive on in the preferences
file - which should have ensured that passive was on as soon as the
process started. Both of these fail for me.
I can't use wget - because I want to put files... I can use the classic
"ftp" program (which works fine is passive mode) - however I dislike the
user interface... ncftp worked fine for me in the past...
I've discovered that ncftp keeps "trace" files - this is what it shows
--
SESSION STARTED at: 2005-08-10 11:31:26 BST +0100
Program Version: NcFTP 3.1.8/167 Jul 27 2004, 03:31 PM
Library Version: LibNcFTP 3.1.8 (May 26, 2004)
Process ID: 388
Platform: linux-x86
Hostname: gifu.shic.lan (rc=3)
Terminal: cygwin
11:31:26 Fw: firewall.shic.lan Type: 0 User: sjh Pass: ********
Port: 21
11:31:26 FwExceptions: .shic.lan,localhost,localdomain
11:31:31 > set passive on
11:31:40 > open ftp.mirror.ac.uk
11:31:40 Resolving ftp.mirror.ac.uk...
11:31:40 Connecting to ftp.mirror.ac.uk...
11:31:40 LibNcFTP 3.1.8 (May 26, 2004) compiled for linux-x86
11:31:40 Uname: Linux|gifu|2.6.9-gentoo-r1|#5 Sat Apr 2 18:05:01 BST
2005|i686
11:31:40 Glibc: 2.3.5 (stable)
11:31:41 Logging in...
11:31:41 220: Welcome to the JISC National Mirror Service.
11:31:41
11:31:41 To discover more about the service, please visit:
http://www.mirr
or.ac.uk/
11:31:41
11:31:41 The service is funded by HEFCE via the Joint Information
Systems
Committee
11:31:41 (JISC) and is intended to support the UK academic
community with
a portfolio of
11:31:41 useful technical mirrors directly on the Joint Academic
Network (
JANET).
11:31:41
11:31:41 We welcome your feedback on the current service and
suggestions f
or new
11:31:41 mirrors. Please contact us via mirrorsupport@mirror.ac.uk
11:31:41
11:31:41
11:31:41 Connected to ftp.mirror.ac.uk.
11:31:41 Cmd: USER anonymous
11:31:41 331: Please specify the password.
11:31:41 Cmd: PASS NcFTP@
11:31:41 Logging in...
11:31:41 230: Login successful.
11:31:41 Cmd: PWD
11:31:41 257: "/"
11:31:41 Logged in to ftp.mirror.ac.uk as anonymous.
11:31:41 Cmd: FEAT
11:31:41 211: Features:
11:31:41 EPRT
11:31:41 EPSV
11:31:41 MDTM
11:31:41 PASV
11:31:41 REST STREAM
11:31:41 SIZE
11:31:41 TVFS
11:31:41 End
11:31:41 Cmd: HELP SITE
11:31:41 214: The following commands are recognized.
11:31:41 ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP
LIST MDTM
MKD
11:31:41 MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST
RETR RMD
RNFR
11:31:41 RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER
XCUP XCWD
XMKD
11:31:41 XPWD XRMD
11:31:41 Help OK.
11:31:41 Logged in to ftp.mirror.ac.uk.
11:31:41 Cmd: CLNT NcFTP 3.1.8 linux-x86
11:31:41 500: Unknown command.
11:31:43 > ls
11:31:43 Cmd: EPSV
11:31:43 229: Entering Extended Passive Mode (|||48795|)
11:32:03 Data connection timed out.
11:32:03 Cmd: LIST
11:33:03 425: Failed to establish connection.
11:33:03 >
11:33:27 Cmd: QUIT
11:33:27 221: Goodbye.
SESSION ENDED at: Wed Aug 10 11:33:27 2005
--
Steve
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] NCFTP in passive mode...
2005-08-10 10:36 ` Steve [Gentoo]
@ 2005-08-11 17:00 ` Billy Holmes
0 siblings, 0 replies; 4+ messages in thread
From: Billy Holmes @ 2005-08-11 17:00 UTC (permalink / raw
To: gentoo-user
Steve [Gentoo] wrote:
> I can't use wget - because I want to put files... I can use the classic
> "ftp" program (which works fine is passive mode) - however I dislike the
> user interface... ncftp worked fine for me in the past...
post a trace (or screen grab) of the ftp program running passive mode,
too, cause I can't see anything wrong with the ncftp setup.
I have seen instances where a firewall on the server was setup so that
passive mode would not work, but active mode would - ie, having two
machines behind firewalls with one having a ftp port forward means that
neither machine can form the proper ftp connection for data - UNLESS one
of the firewalls understand FTP, and can either (1) client side firewall
dynamically open ports for FTP back to the client, or (2) server side
firewall understands that requests coming from the client are RELATED to
the established FTP session.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-11 17:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 16:23 [gentoo-user] NCFTP in passive mode Steve [Gentoo]
2005-08-09 18:28 ` Billy Holmes
2005-08-10 10:36 ` Steve [Gentoo]
2005-08-11 17:00 ` Billy Holmes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox