LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   FTP wrapper (https://www.linuxquestions.org/questions/linux-security-4/ftp-wrapper-160604/)

dominant 03-21-2004 01:10 PM

FTP wrapper
 
Is there wrapper for ftp just like the sshd one?

phek 03-22-2004 01:42 AM

both proftpd and wu-ftpd have an inetd wrapper, most distributions in my experience come with inetd (xinetd for red hat based distro's) already set up.

dominant 03-22-2004 08:49 AM

what about VsFTP and SUSE 9?

dominant 03-23-2004 06:08 AM

any idea?

phek 03-23-2004 01:24 PM

i'm not familiar with vsftp or suse, but you can look through /etc/inetd.conf for any ftp wrappers.

dominant 03-24-2004 02:18 AM

i thought that inetd.conf is only for starting network services.

phek 03-24-2004 03:39 AM

thats not excactly correct. inetd is the tcp-wrapper while programs such as proftpd, wu-ftpd, openssh, among others are capable of using tcp-wrappers. What a tcp-wrapper does is listen and accept connections to a port (generally 21 for ftp) and handle the connections. From there it forwards the data to the program (which isn't actually listening on any port, but listening to inetd). Hopefully I made that clear enough. The benefit of using tcp-wrappers, is you add another level of security to your program. With inetd in paticular it sends each connection through a series of tests, such as is this remote address in hosts.allow or hosts.deny? inetd is not the only tcpwrapper program, actually it has some major bugs such as it's "flaky" once it gets up to handleing 500+ concurrent connections. tcpserver by daniel j. bernstein is another more secure tcpwrapper that is commonly used.

from linuxgeek.net
TCPwrappers

The tcpwrappers replace a number of "listening" daemons with a single "master" daemon
that listens for service requests for several common services on the system. When a
request for a service is made the tcpwrapper (tcpd) "wakes" the daemon for that service.
This does two things. It saves on system resources, since only one process needs to be
running. It also gives more fine grained control over who will be allowed to access
services through access control lists.

The daemons that tcpwrappers ``listens'' for are all servers listed in /etc/inetd.conf.

dominant 03-24-2004 06:13 AM

I got is and it worked for vsftpd as below

vsftpd : ALL@MyIP

But what the ALL@ is for?

phek 03-24-2004 01:39 PM

what file is that in?

dominant 03-25-2004 03:34 AM

Sorry?


All times are GMT -5. The time now is 02:52 PM.