Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an FTP server configured on a Debian machine: one user need to access another FTP server that is behind that machine and we have only one public IP address.

The solution that comes to my mind is to set the home dir for the user to one directory where I mount a remote FTP server using ftpfs.

Any other solutions?

share|improve this question

1 Answer 1

How about having the special user connect to the gateway on a different port, and redirect that port to the ftp server on the machine behind it ?

  • normal case:

    user$ ftp gateway
    

    -> connects to the gateway on port 21 as usual

  • special case:

    user$ ftp gateway 2121
    

    -> connects to the gateway on special port 2121.
    gateway redirects it to port 21 on the machine behind it so user reaches the other ftp server.

Only trick is to set port redirection. Depends if you're behind a router or if the linux box is the gateway.

share|improve this answer
    
ftp doesn't require also a data port (20) ? how can I redirect also that port? –  Mauro Destro Jan 10 '13 at 7:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.