LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Need Vsftp To Use Multiple .conf Files (https://www.linuxquestions.org/questions/linux-networking-3/need-vsftp-to-use-multiple-conf-files-191491/)

Goma_2 06-09-2004 09:07 AM

Need Vsftp To Use Multiple .conf Files
 
Hi
I used to have inetd to startup my vsftp. The best thing was that i could use a different vsftpd.conf depending on where the connection came from, with a hosts.allow like this:
Code:

vsftpd: 192.168.0.0/255.255.255.0 : allow
vsftpd: 0.0.0.0/0.0.0.0 : setenv VSFTPD_LOAD_CONF /etc/vsftpd_foreign.conf

-The 1st line would run vsftp with its default vsftpd.conf for all connections comming from my local subnet
-The 2nd would run it with vsftpd_foreign.conf for all connections comming from other subnets.
This was a very powerfull feature for my ftp server.

Now i have a more recent Suse 9.1 running with xinetd. IŽve never been an expert configuring wrappers, but i think xinetd doesnt use /etc/hosts.allow but /etc/xinetd.d/vsftd insetead.
This is my /etc/xinetd.d/vsftd file:
Code:

service ftp
{
#        server_args            =
#        log_on_success          += DURATION USERID
#        log_on_failure          += USERID
#        nice                    = 10
socket_type    = stream
protocol        = tcp
wait            = no
user            = root
server          = /usr/sbin/vsftpd
}

What can i do to get xinetd to give me the functionality i had with inetd?
IŽd like to be able to use my old hosts.allow parameter:
"setenv VSFTPD_LOAD_CONF /etc/vsftpd_foreign.conf"
in /etc/xinetd.d/vsftd but i dont know where to put smth like that.

Im sure there must be a way, xinetd is newer than inetd and must offer the same and more than inetd, but i cannot find good howtoŽs or docs on xinetd.
Please help.


All times are GMT -5. The time now is 03:12 AM.