Страница 1 из 1

проблема с proftpd

Добавлено: 2009-06-16 6:50:11
AmsTaFF
машина сидит за роутером D-LINK Dl-707P
проблема заключается в том, что у некоторых людей и некоторые ФТП клиенты не могу зайти через пассивный мод
COMMAND:> [16.06.2009 7:48:04] PASV
[16.06.2009 7:48:04] 227 Entering Passive Mode (192,168,0,145,197,78).
STATUS:> [16.06.2009 7:48:04] Substituting received PASV address 192.168.0.145 to server address 77.37.134.13.
вот то, что красным у них не появляется...

что можете посоветовать? ибо в интернете нету ничего полезного по данной проблеме...
так же есть проблема со скачкой файлов даже у меня через всякие Download Manager'ы... где стоит покопать?

Re: проблема с proftpd

Добавлено: 2009-06-16 7:50:47
Abigor
надо в proftp.conf прописать

Код: Выделить всё

PassivePorts        50000 50100
и на dlink пробросить диапазон портов 50000-50100 на сервер с ftp

Re: проблема с proftpd

Добавлено: 2009-06-16 8:49:41
AmsTaFF
это уже все давно сделано )) все порты прописаны и в роутере, и в Proftpd.conf и в ipfw... но вот проблема все равно остается... главное у всех по-разному, кто может, а кому приходиться использовать EPSV для входа...

Re: проблема с proftpd

Добавлено: 2009-06-16 8:53:48
Abigor
Все же думаю вы не все прописали :) это лично мое мнение
так же может MTU, но это врятли
а по поводу того что пользователи разделились, я обычно проверяю так, если через консольный ftp клиент нормально отображается листинг, а через mc тупит и отваливается, значит не все прописали.

Re: проблема с proftpd

Добавлено: 2009-06-16 11:44:30
AmsTaFF
так, отключил ipfw
может я что-то пропустил в конфиге?
* порты на роутере точно открыты

Код: Выделить всё

#
# For more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "AmsTaFF's FTP"
ServerType                      standalone
DefaultServer                   on
ScoreboardFile          /var/run/proftpd/proftpd.scoreboard

# Port 21 is the standard FTP port.
Port                            21
PassivePorts 49152 65534
# Use IPv6 support by default.
#UseIPv6                                on

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# 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

CommandBufferSize       512
# Set the user and group under which the server will run.
User                            ftp
Group                           ftp

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~   !AmsTaFF

# Normally, we want files to be overwriteable.
AllowOverwrite          on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# Тип авторизации (на самом деле - в каком виде хрянятся
# МНОГО SQL
#

<Directory ~>
AllowOverwrite                  on
<Limit Write>
AllowAll
</Limit>
<Limit READ>
AllowAll
</Limit>
<Limit SITE_CHMOD SITE_CHGRP>
AllowAll
</Limit>
</Directory>
# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.

#########################################################################
#                                                                       #
# Uncomment lines with only one # to allow basic anonymous access       #
#                                                                       #
#########################################################################

<Anonymous /usr/home/ftp>
   User                         ftp
   Group                                ftp

  ### We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                     anonymous ftp

  ### Limit the maximum number of anonymous logins
  MaxClients      10      "Sorry, max %m users - try again later"

### 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
  <Limit WRITE>
     DenyAll
  </Limit>
</Anonymous>


Re: проблема с proftpd

Добавлено: 2009-06-16 12:58:34
AmsTaFF
проблема была решена данной записью, добавленной в кофинг
MasqueradeAddress 77.37.134.13

77.37.134.13 - мой внешний IP

Re: проблема с proftpd

Добавлено: 2009-06-17 13:24:44
server801
также есть директива

Код: Выделить всё

DefaultAddress  xxx.xxx.xxx.xxx