I think you will find that after entering passive mode you must tell the
server what port you wish to connect on.
Try that and see if it works
Craig Mckenna
Systems Engineer
Satlan Corporation
New Zealand
-----Original Message-----
From: Jann Linder <[EMAIL PROTECTED]>
To: 'Jason Martin' <[EMAIL PROTECTED]>
Cc: 'masq' <[EMAIL PROTECTED]>; 'linux-net'
<[EMAIL PROTECTED]>
Date: Sunday, 7 June 1998 17:34
Subject: Re: [masq] pasv command using ip-masquerading
>OK, here is what i get now.
>
>I am using the command-line ftp from winnt, through the linux system to
ftp.redhat.com
>
><SNIP>
>C:\>ftp -i ftp.redhat.com
>Connected to ftp.redhat.com.
>220-
>220- Red Hat Software Proudly Presents:
>220-
>220- Red Hat 5.0 -- Hurricane,
ftp://ftp.redhat.com/pub/redhat/redhat-5.0/
>220- Red Hat Contrib -- ftp://ftp.redhat.com/pub/contrib/
>220-
>220 gonzales.redhat.com FTP server (Version wu-2.4.2-academ[BETA-16](1) Thu
May
>7 23:18:05 EDT 1998) ready.
>User (ftp.redhat.com:(none)): anonymous
>331 Guest login ok, send your complete e-mail address as password.
>Password:
>230 Guest login ok, access restrictions apply.
>ftp> quot pasv
>227 Entering Passive Mode (199,183,24,227,115,155)
>ftp> ls
>500 Illegal PORT Command
>500 Can't build data connection: no PORT specified
>ftp> passive
>?Invalid command
>
></snip>
>
>any ideas?
>
>
>Jann Linder
>Web Developer/CH2M Hill - SFO
>[EMAIL PROTECTED]
>Home Page:
> http://www.jann.com/
>CalendarPlus Web Site:
> http://www.calendarplus.com/
>
>
>-----Original Message-----
>From: Jason Martin [SMTP:[EMAIL PROTECTED]]
>Sent: Saturday, June 06, 1998 4:32 PM
>To: Jann Linder
>Cc: 'Gary Neff'; 'masq'; 'linux-net'; '[EMAIL PROTECTED]'
>Subject: Re: [masq] pasv command using ip-masquerading
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>> > > I simply asked how to enable pasv on a host.
>at the ftp> prompt, type "passive" or "quot pasv" after logging in to the
>host. Not all hosts support this mode, but most do.
>
>As far as I know you have to do this _every_ time you run ftp. You might
>want to look at the possability of putting something in the .netrc file
>(options for FTP), but a cursory glance at the man pages didn't reveal to
>me how.
>
>This option is necessary to traversing a IP_Masq gateway since the
>standard ftp protocol dynamicaly creates ports to talk to your local
>machine--but the masq system can't predict this and so doesn't know where
>to send the new port to.
>
>- -Jason
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 5.0i for non-commercial use
>Charset: noconv
>
>iQA/AwUBNXnRY0KfLTNHAEQFEQKn4wCg06WEj4BpRLr6kbDTCs1cWmCrsNkAn2f2
>FKefALGrxDk9oairXPjoS2Ke
>=k6Om
>-----END PGP SIGNATURE-----
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>the body of a message to [EMAIL PROTECTED]
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For daily digest info, email [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]