Re: s6-tcpserver

2017-02-24 Thread Laurent Bercot
i've try the command line : s6-tcpserver -v -4  0.0.0.0 2121 
/usr/bin/stupid-ftpd


 stupid-ftpd has no inetd mode. It binds and listens to its socket 
itself:

in other words, it's not suitable to run under s6-tcpserver.

 s6-tcpserver only works with servers that do not listen to the network
themselves. For FTP, you have a choice - wuftpd, vsftpd, busybox ftpd, 
to

name a few, all have an inetd mode and can work under s6-tcpserver.
But stupid-ftpd is not one of them.



Sorry for my english i'am french.


 C'est pas une excuse. ;)

--
 Laurent



s6-tcpserver

2017-02-23 Thread Herve VIDAL

Hi

I'm new to this mailing list

I'm running on obarun with s6 as init and supervisor manager

Thanks for your great job. s6 is very stable.



I'am trying to set up an Ftp server with the superserver s6-tcpserver

i've try the command line : s6-tcpserver -v -4  0.0.0.0 2121 
/usr/bin/stupid-ftpd


My ftp server configure to listen to port 2121 but nothing

on console the connection up and then down

Where do I've done a mistake

I've also try to achive a port translation, server on 21 and 
s6-tcpserver on 2121, i've found that s6-tcpserver-access can do this 
with a set of rules in a dir, but where to inform s6-tcpserver that he 
must pass control to s6-tcpserver-access before launch stupid-ftp ?


Like that : s6-tcpserver -v -4  0.0.0.0 2121  
/usr/bin/s6-tcpserver-access -i /etc/s6-networking  /usr/bin/stupid-ftpd


and in /etc/s6-networking
a dir -> ip4 -> MatchIP -> env -> file TCPLOCALPORT with a line : 21


Sorry for my english i'am french.

Thank for your attention