Bonsoir tout le monde,
Voila j’esseye de me configurer un server ftp personnel auquel je peux accéder en LAN et les utilisateurs part le net! Mon ancien PC sous linux Debian assure le server.
Donc: j’ai un soucis; j’arrive a me connecter en LAN, pas de souci! Par contre les users “exterieurs” restent bloqués a “LIST”! En me renseignant j’ai vus que c’etait dut au mod passive (pas bien compris a quoi ça sert)
J’ai suivis un tuto pour le configurer mais ça ne marche pas…
j’ai ouvert les ports TCP 21 et 5000 a 5300
et voici mon .conf
désolé il est peut etre un peu brouillon mais j’ai pioché a droite et a gauche ce que j’ai trouvé:
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off
ServerName "Server FTP Sick"
ServerType standalone
DeferWelcome on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
# 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
# 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 50
# 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 to retrieve passwords:
# PersistentPasswd off
# 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
<IfModule mod_tls.c>
TLSEngine on
</IfModule>
<IfModule mod_quota.c>
QuotaEngine on
</IfModule>
<IfModule mod_ratio.c>
Ratios on
</IfModule>
PassivePorts 5000 5300
AccessGrantMsg "Bienvenue %u sur mon Server"
DefaultRoot /mnt/datas
IdentLookups off
UseReverseDNS off
MaxClients 30 "Désolé mais il y a trop de monde sur le server (%m user)! Esseyes une autre fois Merci"
# 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 off
</IfModule>
<IfModule mod_ctrls.c>
ControlsEngine on
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
</IfModule>
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
<VirtualHost 192.168.1.2>
ServerAdmin Sickman
ServerName "Sick server"
# Port mode PASSV
PassivePorts 5000 5300
MasqueradeAddress "Mon IP Public"
Port 21
</VirtualHost>
<VirtualHost 192.168.2.2>
ServerName "FTP Local"
Port 80
MasqueradeAddress 192.168.1.2
</VirtualHost>
Voila j’ai pas bien compris l’ensemble c’est un peu vague alors si ça marche et en plus que je comprend pourquoi; c’est magnifique
Tite question bonus:
Le UseUPV6 sert a quoi ? en on J’ai un message d’erreur
Ce que j’ai compris (vous me dites si je me plante totalement ^^)
Pour que le passive mod marche, il faut que le server renvoie au client l’adresse public du server. ?
Peut on desactiver ce passive mod ?
Merci de vos reponses
J’adore linux a la moindre install ou configuration on en apprends une tonne ^^