Re: Client to telnet into server and then ftp to another server



On 8 Aug 2006 03:23:30 -0700, Marlo wrote:
I am trying to write a java client that connects to a ftp server.
The trick is that the ftp server has a private IP and is sitting
behind a Telnet server with a public IP address.

How can I go about implementing this client? [I already have the ftp
client working.]. The idea is first to connect via telnet, then
connect to the ftp server and then download/upload files.

I know this isn't a direct answer to your question, but it might help
you find a better solution to your problem.

It sounds to me like you're trying to transfer files between two
hosts, neither of which is your localhost. It might be worth knowing
that the FTP protocol already supports this kind of transfer, i.e. an
FTP client on one host can be used to transfer files directly between
two other hosts, without the files passing the client host.

All that's required is that the client establish control connections
to each of the remote hosts. It's described in the RFC, in particular
figure 2 and section 5.2.

/gordon

--
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
.



Relevant Pages

  • Re: ipfw or ipf w/stateful behavior
    ... these make the firewall secure enaugh. ... > hosting a FTP server at your site? ... Securing things for an FTP client ...
    (FreeBSD-Security)
  • Re: ftp hangs
    ... But I have just used the same Solaris 10 ftp client and connected to the HP C3600's ftp server. ... it possible that it just defaults to passive mode so that the command to ... No, I can't be sure about the HP ftp server, but I tried both with and without the "passive" command from Sun's ftp client and find it works with the HP server in either case. ...
    (comp.unix.solaris)
  • Re: ipfw or ipf w/stateful behavior
    ... I take it you're trying to access a remote FTP server, ... Securing things for an FTP client ... firewall, that can detect the outgoing PORT command (with all the ...
    (FreeBSD-Security)
  • RE: External FTP access problem.
    ... Thank you for posting in SBS newsgroup. ... can not access external FTP server and receive error 500, however, you can ... access FTP server on SBS. ... Is the firewall client installed on the client computers? ...
    (microsoft.public.windows.server.sbs)
  • Re: Client to telnet into server and then ftp to another server
    ... The trick is that the ftp server has a private IP and is sitting ... How can I go about implementing this client? ... two other hosts, without the files passing the client host. ...
    (comp.lang.java.programmer)