<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.livois.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Proftpd</id>
	<title>Proftpd - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.livois.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Proftpd"/>
	<link rel="alternate" type="text/html" href="https://wiki.livois.com/mediawiki/index.php?title=Proftpd&amp;action=history"/>
	<updated>2026-05-25T05:31:45Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.livois.com/mediawiki/index.php?title=Proftpd&amp;diff=87&amp;oldid=prev</id>
		<title>Christophe : 1 version</title>
		<link rel="alternate" type="text/html" href="https://wiki.livois.com/mediawiki/index.php?title=Proftpd&amp;diff=87&amp;oldid=prev"/>
		<updated>2012-05-28T20:31:49Z</updated>

		<summary type="html">&lt;p&gt;1 version&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 28 mai 2012 à 20:31&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fr&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Aucune différence)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Christophe</name></author>
	</entry>
	<entry>
		<id>https://wiki.livois.com/mediawiki/index.php?title=Proftpd&amp;diff=86&amp;oldid=prev</id>
		<title>192.168.10.1 : /* Antivirus avec Clamav */</title>
		<link rel="alternate" type="text/html" href="https://wiki.livois.com/mediawiki/index.php?title=Proftpd&amp;diff=86&amp;oldid=prev"/>
		<updated>2008-11-15T08:06:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Antivirus avec Clamav&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Web]]&lt;br /&gt;
http://www.proftpd.org&lt;br /&gt;
&lt;br /&gt;
=Configuration &amp;amp; Fonctionnalités=&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
!width=200|Fonctionnalités!!width=200|Solution&lt;br /&gt;
|-&lt;br /&gt;
|Serveur FTP||proftpd&lt;br /&gt;
|-&lt;br /&gt;
|Domaines Virutels||TODO&lt;br /&gt;
|-&lt;br /&gt;
|Authentification LDAP||mod_ldap&lt;br /&gt;
|-&lt;br /&gt;
|Quota||mod_quotatab&amp;lt;br&amp;gt;mod_quotatab_file&amp;lt;br&amp;gt;mod_quotatab_ldap&lt;br /&gt;
|-&lt;br /&gt;
|Sécurisation||mod-shaper&amp;lt;br&amp;gt;mod_tls&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;blockquote class=&amp;quot;gentoo&amp;quot;&amp;gt;&lt;br /&gt;
Package Gentoo: proftpd +softquota&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
La liste de directives de configuration se trouvent à l&amp;#039;adresse:&lt;br /&gt;
http://www.proftpd.org/docs/directives/configuration_full.html&lt;br /&gt;
&lt;br /&gt;
=Configuration standard=&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
ServerName              &amp;quot;ftp.livois.com&amp;quot;&lt;br /&gt;
ServerType              standalone&lt;br /&gt;
DefaultServer           on&lt;br /&gt;
RequireValidShell       off&lt;br /&gt;
#AuthPAM                off&lt;br /&gt;
#AuthPAMConfig          ftp&lt;br /&gt;
&lt;br /&gt;
# Port 21 is the standard FTP port.&lt;br /&gt;
Port                            21&lt;br /&gt;
&lt;br /&gt;
# Umask 022 is a good standard umask to prevent new dirs and files&lt;br /&gt;
# from being group and world writable.&lt;br /&gt;
Umask                           022&lt;br /&gt;
&lt;br /&gt;
# To prevent DoS attacks, set the maximum number of child processes&lt;br /&gt;
# to 30.  If you need to allow more than 30 concurrent connections&lt;br /&gt;
# at once, simply increase this value.  Note that this ONLY works&lt;br /&gt;
# in standalone mode, in inetd mode you should use an inetd server&lt;br /&gt;
# that allows you to limit maximum number of processes per service&lt;br /&gt;
# (such as xinetd).&lt;br /&gt;
MaxInstances                    5&lt;br /&gt;
&lt;br /&gt;
# Set the user and group under which the server will run.&lt;br /&gt;
User                            ftp&lt;br /&gt;
Group                           ftp&lt;br /&gt;
&lt;br /&gt;
# Normally, we want files to be overwriteable.&lt;br /&gt;
&amp;lt;Directory /&amp;gt;&lt;br /&gt;
  AllowOverwrite                on&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
IdentLookups off&lt;br /&gt;
UseReverseDNS off&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Default Root==&lt;br /&gt;
http://www.proftpd.org/localsite/Userguide/linked/chroot.html&lt;br /&gt;
&lt;br /&gt;
There are situations where different classes of user should be limited in different ways. For example, developers working on a site should only be able to see the section they are responsible for, whereas the sysadmins and supervisors need to have a wider view on the server. This can be acomplished either by setting the $HOME of each user to the location on the disk which is most appropriate, or more commonly by using system groups.&lt;br /&gt;
&lt;br /&gt;
Example 9-3. DefaultRoot, modified by system group&lt;br /&gt;
&amp;lt;licode&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# A more complex setup where all users are locked into &lt;br /&gt;
# their home except those in group &amp;#039;staff&amp;#039; who are &lt;br /&gt;
# locked into /u2/allweb&lt;br /&gt;
#&lt;br /&gt;
&amp;lt;VirtualHost myhost.mynet.foo&amp;gt;&lt;br /&gt;
DefaultRoot ~ !staff&lt;br /&gt;
DefaultRoot /u2/allweb staff&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Domaines Virtuels (TODO)=&lt;br /&gt;
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Vhost.html&lt;br /&gt;
&lt;br /&gt;
:The bottom line is that ProFTPD does not support name-based virtual hosts; not because they are not implemented, but simply because the protocol itself does not support them.&lt;br /&gt;
:The only work around at this time is to use a different primary port for each virtual if more than one per IP is required.&lt;br /&gt;
&lt;br /&gt;
La solution serait peut être de mettre un proxy en frontal (frox? ou squid?)&lt;br /&gt;
&lt;br /&gt;
=Authentification LDAP=&lt;br /&gt;
http://horde.net/~jwm/software/mod_ldap/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
LDAPDNInfo              &amp;quot;cn=postmaster,vd=livois.com,o=hebergement,dc=livois,dc=com&amp;quot; &amp;quot;postmaster&amp;quot;&lt;br /&gt;
LDAPServer              localhost&lt;br /&gt;
LDAPDoAuth              on vd=livois.com,o=hebergement,dc=livois,dc=com uid=%v&lt;br /&gt;
LDAPDefaultGID          100&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Les lignes de configurations suivantes permettent aux utilisateurs de se connecter directement dans le répertoite /home/ftp/&amp;lt;utilisateur&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
LDAPHomedirOnDemand       on 750&lt;br /&gt;
LDAPForceHomedirOnDemand  on&lt;br /&gt;
LDAPHomedirOnDemandPrefix /home/ftp&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A partir de proftpd 1.3, les lignes de configurations deviennent :&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
LDAPGenerateHomedir             on 750&lt;br /&gt;
LDAPForceGeneratedHomedir       on&lt;br /&gt;
LDAPGenerateHomedirPrefix       /home/ftp&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Sécurisation=&lt;br /&gt;
==de base==&lt;br /&gt;
&lt;br /&gt;
:Par défaut, root ne peut pas se connecter au serveur FTP. Pour configurer le serveur autrement, il faut se tourner vers la directive &amp;lt;tt&amp;gt;RootLogin&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
:Pour empêcher les utilisateurs de se ballader dans l&amp;#039;arborescence du serveur, il est possible de limiter l&amp;#039;accès à la racine du serveur avec la directive &amp;lt;tt&amp;gt;DefaultRoot&amp;lt;/tt&amp;gt;. Les utilisateurs n&amp;#039;ont pas non plus à jouer avec le « . ».&lt;br /&gt;
&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
DefaultRoot ~&lt;br /&gt;
DenyFilter \*.*/&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
==Contrôle et répartition des accès (TODO)==&lt;br /&gt;
mod_shaper - http://www.castaglia.org/proftpd/modules/mod_shaper.html&lt;br /&gt;
&lt;br /&gt;
==Quota==&lt;br /&gt;
&amp;lt;blockquote class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
Remarque Gentoo : Pour utiliser les quota avec proftpd, il faut compiler proftpd avec la variable use softquota, par exemple dans /usr/portage/package.use&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://www.castaglia.org/proftpd/modules/mod_quotatab.html&lt;br /&gt;
&lt;br /&gt;
http://www.castaglia.org/proftpd/#Modules&lt;br /&gt;
&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd.conf&amp;gt;&lt;br /&gt;
QuotaEngine  on&lt;br /&gt;
QuotaLimitTable ldap:&lt;br /&gt;
LDAPDoQuotaLookups on &amp;quot;vd=livois.com,o=hebergement,dc=livois,dc=com&amp;quot; &amp;quot;(&amp;amp;(uid=%v)(objectclass=posixAccount))&amp;quot;&lt;br /&gt;
#QuotaLimitTable file:/etc/proftpd/ftpquota.limittab&lt;br /&gt;
QuotaTallyTable file:/etc/proftpd/ftpquota.tallytab&lt;br /&gt;
QuotaDisplayUnits Mb&lt;br /&gt;
QuotaShowQuotas on&lt;br /&gt;
QuotaLog   /var/log/proftpd/quota.log&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ce module s&amp;#039;appuie sur 2 « bases » de données:&lt;br /&gt;
* les données « tally » comptabilise la taille des fichiers envoyés ou téléchargés&lt;br /&gt;
* les données « limit » sont les quota à ne pas atteindre&lt;br /&gt;
&lt;br /&gt;
Créer le fichier « tally »:&lt;br /&gt;
* télécharger ftpquota: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#wget http://www.castaglia.org/proftpd/contrib/ftpquota&lt;br /&gt;
#cp ftpquota /usr/bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*créer le fichier &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#ftpquota --verbose --create-table --type tally --table-path /etc/proftpd/ftpquota.tallytab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Les informations de quota sont à mettre en une seule ligne pour l&amp;#039;attribut « ftpQuota »&lt;br /&gt;
&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
!Variables!!Valeurs possibles!!Explications&lt;br /&gt;
|-&lt;br /&gt;
|per_session||true/false||Définit si le quota se limit à la session&lt;br /&gt;
|-&lt;br /&gt;
|limit_type||hard/soft||&lt;br /&gt;
* Si la limite est soft, le fichier qui atteint le quota est accepté, les fichiers suivants sont supprimés.&lt;br /&gt;
* Si la limite est hard, le fichier qui atteint le quota est supprimé du serveur.&lt;br /&gt;
|-&lt;br /&gt;
|bytes_in_avail,||entier ou null||Quota d&amp;#039;upload en octets&lt;br /&gt;
|-&lt;br /&gt;
|bytes_out_avail,||entier ou null||Quota de download en octets&lt;br /&gt;
|-&lt;br /&gt;
|bytes_xfer_avail,||entier ou null||Quota de transfert (download+upload) en octets&lt;br /&gt;
|-&lt;br /&gt;
|files_in_avail,||entier ou null||Quota d&amp;#039;upload en nombre de fichiers&lt;br /&gt;
|-&lt;br /&gt;
|files_out_avail,||entier ou null||Quota de download  en nombre de fichiers&lt;br /&gt;
|-&lt;br /&gt;
|files_xfer_avail,||entier ou null||Quota de transfert (Download+ Upload) en nombre de fichiers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Exemple de valeur attribut ftpQuota pour limiter l&amp;#039;upload d&amp;#039;un utilisateur à 10Mb:&lt;br /&gt;
&amp;lt;tt&amp;gt;false,hard,10485760,,,,,&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rajout de l&amp;#039;attribut ftpQuota dans le schema ldap nis&lt;br /&gt;
&amp;lt;licode file=/etc/openldap/schema/nis.schema&amp;gt;&lt;br /&gt;
attributetype ( 1.3.6.1.1.1.1.28 NAME &amp;#039;ftpQuota&amp;#039;&lt;br /&gt;
        DESC &amp;#039;ftpQuota pour Proftpd&amp;#039;&lt;br /&gt;
        EQUALITY caseIgnoreIA5Match&lt;br /&gt;
        SUBSTR caseIgnoreIA5SubstringsMatch&lt;br /&gt;
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE)&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adaptation de la classe posixAccount en rajoutant ftpQuota dans les attributs possibles:&lt;br /&gt;
&amp;lt;licode file=/etc/openldap/schema/nis.schema&amp;gt;&lt;br /&gt;
objectclass ( 1.3.6.1.1.1.2.0 NAME &amp;#039;posixAccount&amp;#039; SUP top AUXILIARY&lt;br /&gt;
        DESC &amp;#039;Abstraction of an account with POSIX attributes&amp;#039;&lt;br /&gt;
        MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )&lt;br /&gt;
        MAY ( userPassword $ loginShell $ gecos $ description $ ftpQuota) )&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Antivirus avec Clamav==&lt;br /&gt;
http://www.thrallingpenguin.com/resources/mod_clamav.htm&lt;br /&gt;
&lt;br /&gt;
Le module clamav doit être compilé :&lt;br /&gt;
 #proftpd -l &lt;br /&gt;
&lt;br /&gt;
 Compiled-in modules:&lt;br /&gt;
 ...&lt;br /&gt;
  mod_clamav.c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;licode file=/etc/proftpd/proftpd.conf&amp;gt;&lt;br /&gt;
ClamAV On&lt;br /&gt;
ClamLocalSocket /var/amavis/clamd&lt;br /&gt;
&amp;lt;/licode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote class=note&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; It is highly recommended to send a HUP signal to the parent ProFTPD process after executing freshclam. This causes the parent process to read the newest AV updates, which automatically gives new child processes the latest updates. If this isn&amp;#039;t done, the child processes will always read the latest updates available upon their startup. This will effect the performace of the FTP server, as each new connecting client must read the latest AV updates.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Administration=&lt;br /&gt;
==module phamm - TODO==&lt;br /&gt;
http://www.phamm.org&lt;br /&gt;
&lt;br /&gt;
==Commandes diverses==&lt;br /&gt;
===Visualiser les connexions en cours===&lt;br /&gt;
 ftptop -v&lt;br /&gt;
&lt;br /&gt;
 ftptop/0.9: Sat Nov 18 16:18:05 2006, up for 41 days, 33 min&lt;br /&gt;
 3 Total FTP Sessions: 0 downloading, 2 uploading, 1 idle&lt;br /&gt;
 .&lt;br /&gt;
 PID   S USER     CLIENT               SERVER          TIME COMMAND&lt;br /&gt;
 13380 I laurence ATuileries-153-1-86- 192.168.10.1:21 2m44s  idle&lt;br /&gt;
 .&lt;br /&gt;
 15303 U laurence ATuileries-153-1-86- 192.168.10.1:21 1m3s   STOR Toussaint 2006 027.jpg&lt;br /&gt;
 .&lt;br /&gt;
 15304 U laurence ATuileries-153-1-86- 192.168.10.1:21 0m54s  STOR Toussaint 2006 026.jpg&lt;br /&gt;
&lt;br /&gt;
===Visualiser les utilisateurs connectés===&lt;br /&gt;
 ftpwho -v&lt;br /&gt;
&lt;br /&gt;
 standalone FTP daemon [6408], up for 41 days, 38 min&lt;br /&gt;
 17251 laurence [ 1m52s]   0m7s idle&lt;br /&gt;
        client: ATuileries-153-1-86-43.w83-202.abo.wanadoo.fr [83.202.105.43]&lt;br /&gt;
        server: 192.168.10.1:21 (ftp.livois.com)&lt;br /&gt;
        location: /&lt;br /&gt;
 .&lt;br /&gt;
 15303 laurence [ 5m35s]   0m7s idle&lt;br /&gt;
        client: ATuileries-153-1-86-43.w83-202.abo.wanadoo.fr [83.202.105.43]&lt;br /&gt;
        server: 192.168.10.1:21 (ftp.livois.com)&lt;br /&gt;
        location: /&lt;br /&gt;
 .&lt;br /&gt;
 Service class                      -   2 users&lt;br /&gt;
&lt;br /&gt;
===Arrêter les connexions en cours===&lt;br /&gt;
* Arrêter&lt;br /&gt;
 #ftpshut now&lt;br /&gt;
* Redémarrer&lt;br /&gt;
 #ftpshut -R&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Remarque: &amp;#039;&amp;#039;&amp;#039;Le serveur proftpd doit être en mode standalone et non inetd.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Il est aussi possible de stopper les connexions par utilisateur avec la commande&lt;br /&gt;
 #ftpdctl kick utilisateur&lt;br /&gt;
&lt;br /&gt;
http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Controls.html&lt;br /&gt;
&lt;br /&gt;
http://www.castaglia.org/proftpd/modules/mod_ctrls_admin.html&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote class=note&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Attention:&amp;#039;&amp;#039;&amp;#039; ce module n&amp;#039;est pas compilé par défaut.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Annexes=&lt;br /&gt;
==Packages Gentoo==&lt;br /&gt;
{|class=wikitable&lt;br /&gt;
!Package!!D!!Fichiers de configuration&lt;br /&gt;
|-&lt;br /&gt;
|proftpd||*||&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc/proftpd/proftpd.conf&lt;br /&gt;
/usr/bin/ftpquota&lt;br /&gt;
/etc/proftpd/ftpquota.limittab  &lt;br /&gt;
/etc/proftpd/ftpquota.tallytab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Copy|2006|Christophe de Livois|FDL}}&lt;/div&gt;</summary>
		<author><name>192.168.10.1</name></author>
	</entry>
</feed>