vsftpd integration with xinetd on linux

Posted by anuj on Jul 1, 2008 in Linux |

The xinetd daemon is a TCP wrapped super service which controls access to a subset of popular network services including FTP, IMAP, and Telnet. It also provides service-specific configuration options for access control, enhanced logging, binding, redirection, and resource utilization control.

to integrate vsftpd with xinetd we need to take following steps.

1). Create a file /etc/xinetd.d/vsfpt with the following entries
# default: off
# description: The vsftpd FTP server serves FTP connections. It uses \
# normal, unencrypted usernames and passwords for authentication.
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
nice = 10
#allow only 10.1.10.2 machine
only_from = 10.1.10.2
}

2). Edit your /etc/vsftpd/vsftpd.conf file and comment out line
with “listen=YES”

3). Restart or reload the xinetd service.
/sbin/service xinetd reload

Now test your configuration with
netstat -a |grep ftp

also
To avoid port conflict at boot time turn off the vsftpd service
chkconfig vsftpd off
As of now our vsftpd is integrated with xinetd make sure that xinetd
starts automatically.
chkconfig xinetd on

Anuj Singh

Share/Save/Bookmark

1 Comment

Butzel
Jul 6, 2008 at 10:14 pm

… you have a very nice Site - Please visit my Webpage under Butzelnews Thanks and Greetings from Germany


 

Reply

Copyright © 2010 Anuj Singh All rights reserved. Theme by Laptop Geek.


Warning: stristr() [function.stristr]: Empty delimiter in /home/a/anujhere/public_html/wp-content/plugins/wassup/wassup.php on line 2093