Dopo aver provato con successo proftpd in modalità standalone volevo provare a usarlo tramite xinetd ma sembra che alla richiesta di un client ftp non succeda nulla:
tramite il comando "ftp 127.0.0.1"
ftp: connect: Connection refused
Ho installato xinet sullamia debian sarge: "apt-get install xinetd" e configurato xinetd.conf così:
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 25
log_type = SYSLOG
log_on_success = HOST PID
log_on_failure = HOST
per_source = 2
#max connessioni altrimenti blocco per n secondi
cps = 25 30
}
includedir /etc/xinetd.d
------------------------------------------------------------
in xinetd.d ho creato il file proftpd che contiene le seguenti righe:
# Versione tcp abilitata.
service ftp
{
disable = no
type = INTERNAL
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/sbin/proftpd
# access-times = 0:00-0:00
}
---------------------------------------------------------------
e per finire il mio proftpd.conf
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
ServerName "Planet1 server. FTP sperimentale"
Ho modificato SOLO ServerType da quando lo usavo in standalone.
ServerType inetd
DefaultServer on
ServerIdent on "Planet1 server. Servizio FTP sperimentale"
Port 21
#Da applicare in caso non si specifichi ServerIdent (per eliminare l'invio delle info del nostro server)
DeferWelcome off
ShowSymLinks on
MultilineRFC2228 on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 600
AccessGrantMsg "Accesso consentito a %u. Benvenuto!"
DisplayQuit /imp/messaggioquit.msg
DisplayGoAway /imp/via.msg
DisplayConnect /imp/messaggiologin.msg
DeleteAbortedStores on
#passa solo queste info
ListOptions "-l"
Umask 022 027
UseReverseDNS off
IdentLookups off
MaxInstances 5
User nobody
Group nogroup
#log presonale
LogFormat default "%a con user %u %l alle ore %t RICHIEDE %r con file %f"
ExtendedLog /var/log/ftp/ftp.log auth,write
#wtmp file log si no? (quello usato da "last")
WtmpLog off
#TransferLog /var/log/ftp/xferlog
TransferLog NONE
#livello log errori
SysLogLevel alert
SystemLog /var/log/ftp/system.log
[lo taglio qui credo che basti e avanzi!]
-----------------------------------------------------------
cosa sbaglioo
Quote:
ServerType inetd????
DefaultServer on
ServerIdent on "Planet1 server. Servizio FTP sperimentale"
Port 21
inetd non è xinetd, :-o
e poi perchè hai installato xinetd (usato da fedora-mandrake) quando debian e slackware di default usano inetd? :-o