Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Настройка proftpd  (Прочитано 25133 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн slech

  • Любитель
  • *
  • Сообщений: 72
    • Просмотр профиля
Re: Настройка proftpd
« Ответ #75 : 02 Июня 2011, 12:00:26 »
Потому что пишете неправильно.
Почитайте, как вообще работает инструкция Order и как работает Limit LOGIN.

1. Configuring <Limits>
2. Order
Цитировать
The Order directive configures the order in which Allow and Deny directives are checked inside of a <Limit> block. Because Allow directives are permissive, and Deny directives restrictive, the order in which they are examined can significantly alter the way security functions. If the default setting of allow,deny is used, "allowed" access permissions are checked first. If an Allow directive explicitly allows access to the <Limit> context, access is granted and any Deny directives are never checked. If Allow did not explicitly permit access, Deny directives are checked. If any Deny directive applies, access is explicitly denied. Otherwise, access is granted. When deny,allow is used, "deny" access restrictions are checked first. If any restriction applies, access is denied immediately. If nothing is denied, Allow permissions are checked. If an Allow explicitly permits access, access to the entire context is permitted; otherwise access is implicitly denied. For clarification, the following illustrates the steps used when checking Allow/Deny access: Order allow,deny Check Allow directives. If one or more apply, exit with result: ALLOW Check Deny directives. If one or more apply, exit with result: DENY Exit with default implicit ALLOW Order deny,allow Check Deny directives. If one or more apply, exit with result: DENY Check Allow directives. If one or more apply, exit with result: ALLOW Exit with default implicit: DENY

3. How does <Limit LOGIN> work, and where should I use it?
Цитировать
Normally, <Limit> directive blocks are allowed in the server config, <VirtualHost>, <Anonymous> and <Directory> contexts. However, <Limit LOGIN> should not be used in a <Directory> context, as clients do not connect/login to a directory (and thus it is meaningless).

Потому что пишете неправильно.
Почитайте, как вообще работает инструкция Order и как работает Limit LOGIN.
да, должно было не пускать.

я же писал что использовал и
<Limit LOGIN>
    DenyAll
</Limit>
и всё равно пускало.

Я уже думал что может что-то с доркументацией не то, то ли устарела, то ли ещё чего.
Моя ошибка оказалась в контексте  - источник 3(выше)
Поместил в контекст VirtualServer
        <Limit LOGIN>
                Order Allow,Deny
                Allow from 192.168.1.1
                Deny from all
        </Limit>

Вcем спасибо за помощь.

 

Страница сгенерирована за 0.051 секунд. Запросов: 25.