Pages : 1
#1 Le 15/07/2007, à 18:35
- furion01
Probleme de conection serveur ftp proftpd
bjr,
Je ne peux pas me conecter a mon serveur ftp ni en local ni sur internet depuis chez 1 amis. Quand je relance le ftp voila se qu il me dis :
/etc/init.d/proftpd restart
Stopping ftp server: proftpd.
Starting ftp server: proftpd - IPv6 getaddrinfo 'localhost' error: No address associated with hostname
localhost - 192.168.1...:21 masquerading as 87.100.....
localhost - 192.168.1.....:80 masquerading as 192.168.1....
Voila se que donne mon proftpd.conf:
#
# /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 onServerName "furion01.homelinux.com"
ServerType standalone
DeferWelcome offMultilineRFC2228 on
DefaultServer on
ShowSymlinks onTimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200DisplayLogin 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 50.... 50...# 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 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 offTransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log<IfModule mod_tls.c>
TLSEngine off
</IfModule><IfModule mod_quota.c>
QuotaEngine on
</IfModule><IfModule mod_ratio.c>
Ratios on
</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 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># 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 ftpRequireValidShell 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
DisplayFirstChdir .message# Limit WRITE everywhere in the anonymous chroot
# <Directory *>
<Limit WRITE>
DenyAll
</Limit>
# </Directory>
#</Anonymous># # 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>#
# /etc/proftpd.conf -- Masquerade avec Virtual Host Local .
#
ServerType standaloneMultilineRFC2228 on
# 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# Some logging formats
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"# Global settings
<Global>DeferWelcome off
#DefaultServer on
#ShowSymlinks on
ListOptions "-l"
DenyFilter \*.*/
# Utilisation de NIS ou LDAP:
#PersistentPasswd off
# Utilisation de TLS:
#TLSEngine on
# Utilisation des Quotas:
#Quotas on
# Utilisation des Ratio:
#Ratios onDisplayConnect before.msg
DisplayLogin welcome.msg
DisplayFirstChdir .messageMaxLoginAttempts 2
RequireValidShell no
MaxClients 50# Umask 022 interdit l'écriture et la creation de fichier et de répertoire.
Umask 022 022
TimeoutLogin 120
TimeoutNoTransfer 900
TimeoutStalled 3600
TimeoutIdle 600
# 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.
#DelayEngine off# utilisateur et groupe du serveur.
User ftp
Group nogroup
# Chroot PROFTPD
DefaultRoot ~# Logging options
TransferLog /var/spool/syslog/proftpd/xferlog.legacy# Turn off Ident lookups
#
IdentLookups off
#
# Logging
#
# file/dir access
#
ExtendedLog /var/spool/syslog/proftpd/globaccess.log WRITE,READ write
#
#
# Record all logins
#
ExtendedLog /var/spool/syslog/proftpd/globauth.log AUTH auth
#
# Paranoia logging level....
#
##ExtendedLog /var/spool/syslog/proftpd/paranoid.log ALL default#
# Deny writing to the base server...
#
<Limit WRITE>
DenyAll
</Limit># --------------------------------------------
# Got a Frontpage customer who keeps breaking things????
# - stick 'em in group fpage
# --------------------------------------------
<Directory ~/public_html>
#
# Block them from doing anything other than reading...
#
<Limit STOR RNFR DELE>
DenyGroup fpage
</Limit>
</Directory>
#
# ditto for ftp_root if it's there...
#
<Directory ~/ftp_root>
<Limit STOR RNFR DELE>
DenyALL
</Limit>
</Directory>
#
# Limit by IP...
#
#<Directory /web/zsl>
# <Limit ALL>
# Order Allow,Deny
# Allow 195.200.31.220
# Allow 212.32.17.0/26
# Deny ALL
# </Limit>
#</Directory><Anonymous ~ftp>
User ftp
Group nogroup
# # Alias pour la connection de l utilisateur anonyme
UserAlias anonymous ftp
# # n'utiliser que des lais authentifier
AuthAliasOnly on
# # Cosmetic changes, all files belongs to ftp user
DirFakeUser on ftp
DirFakeGroup on ftp
# Hide all files owned by user 'root'
HideUser root
#
RequireValidShell off
#
# Message et nombre maximum de connections
MaxClients 50 "Désolé, le maximum de %m utilisateurs est atteint -- réessayez plus tard"# # Limit WRITE everywhere in the anonymous chroot
<Directory *>
<Limit RMD DELE MKD STOR WRITE>
DenyAll
</Limit>
<Limit CWD READ>
AllowAll
</Limit>
</Directory>
</Anonymous></Global>
# Connection annonyme et des utilisateur à partir du net de du réseau local
# --------------------------------------------
<VirtualHost 192.168.1...>
ServerAdmin "furion01.homelinux.com"
ServerName "furion01.homelinux.com"
# Port mode PASSV
PassivePorts 50.. 50..
# Addresse de Masquage !!! A REMPLACER PAR LA VOTRE !!!
MasqueradeAddress "furion01.homelinux.com"
Port 21
</VirtualHost># Hôte Virtuel Pour le réseau local
# !!! A remplacer par l'adresse ip local de votre serveur ftp
<VirtualHost 192.168.1....>
ServerName "FTP Local"
Port 80
MasqueradeAddress 192.168.1....
</VirtualHost>
Ce sont des bouts de tuto mis les un a la suite des autres si quelqu un pouvais corriger mes erreurs ou meme me copier son fichié qui marche.
Je précise par contre que mes ports sont bien ouvert sur ma box et bien redirigé de se coté pas de probleme.
Ma seconde petite question est esque c'est normal que je ne puisse pas me conecter a mon serveur web apache depuis firefox alors que chez 1 amis sa marche sur internet pour me conecté je suis obliger de me mettre en local pour pouvoir i accéder. Mon serveur apache est sur le meme pc et donc la meme ip que le serveur ftp n i aurais t il pas de conflit entre les deux?
Mci de vos réponses pk la je suis perdu!
Hors ligne
#2 Le 16/07/2007, à 17:10
- geronimoO
Re : Probleme de conection serveur ftp proftpd
je peux juste repondre à ta seconde question, tu ne peux normalement pas avoir de conflit entre ton serveur apache et proftpd car se en sont pas les meme ports qui sont utilisés.
par d"faut le ftp c'est le port 21, apache le port 80 ou 443 si tu fais du https
" Un bon indien est un indien mort "
Général Sheridan, cavalerie des Etats Unis.
Hors ligne
#3 Le 17/07/2007, à 13:16
- BenC`
Re : Probleme de conection serveur ftp proftpd
Là il y a conflit, sachant que le port que tu as configuré pour ton vhost de proftpd est le 80...
Hors ligne
#4 Le 18/07/2007, à 11:04
- geronimoO
Re : Probleme de conection serveur ftp proftpd
ha oui effectivement là est le problème, mets un autre port, soit lpar défaut 21 ou un autre si tu souhaites sécursiser un peu plus ton accès (9500 par exemple)
" Un bon indien est un indien mort "
Général Sheridan, cavalerie des Etats Unis.
Hors ligne
#5 Le 18/07/2007, à 13:21
- furion01
Re : Probleme de conection serveur ftp proftpd
ok jvé voir pour le ftp mais la je suis plus d abord sur apache2 j'ai fais 1 autre post. J'avais réussit a faire fonctionner apache1 sur une debian mais la je suis sous ubuntu et je n'arrive pas a mettre le site sur internet.
le lien du sujet est la http://forum.ubuntu-fr.org/viewtopic.php?id=134382
Je compte faire 1 site en ligne et herberger des chose sur mon ftp afin de faire des lien depuis le site qui redirrge vers le ftp.
Hors ligne
Pages : 1