LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2004, 09:07 AM   #1
Goma_2
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp.conf slackware -- local user login Pozican Linux - Software 3 05-08-2005 10:03 AM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 05:25 PM
vsftp user hiden files intruder Linux - Software 1 12-21-2003 03:18 PM
vsftp - locking files? amanu1 Linux - Software 1 11-15-2003 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration