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

proftpd

СообщениеДобавлено: 12 ноя 2006, 19:13
joker
Такой вопрос кто нить сталкивался с настройкой данного сабжа ?
Я настроил все замечатально кроме одного тормозит при входе и при заходе в директорию в чом может быть дело могет знает кто?

СообщениеДобавлено: 12 ноя 2006, 19:17
maxxxx
читай на opennet.ru или на www.proftpd.org, я его настраивал пару вещей отрубаешь (типа ДНСлукапинга) и становится довольно быстрым зверем

СообщениеДобавлено: 12 ноя 2006, 19:20
joker
читал ни чо интересного не нашол если помниш что и где отрубить подскажи плиз. Потому что я точно знаю что дело тут не в proftpd.conf он просто настроен идеально, ничего лишнего.

СообщениеДобавлено: 12 ноя 2006, 19:22
maxxxx
тогда незнаю, т.к. у меня с ним всё было гуд

СообщениеДобавлено: 12 ноя 2006, 19:23
maxxxx
хотя если можешь выложи конфиг

СообщениеДобавлено: 12 ноя 2006, 19:24
joker
вот мне все так говорят ни у кого проблем с ним нет только у меня =) (

СообщениеДобавлено: 12 ноя 2006, 19:26
maxxxx
выложи конфиг свой

СообщениеДобавлено: 12 ноя 2006, 19:31
vavr
UseReverseDNS off

СообщениеДобавлено: 12 ноя 2006, 19:32
maxxxx
вово) она

СообщениеДобавлено: 12 ноя 2006, 19:40
joker
ServerName "ProFTPD Default Installation"
#ServerType standalone
ServerType inetd
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# 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

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# This next option is required for NIS or NIS+ to work properly:
#PersistentPasswd off

SystemLog /var/log/proftpd.log
TransferLog /var/log/xferlog

# Normally, we want files to be overwriteable.
<Directory>
AllowOverwrite on
</Directory>

# A basic anonymous FTP server configuration.
# To enable this, remove the user ftp from /etc/ftpusers.
<Anonymous>
RequireValidShell off
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 50

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

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory>
<Limit>
DenyAll
</Limit>

<Limit>
AllowAll
</Limit>
</Directory>

</Anonymous>

СообщениеДобавлено: 12 ноя 2006, 19:40
vavr
Это конфиг для анонимусног сервака фтп
думаю ты именно такой делаешь ?




# This sample configuration file illustrates configuring two
# anonymous directories, and a guest (same thing as anonymous but
# requires a valid password to login)

ServerName "ProFTPD Anonymous Server"
ServerType standalone

# Port 21 is the standard FTP port.
Port 21

# If you don't want normal users logging in at all, uncomment this
# next section
#<Limit>
# DenyAll
#</Limit>

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# 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 maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Our "basic" anonymous configuration, including a single
# upload directory ("uploads")
<Anonymous>

# Allow logins if they are disabled above.
<Limit>
AllowAll
</Limit>

# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"

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

# Limit WRITE everywhere in the anonymous chroot
<Limit>
DenyAll
</Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory>
<Limit>
DenyAll
</Limit>

<Limit>
AllowAll
</Limit>
</Directory>
</Anonymous>

# A second anonymous ftp section. Users can login as "private". Here
# we hide files owned by root from being manipulated in any way.

<Anonymous>
User bobf
Group users
UserAlias private bobf
UserAlias engineering bobf

# Deny access from *.evil.net and *.otherevil.net, but allow
# all others.
<Limit>
Order deny,allow
Deny from .evil.net, .otherevil.net
Allow from all
</Limit>

# We want all uploaded files to be owned by 'engdept' group and
# group writable.
GroupOwner engdept
Umask 006

# Hide all files owned by user 'root'
HideUser root

<Limit>
DenyAll
</Limit>

# Disallow clients from any access to hidden files.
<Limit>
IgnoreHidden on
</Limit>

# Permit uploading and creation of new directories in
# submissions/public

<Directory>
<Limit>
DenyAll
IgnoreHidden on
</Limit>

<Limit>
AllowAll
IgnoreHidden on
</Limit>
</Directory>
</Anonymous>

# The last anonymous example creates a "guest" account, which clients
# can authenticate to only if they know the user's password.

<Anonymous>
User guest
Group nobody
AnonRequirePassword on

<Limit>
AllowAll
</Limit>

# Deny write access from all except trusted hosts.
<Limit>
Order allow, deny
Allow from 10.0.0.
Deny from all
</Limit>
</Anonymous>

СообщениеДобавлено: 12 ноя 2006, 19:43
vavr
vavr пишет:Это конфиг для анонимусног сервака фтп
думаю ты именно такой делаешь ?




# This sample configuration file illustrates configuring two
# anonymous directories, and a guest (same thing as anonymous but
# requires a valid password to login)

ServerName "ProFTPD Anonymous Server"
ServerType standalone

# Port 21 is the standard FTP port.
Port 21

# If you don't want normal users logging in at all, uncomment this
# next section
#<Limit>
# DenyAll
#</Limit>

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# 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 maximum number of seconds a data connection is allowed
# to "stall" before being aborted.
TimeoutStalled 300

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message

# Our "basic" anonymous configuration, including a single
# upload directory ("uploads")
<Anonymous>

# Allow logins if they are disabled above.
<Limit>
AllowAll
</Limit>

# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"

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

# Limit WRITE everywhere in the anonymous chroot
<Limit>
DenyAll
</Limit>

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory>
<Limit>
DenyAll
</Limit>

<Limit>
AllowAll
</Limit>
</Directory>
</Anonymous>

# A second anonymous ftp section. Users can login as "private". Here
# we hide files owned by root from being manipulated in any way.

<Anonymous>
User bobf
Group users
UserAlias private bobf
UserAlias engineering bobf

# Deny access from *.evil.net and *.otherevil.net, but allow
# all others.
<Limit>
Order deny,allow
Deny from .evil.net, .otherevil.net
Allow from all
</Limit>

# We want all uploaded files to be owned by 'engdept' group and
# group writable.
GroupOwner engdept
Umask 006

# Hide all files owned by user 'root'
HideUser root

<Limit>
DenyAll
</Limit>

# Disallow clients from any access to hidden files.
<Limit>
IgnoreHidden on
</Limit>

# Permit uploading and creation of new directories in
# submissions/public

<Directory>
<Limit>
DenyAll
IgnoreHidden on
</Limit>

<Limit>
AllowAll
IgnoreHidden on
</Limit>
</Directory>
</Anonymous>

# The last anonymous example creates a "guest" account, which clients
# can authenticate to only if they know the user's password.

<Anonymous>
User guest
Group nobody
AnonRequirePassword on

<Limit>
AllowAll
</Limit>

# Deny write access from all except trusted hosts.
<Limit>
Order allow, deny
Allow from 10.0.0.
Deny from all
</Limit>
</Anonymous>



Я запускаю стандалоне :wink:

СообщениеДобавлено: 12 ноя 2006, 19:53
vavr
Кстати , запуск в инетД нужен только для создания виртуальных хостов
Та что запускай все в стандалоне

СообщениеДобавлено: 12 ноя 2006, 20:00
joker
Кстати , запуск в инетД нужен только для создания виртуальных хостов
Та что запускай все в стандалоне


без разници пробовал и так и так все равно тормозит со standalone на пару секунд меньше )

СообщениеДобавлено: 12 ноя 2006, 20:04
vavr
UseReverseDNS off вставил??

СообщениеДобавлено: 12 ноя 2006, 20:10
joker
UseReverseDNS off



вставил ни какого эффекта... :cry:

СообщениеДобавлено: 12 ноя 2006, 20:19
vavr
ты с рпм ставил фтп?
попробуй нафиг снеси
и поставь заново

СообщениеДобавлено: 12 ноя 2006, 20:23
vavr
стоп , я тут подумал вот у тебя строчки есть такие в конфиге
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message


а файло само есть на серваке ??
если нет попробуй закомментить то чего нет

СообщениеДобавлено: 12 ноя 2006, 20:30
joker
все попробовал ни чо не помогает я не думаю что дело в этом конфиге надо куда то глубже копать только куда хз

СообщениеДобавлено: 12 ноя 2006, 20:57
zuzacabric
в отладочном режимом запускай и чтоб не уходил в фон. внимательно смотри что пишет. под трассировщиком обазательно проверь.

расширенный режим логирования делай - потом смотри на что будет жаловаться.

СообщениеДобавлено: 12 ноя 2006, 20:59
joker
в отладочном режимом запускай и чтоб не уходил в фон. внимательно смотри что пишет. под трассировщиком обазательно проверь.

расширенный режим логирования делай - потом смотри на что будет жаловаться.



Я конечно извеняюсь но ты про что в каком режиме :D

СообщениеДобавлено: 12 ноя 2006, 21:08
zuzacabric
proftpd -d <level> -n
strace, ltrace под трасисровщиком

читай ман на наличие запуска под отладкой.
пс. мне профтп ваще не нравится. ставь vsftpd или pure-ftp. и тот и тот имеют очень высокую безопасность.

СообщениеДобавлено: 12 ноя 2006, 21:13
Asbest
Identlookups off

СообщениеДобавлено: 12 ноя 2006, 21:27
joker
Identlookups off



бесполезно пробовал

СообщениеДобавлено: 12 ноя 2006, 21:30
zuzacabric
если отладка и трасировка не помогла попоробуй поставить предыдущую стабильную версию

у тя какая версия стоит?
рпм? выкинь!

СообщениеДобавлено: 12 ноя 2006, 21:45
logrus
proftpd-1.3.0-i486-1.tgz

СообщениеДобавлено: 12 ноя 2006, 21:50
zuzacabric
поставь другую стабильную версию. не факт но может помочь.
но самое главное в дебуг режиме проверь иначе всё остальное в топку.
если совсем уж нечего делать можешь список рассылок почитать))

СообщениеДобавлено: 12 ноя 2006, 21:51
maxxxx
))

СообщениеДобавлено: 12 ноя 2006, 21:56
joker
а может все таки проблема не в конфиге а?
потому что я очень сомневаюсь в том что один и тот же конфиг на одном компе работает а на другом нет версия пакета одна и та же версия линуха тоже одна и та же единственное что на моем компе стоят 2 сетевухи к одной из них подрублена локальная сеть к другой adsl modem и там и там адреса получают по dhcp может где то тут трабла...

СообщениеДобавлено: 12 ноя 2006, 21:57
maxxxx
а может в default route?