Discussion:
[Proftpd-user] virtual hosts, multiple IPs and sftp on port 22
Tomasz Chmielewski
2009-12-26 16:14:16 UTC
Permalink
I would like to run ProFTPD on standard port 21, for ftp and ftps
traffic and also on port 22, for sftp traffic.

Running proftpd on port 21 for ftp and ftps traffic is pretty
straightforward.

However, I'm having problems running it on port 22 to deal with sftp
traffic on multiple IPs.

I am able to make ProFTPD listen on all interfaces on port 22, but it
only expects sftp traffic on one IP address.
All other IP addresses on port 22 will expect traditional FTP traffic,
not sftp.

Does anyone have working configuration examples where ProFTPD would
listen on port 21, all IPs for ftp/ftps traffic, and on port 22, all
IPs, for sftp traffic?
--
Tomasz Chmielewski
http://wpkg.org
Tomasz Chmielewski
2009-12-27 15:24:05 UTC
Permalink
Post by Tomasz Chmielewski
Does anyone have working configuration examples where ProFTPD would
listen on port 21, all IPs for ftp/ftps traffic, and on port 22, all
IPs, for sftp traffic?
I didn't know one can use multiple IPs per virtual host:

<VirtualHost 1.1.1.1 2.2.2.2>

which essentially solves my problem.
--
Tomasz Chmielewski
http://wpkg.org
TJ Saunders
2010-01-04 18:44:12 UTC
Permalink
Post by Tomasz Chmielewski
Post by Tomasz Chmielewski
Does anyone have working configuration examples where ProFTPD would
listen on port 21, all IPs for ftp/ftps traffic, and on port 22, all
IPs, for sftp traffic?
<VirtualHost 1.1.1.1 2.2.2.2>
which essentially solves my problem.
You can also use:

<VirtualHost 0.0.0.0>
Port 22
SFTPEngine on
...
</VirtualHost>

to bind to all interfaces, port 22.

Hope this helps,
TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It is a strange desire to seek power and to lose liberty.

-Francis Bacon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Continue reading on narkive:
Loading...