#1 Le 01/07/2011, à 16:43
- minimoi59
configuration proftpd
bonjour
j'ai installé proftpd pour créer un serveur
le probleme c'est qu'en local ça fonctionne j'arrive a me connecté
ftp://moi:monpass@192.162.1.59
mais en externe ça fonctionne pas
je me demande si il n'y a pas une config a faire au niveau du routeur
description sur l'interface du routeur
DNS
adresse IP vide nom d hote vide
DHCP
activation oui
premiere adresse 192.168.1.10
deuxieme adresse 192.168.1.100
NAT
# Nom Protocole Type Ports externes Adresse IP de destination Ports de destination Activation
1 . . . . . . . . . TCP port Activer 192.168.1 oui
UPNP
Activation de l'UPnP activé
Règles NAT UPnP actives 0 règle
ROUTE
# Destination Masque de sous-réseau Passerelle
1 255.255.255.0 192.168.1
la box c'est une neufbox
code du fichier config
ModulePath /usr/lib/proftpd
LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_radius.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c
LoadModule mod_load.c
LoadModule mod_ban.c
LoadModule mod_wrap2.c
LoadModule mod_wrap2_file.c
LoadModule mod_dynmasq.c
LoadModule mod_vroot.c
LoadModule mod_exec.c
LoadModule mod_shaper.c
LoadModule mod_ratio.c
LoadModule mod_site_misc.c
LoadModule mod_sftp.c
LoadModule mod_sftp_pam.c
LoadModule mod_facl.c
LoadModule mod_unique_id.c
LoadModule mod_ifsession.c
ServerType standalone
DefaultServer on
Umask 022
ServerName "79.86.232.145"
ServerIdent on "minimoi"
ServerAdmin alainr59260@hotmail.fr
IdentLookups on
UseReverseDNS off
Port 21
PassivePorts 49150 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode ascii
AllowForeignAddress on
AllowRetrieveRestart off
AllowStoreRestart off
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
<IfModule mod_auth_pam.c>
AuthPAM off
</IfModule>
AuthUserFile /etc/gadmin-proftpd/users/proftpd.passwd
AuthGroupFile /etc/gadmin-proftpd/users/proftpd.group
<IfModule mod_tls.c>
TLSEngine off
TLSRequired auth+data
TLSVerifyClient on
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
TLSOptions AllowClientRenegotiation
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser minimoi
AllowUser alain
DenyALL
</Limit>
<Anonymous /home/alain/Documents>
User minimoi
Group group1
AnonRequirePassword on
MaxClients 10 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio minimoi 0 0 0 0
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous> ~ftp>
<Anonymous /home/alain/Téléchargements>
User alain
Group group1
AnonRequirePassword on
MaxClients 10 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio alain 942 1062 1684 1812
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
<VirtualHost localhost>
Port 65535
ServerName "localhost"
ServerIdent on "Vhost server"
PassivePorts 49152 65534
#MasqueradeAddress None
ServerAdmin Admin@example.org
Umask 022
TimesGMT off
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser on nobody
DirFakeGroup on nobody
DefaultTransferMode binary
AllowForeignAddress off
DeleteAbortedStores off
AllowRetrieveRestart on
AllowStoreRestart on
TransferRate RETR 142
TransferRate STOR 142
TransferRate STOU 142
TransferRate APPE 142
RequireValidShell off
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser alain
DenyAll
</Limit>
<Anonymous /home/alain/Téléchargements>
User alain
Group group1
AnonRequirePassword on
MaxClients 14 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio alain 0 0 0 0
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite off
<Limit LIST NLST STOR STOU APPE RETR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
ModulePath /usr/lib/proftpd
LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_radius.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c
LoadModule mod_load.c
LoadModule mod_ban.c
LoadModule mod_wrap2.c
LoadModule mod_wrap2_file.c
LoadModule mod_dynmasq.c
LoadModule mod_vroot.c
LoadModule mod_exec.c
LoadModule mod_shaper.c
LoadModule mod_ratio.c
LoadModule mod_site_misc.c
LoadModule mod_sftp.c
LoadModule mod_sftp_pam.c
LoadModule mod_facl.c
LoadModule mod_unique_id.c
LoadModule mod_ifsession.c
ServerType standalone
DefaultServer on
Umask 022
ServerName "79.86.232.145"
ServerIdent on "minimoi"
ServerAdmin XXXXXXXXXXXXXX@hotmail.fr
IdentLookups on
UseReverseDNS off
Port 21
PassivePorts 49150 65534
#MasqueradeAddress None
TimesGMT off
MaxInstances 30
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
DisplayLogin welcome.msg
DisplayChdir .message
User nobody
Group nobody
DirFakeUser off nobody
DirFakeGroup off nobody
DefaultTransferMode ascii
AllowForeignAddress on
AllowRetrieveRestart off
AllowStoreRestart off
DeleteAbortedStores off
TransferRate RETR 220
TransferRate STOR 250
TransferRate STOU 250
TransferRate APPE 250
SystemLog /var/log/secure
RequireValidShell off
<IfModule mod_auth_pam.c>
AuthPAM off
</IfModule>
AuthUserFile /etc/gadmin-proftpd/users/proftpd.passwd
AuthGroupFile /etc/gadmin-proftpd/users/proftpd.group
<IfModule mod_tls.c>
TLSEngine off
TLSRequired auth+data
TLSVerifyClient on
TLSProtocol SSLv23
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
TLSOptions AllowClientRenegotiation
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser minimoi
AllowUser alain
DenyALL
</Limit>
<Anonymous /home/alain/Documents>
User minimoi
Group group1
AnonRequirePassword on
MaxClients 10 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio minimoi 0 0 0 0
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous> ~ftp>
<Anonymous /home/alain/Téléchargements>
User alain
Group group1
AnonRequirePassword on
MaxClients 10 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio alain 942 1062 1684 1812
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite on
<Limit LIST NLST STOR STOU APPE RETR RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit NOTHING >
DenyAll
</Limit>
</Anonymous>
<VirtualHost localhost>
Port 65535
ServerName "localhost"
ServerIdent on "Vhost server"
PassivePorts 49152 65534
#MasqueradeAddress None
ServerAdmin Admin@example.org
Umask 022
TimesGMT off
MaxLoginAttempts 3
TimeoutLogin 300
TimeoutNoTransfer 120
TimeoutIdle 120
User nobody
Group nobody
DirFakeUser on nobody
DirFakeGroup on nobody
DefaultTransferMode binary
AllowForeignAddress off
DeleteAbortedStores off
AllowRetrieveRestart on
AllowStoreRestart on
TransferRate RETR 142
TransferRate STOR 142
TransferRate STOU 142
TransferRate APPE 142
RequireValidShell off
<IfModule mod_tls.c>
TLSEngine off
TLSRequired off
TLSVerifyClient off
TLSLog /var/log/proftpd_tls.log
TLSRSACertificateFile /etc/gadmin-proftpd/certs/cert.pem
TLSRSACertificateKeyFile /etc/gadmin-proftpd/certs/key.pem
TLSCACertificateFile /etc/gadmin-proftpd/certs/cacert.pem
TLSRenegotiate required off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
SaveRatios off
RatioFile "/restricted/proftpd_ratios"
RatioTempFile "/restricted/proftpd_ratios_temp"
CwdRatioMsg "Please upload first!"
FileRatioErrMsg "FileRatio limit exceeded, upload something first..."
ByteRatioErrMsg "ByteRatio limit exceeded, upload something first..."
LeechRatioMsg "Your ratio is unlimited."
</IfModule>
<Limit LOGIN>
AllowUser alain
DenyAll
</Limit>
<Anonymous /home/alain/Téléchargements>
User alain
Group group1
AnonRequirePassword on
MaxClients 14 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayChdir .msg
UserRatio alain 0 0 0 0
<Limit LOGIN>
Allow from All
Deny from all
</Limit>
AllowOverwrite off
<Limit LIST NLST STOR STOU APPE RETR PWD XPWD SIZE STAT CWD XCWD CDUP XCUP >
AllowAll
</Limit>
<Limit RNFR RNTO DELE MKD XMKD SITE_MKDIR RMD XRMD SITE_RMDIR SITE SITE_CHMOD SITE_CHGRP MTDM >
DenyAll
</Limit>
</Anonymous>
</VirtualHost>
voila j'espere que ça pourra m'aider a avoir des reponses
merci
Dernière modification par minimoi59 (Le 04/07/2011, à 15:26)
Hors ligne
#2 Le 02/07/2011, à 13:01
- minimoi59
Re : configuration proftpd
une petite question
je n'arrive pas a aller dans les dossier etc/gadmin-proftpd
ni lire le fichier var/log/proftpd/proftpd.log
lecture et modification interdite ça pourrai pas etre la cause si le prog doit lire les fichier quand quelq'un ce connecte???
Hors ligne
#3 Le 04/07/2011, à 05:42
- dudumomo
Re : configuration proftpd
Salut Minimoi59,
Pour une connexion en externe, assure toi que le port 21 et 22 sont bien ouvert (Dans ta neufbox)
Pour acceder au fichier /etc/gadmin-proftpd et aux logs, il te faut les lire en root j'imagine.
Un petit sudo devant, devrait resoudre cela, non?
Idipops, le réseau social des prestataires de services !
Tutorial and news on how to host your own server: http://freedif.org
Aidez la recherche avec BOINC et rejoignez la Mini-Team Libristes: http://www.boinc-af.org | http://libristes.boinc-af.net
Hors ligne
#4 Le 04/07/2011, à 12:33
- minimoi59
Re : configuration proftpd
salut
je pense qu'ils sont ouvert j'ai fait ça dans le nat
# Nom Protocole Type Ports externes Adresse IP de destination Ports de destination Activation
1 FTP TCP Port 21 192.168.1.10 21
2 FTP TCP Port 22 192.168.1.10 22
en local ça fonctionne mais pas en externe
Hors ligne
#5 Le 04/07/2011, à 15:34
- minimoi59
Re : configuration proftpd
en cherchan sur la toile j'ai modifier le nat comme indiquer mais toujours pareil
# Nom Protocole Type Ports externes Adresse IP de destination Ports de destination Activation
1 ftp TCP Plage 49152-65534 192.168.1.59 49152-65534
2 ftp1 TCP Port 20 192.168.1.59 20
3 ftp2 TCP Port 21 192.168.1.59 21
4 ftp3 TCP Port 22 192.168.1.59 22
j'ai aussi suivi les tuto pour les firewall mais rien n'i fait je comprend plus rien
Hors ligne
#6 Le 05/07/2011, à 08:52
- slab62
Re : configuration proftpd
Hors ligne
#7 Le 05/07/2011, à 11:05
- minimoi59
Re : configuration proftpd
bonjour
etat inactif
Hors ligne
#8 Le 05/07/2011, à 13:04
- slab62
Re : configuration proftpd
active le
sudo ufw enable
ensuite autorise les ports nécessaire
sudo ufw allow 21/tcp
idem pour le port 20 et la plage de port que tu souhait attribuer
ex :
sudo ufw allow 49152:65534/tcp
Noubli pas de redemarer proftpd et ça devrai fonctionner
ps: si tu utilise ssh autorise également le port 22 et si tu utilise webmin c'est le port 10000
sudo ufw allow 22/tcp
sudo ufw allow 10000/tcp
Perso je trouve que ta plage de port est très grande tu as combien de pc qui se connecteront simultanément?
Dernière modification par slab62 (Le 05/07/2011, à 13:07)
Hors ligne
#9 Le 05/07/2011, à 13:48
- minimoi59
Re : configuration proftpd
salut slab et merci pour ta reponse
pour ce qui est de la plage c'est en regardan un tuto pour configuré le nat sur la neuf box
il y aura une vingtaine de personne qui pourrons ce connecté
sinon j'ai fait ce que tu m'a dit mais tjr pareil
pour le reseau c'est des personnes de l'exterieur qui doivent pouvoir ce connecté c'est pas un reseau interne
petite question , dans l'interface de gadmin-proftpd sur la page serveur y demande 2 X l'adresse serveur
une dans le setting en haut de page et une dans signed certificat settings
moi j'ai mis l'adresse ip genre 77.xx.xx.xx
c'est bon ça ou pas ??
autre chose aussi , depuis que j'ai fait les modif que tu m'a dit quand je redémare ubuntu , j'ai 2 demande de login
la mienne d'origine a l'instalation et une autre user1 , c'est normal??
Hors ligne
#10 Le 06/07/2011, à 10:04
- slab62
Re : configuration proftpd
Je comprend pas bien Gadmin c'est une interface graphique.. Je pensé que tu parlait d'un server ubuntu (pas besoin de d'interface graphique tout ce fait en ligne de commande)
je te conseil d'utiliser webmin pour configurer ton server et proftpd et le reste en ligne de commande.
Sinon c'est pas normal pour user 1, ta du creer un nouvel utilisateur mais c'est pas les commande que je t'ai donné (qui n'influe que sur le pare feu ubuntu) qui ont pu faire ça.
Par contre je n'utilise pas les certificats de mon côté c'est beaucoup plus simple a configurer.
C'est quoi ta version d'ubuntu?
Hors ligne
#11 Le 06/07/2011, à 12:27
- minimoi59
Re : configuration proftpd
salut slab
ma version ubuntu c'est la 11.04
pour gadmin_proftpd je pensai que c'etait un serveur par lesquel on pour ce connecté sur mon ordi
du coup je reprend tous depuis le debut
nouvelle instal ubuntu ver 11.04 avec les partitions recommandé dans le tuto pour créer un serveur
soit
PM=point de montage
swap type primaire ,emplacement debut , 2 giga
/boot , primaire, ext 2, PM boot, 100MB
/ (root) , primaire , PM /, 8 giga
/home , primaire /home
ensuite réouvert les ports comme indiqué plus haut
donc en status UFW j'ai
alain@alain-Aspire-SA80-AP-S280:~$ sudo ufw statusalain@alain-Aspire-SA80-AP-S280:~$ sudo ufw status
État : actif
Vers Action Depuis
---- ------ ------alain@alain-Aspire-SA80-AP-S280:~$ sudo ufw status
État : actif
Vers Action Depuis
---- ------ ------
20/tcp ALLOW Anywhere
21/tcp ALLOW Anywhere
22/tcp ALLOW Anywhere
49152:65534/tcp ALLOW Anywhere
le nat de mon routeur neufbox et identique avec l'adresse 192.168.14.59
alors maintenant que faire en ligne de commande pour créer un serveur sur mon ordi de telle façon que mon voisin X puisse ce connecté a mon ordi en externe via le net sur tel ou tel repertoire que j'autorise?
(pour les interfaces graphique, c'est un defaut de windows )
merci pour ton aide slab
Hors ligne
#12 Le 06/07/2011, à 12:53
- slab62
Re : configuration proftpd
tu as ubuntu workstation? ou ubuntu server ?
de toute façon il faut que tu installe le paquet proftpd :
sudo apt-get install proftpd
Ensuite installe l'interface d'administation de server webmin
sudo apt-get install webmin
ensuite depuis un PC de ton réseau tu lance webmin
en entrant l'adresse : https://ip_de_ton_server:10000
(si tu n'arive pas a te connecter c'est que le firewall n'autorise pas le port 10000
donc
sudo ufw allow 10000/tcp
Ensuite tu vas dans server puis proftpd et la tu aura une interface assez simple pour configurer ton server
Dernière modification par slab62 (Le 06/07/2011, à 13:58)
Hors ligne
#13 Le 06/07/2011, à 13:00
- slab62
Re : configuration proftpd
Pour que ton voisin X puisse se connecter (ici en mode passif) il faut que tu modifie le fichier de configuration de proftpd en décomantant la ligne" passive port ..."
Après pour la gestion des droits il te suffit de configurer "ftpasswd"
Dernière modification par slab62 (Le 06/07/2011, à 13:07)
Hors ligne
#14 Le 06/07/2011, à 13:16
- minimoi59
Re : configuration proftpd
pour la version ubuntu je sais que c'est la version 11.04 telechargé via ce site a savoir si c'est workstaion ou server je sais pas
sinon j'ai installé proftp comme tu me l'a indiqué mais pour webwin ça fonctionne pas ça me met ça
alain@alain-Aspire-SA80-AP-S280:~$ sudo get-apt install webmin
[sudo] password for alain:
sudo: get-apt: command not found
alain@alain-Aspire-SA80-AP-S280:~$
Hors ligne
#15 Le 06/07/2011, à 13:25
- sinbad83
Re : configuration proftpd
C'est dans le désordre
sudo apt-get install ...
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
#16 Le 06/07/2011, à 13:56
- slab62
Re : configuration proftpd
bien vu sinbad
Hors ligne
#17 Le 06/07/2011, à 16:47
- minimoi59
Re : configuration proftpd
merci sinbad , j'avais pas vu
par contre quand j'ai installé webmin (reflex d'ancien utilisateur de windows) j'ai redemaré pour prendre en compte les parametres
de la plus rien ne demare , apres plusieures tentative de redemarage , j'ai du réinstalé ubuntu
donc je recommence la config et je vous tien au courant
encore merci
Hors ligne
#18 Le 06/07/2011, à 16:57
- minimoi59
Re : configuration proftpd
pour webmin ça me met ça maintenant
alain@alain-Aspire-SA80-AP-S280:~$ sudo apt-get install webmin
[sudo] password for alain:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet webmin
Hors ligne
#19 Le 07/07/2011, à 08:23
- minimoi59
Re : configuration proftpd
Bonjour
je met mon fichier proftpd.conf si ça peut aider
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on
# If set on you can experience a longer connection delay in many cases.
IdentLookups off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
# Use this to jail all users in their homes
# DefaultRoot ~
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell off
# Port 21 is the standard FTP port.
Port 21
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts 49152 65534
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress 1.2.3.4
# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd off
# This is required to use both PAM-based authentication and local passwords
# AuthOrder mod_auth_pam.c* mod_auth_unix.c
# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime. If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime
<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>
<IfModule mod_ratio.c>
Ratios off
</IfModule>
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>
#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf
#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf
#
# Useful to keep VirtualHost/VirtualRoot directives separated
#
#Include /etc/proftpd/virtuals.con
# A basic anonymous configuration, no upload directories.
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
#
# RequireValidShell off
#
# # Limit the maximum number of anonymous logins
# MaxClients 10
#
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayChdir .message
#
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
#
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Limit>
# # </Directory>
#
# </Anonymous>
# Include other custom configuration files
Include /etc/proftpd/conf.d/
quand je vais dans outil reseau et que je fait un scan de port , ça me donne que le 21 ouvert , c'est normal??
Hors ligne
#20 Le 07/07/2011, à 08:39
- slab62
Re : configuration proftpd
tu es sur que ton ISO d'Ubuntu n'est pas corrompu ? As tu testé le MD5 ?
Je serais toi je téléchargerai de nouveau pour être sur (je te conseil le logiciel Jdownloader).
Download Ubuntu server
Hors ligne
#21 Le 07/07/2011, à 08:56
- minimoi59
Re : configuration proftpd
salut slab
je l'ai telecharger en avril quand il est sorti et via ce site
et pour webmin ta une idée??
Hors ligne
#22 Le 07/07/2011, à 08:58
- minimoi59
Re : configuration proftpd
bon suis en train de telecharger via le lien que tu vien de me donné
c'est pas la meme version on dire
je te tien au courant
merci
Hors ligne
#23 Le 07/07/2011, à 09:16
- slab62
Re : configuration proftpd
Pour webmin je pense qu'avec la version que je t'ai donné ça devrai fonctionner sans souci.
Par contre tu verras que l'installation de cette version et quelque peux différente je t'envoi mon Gtalk par MP si ta des question en live durant l'installation
Hors ligne
#24 Le 07/07/2011, à 09:19
- minimoi59
Re : configuration proftpd
Gtalk ????????????
Hors ligne