Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a bunch of LXC containers with vsftpd daemon installed on each. I would like to forward/proxy traffic from dom0 server port 21 to particular containers based on ftp user name e.g. user@domain.com or domain part to be more precise.

I tried to use ftp-proxy and it works perfectly but no SSL support. Frox has SSL support but only between proxy and ftpd server.

I found that squid can do FTP and SSL but I have never done anything with squid and I cannot tell if it's suitable. Maybe you could provide me with information in that matter or give any other idea?

Eventually I will end up with multiple iptables DNAT's pointing directly to containers' vsftpd daemon but common port 21 would look great.

share|improve this question

You might look into using the mod_proxy module for proftpd; it can do FTPS on the frontend and backend, and do per-user routing. See proftpd-mod_proxy

Full disclaimer: I'm the author/developer of proftpd and mod_proxy.

share|improve this answer

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.