Moderator: ago


Code: Select all
IS_CONFIGURED="yes"
SERVER="-S 192.168.0.12,31000"
## Number of simultaneous connections in total, and per ip ##
MAX_CONN="-c 10"
MAX_CONN_IP="-C 10"
## Start daemonized in background ##
DAEMON="-B"
## Don't allow uploads if the partition is more full then this var ##
DISK_FULL="-k 90%"
## If your FTP server is behind a NAT box, uncomment this ##
#USE_NAT="-N"
## Authentication (others are 'pam', ...)##
## Further infos in the README file.
AUTH="-l puredb:/etc/pureftpd.pdb"
## Change the maximum idle time. (in minutes. default 15)
TIMEOUT="-I 5"
## Use that facility for syslog logging. It defaults to 'ftp'
## Logging can be disabled with '-f none' .
LOG="-f facility"
## Misc. Others ##
#
MISC_OTHER="-Y 2 -p 65000:65005 -A -x -j -E -R -F /etc/FTP-MOTD -O clf:/var/log/pureftpd.log"Ti passo un paper, una storiella molto divertente!! Ti sara di aiuto sul come capire se una conessione e' crittata -> quiflocchini wrote: Come faccio a essere certo che il criptaggio ssl sia attivato?

Code: Select all
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [INFO] New connection from 192.168.254.101
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [DEBUG] Command [auth] [TLS]
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [INFO] SSL/TLS: Enabled TLSv1/SSLv3 with AES256-SHA, 256 secret bits cipher
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [DEBUG] Command [user] [zuglio]
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [DEBUG] Command [pass] [<*>]
Jun 3 09:01:58 Thunder pure-ftpd: (?@192.168.254.101) [INFO] zuglio is now logged in
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pwd] []
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pbsz] [0]
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [prot] [P]
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pret] [LIST ]
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pasv] []
Jun 3 09:01:58 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [list] []
Jun 3 09:02:03 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [type] [I]
Jun 3 09:02:03 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pasv] []
Jun 3 09:02:03 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [stor] [url.txt]
Jun 3 09:02:03 Thunder pure-ftpd: (zuglio@192.168.254.101) [NOTICE] /home/ftp//url.txt uploaded (42 bytes, 45.47KB/sec)
Jun 3 09:02:08 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [prot] [P]
Jun 3 09:02:08 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [type] [A]
Jun 3 09:02:08 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pasv] []
Jun 3 09:02:08 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [list] []
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [type] [I]
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [size] [url.txt]
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [mdtm] [url.txt]
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [pasv] []
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [retr] [url.txt]
Jun 3 09:02:09 Thunder pure-ftpd: (zuglio@192.168.254.101) [NOTICE] /home/ftp//url.txt downloaded (42 bytes, 350.82KB/sec)
Jun 3 09:02:10 Thunder pure-ftpd: (zuglio@192.168.254.101) [DEBUG] Command [quit] []
Jun 3 09:02:10 Thunder pure-ftpd: (zuglio@192.168.254.101) [INFO] Logout.Code: Select all
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [INFO] New connection from flocgentoo.rccsys.net
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [ERROR] Can't open /etc/FTP-MOTD
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [DEBUG] Command [auth] [TLS]
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [INFO] SSL/TLS: Enabled TLSv1/SSLv3 with AES
256-SHA, 256 secret bits cipher
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [DEBUG] Command [user] [daninni82]
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [DEBUG] Command [pass] [<*>]
Jun 3 13:54:45 flocgentoo pure-ftpd: (?@flocgentoo.rccsys.net) [INFO] daninni82 is now logged in
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [pwd] []
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [pbsz] [0]
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [prot] [P]
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [pret] [LIST ]
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [pasv] []
Jun 3 13:54:45 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [list] []
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [type] [I]
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [size] [[Linux] Red Hat 9.0 shrike-i386-disc1.iso]
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [mdtm] [[Linux] Red Hat 9.0 shrike-i386-disc1.iso]
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [pasv] []
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [retr] [[Linux] Red Hat 9.0 shrike-i386-disc1.iso]
Jun 3 13:54:51 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [NOTICE] /data/1/ftpusers/daninni82//[Linux] Red Hat 9.0 shrike-i386-disc1.iso downloaded (16777216 bytes, 58660.32KB/sec)
Jun 3 13:55:04 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [DEBUG] Command [quit] []
Jun 3 13:55:04 flocgentoo pure-ftpd: (daninni82@flocgentoo.rccsys.net) [INFO] Logout.
Per me il criptaggio dei dati solosul canale di controllo non e' sufficiente, quindi me ne torno mesto mesto sul mio proftpd, un po' piu' incasinato da configurare ma piu' adatto per le mie esigenze. Grazie comunque per la vostra disponibilita'Documentazione ufficiale wrote: ------------------------ SSL/TLS SUPPORT ------------------------
Starting with version 1.0.16, Pure-FTPd has experimental support for
encryption of the control channel using SSL/TLS security mechanisms.
When this extra security layer is enabled, login and passwords are no more
sent cleartext. Neither are other commands sent by your client nor replies
made by the server.
However, the data channel is not affected by SSL/TLS. This combination
brings no significant decrease of performance and the FXP protocol keeps
working even when mixing SSL/TLS-enabled and non SSL/TLS-enabled servers.

Ma non e' vero che e' difficile da configurare! Io ho dato un occhiata su /usr/share/doc/proftpd/ ed ho trovate quasi tutto. La documentazione e' in parte incompleta, ma ho trovato veramente tutto quello che mi vervivaflocchini wrote:In effetti mi rendo conto che piuttosto che fare tutto sto casino era + semplice leggere attentamente ilreadme.tls della documentazione ufficiale...
mesto mesto sul mio proftpd, un po' piu' incasinato da configurare ma piu' adatto per le mie esigenze. Grazie comunque per la vostra disponibilita'