BorderManager 3.5. Access Control

Обсуждение технических вопросов по продуктам Novell

BorderManager 3.5. Access Control

Сообщение Пилютик Михаил » 03 фев 2003, 17:23

BorderManager 3.5
Может кто подскажет, как писать правила для запрета закачки через Proxy файлов, например, *.mp3, *.avi и т.д.
Когда-то написал такие правила, вроде проверил, работали, а сейчас обнаружил, что не работают?
Пилютик Михаил
 

How to Use Wildcards in Access Rules

Сообщение Андрей Фисенко » 03 фев 2003, 17:32

Wildcards can be used in access rules to block (deny) or allow access. The following examples assume a deny action, but an allow action may also be used with opposite effect:

1) http://www.novell.com/
This simple example doesn't use wildcards at all. It would only block access to the first default page itself (usually an index.htm or index.html). In this example the homepage of the www.novell.com site is blocked. If a user would type http://www.novell.com/products he/she would be able to get access to this URL directly.

2) http://www.novell.com/*
This example is the proper way to block access to the entire site, and will be the most often used access rule.

3) http://www.novell.com/download/*
In this example only access to a subdirectory on the web server is blocked. Including everything under this subdirectory.

4) http://*.novell.com/*
This syntax can be used to block access to all sites within the novell.com domain. It would not only block access to http://www.novell.com but also to, for example, http://support.novell.com or http://developer.novell.com and so on.

5) http://*/*.mp3 (я использую *://*/*.mp3)
This example demonstrates how to block access to a file type. This can be used to block downloading of, as in this example, MP3 files. Please note that in this example only http downloads are blocked. Another rule for ftp downloads would be needed.

6) http://***/*
In this example just a simple string compare is done. Usually ACLCHECK does a name resolution to find out corresponding ip addresses for URL's that are blocked. Using this syntax, however, it would be just impossible to find out all servers containing the string "*". So, a name resolution is not performed. This actually means that any user who types in an ip address in the URL (for example http://1.2.3.4/) will be able to bypass this access rule.

7) *://*.novell.com/*
This example shows how to use a wildcard to create just one access rule to block access for all protocols. This could be very well combined with the rule in 5) above which blocks access to a file type. Using a wildcard for the protocol would block http as well as ftp access. Note, however, that https is NOT covered by this wildcard. For https another rule has to be created. See below.

8) *://*.novell.com:*/*
This example shows how to include a wildcard for an origin server listening on a different port than the default 80. This would for example cover a URL like http://internalserver.novell.com:8000/. This, however, does NOT include a server running secure http on port 443. See next example.

9) http://*.novell.com:443/*
This example would allow access to all secure servers within the novell.com domain. Please note that the above example using a wildcard for the port does NOT work with secure servers. Also a rule that would use the syntax https://*.novell.com/* would NOT work.
Андрей Фисенко
 
Сообщения: 1311
Зарегистрирован: 05 июн 2002, 08:13
Откуда: Красноярск

Не помогает!

Сообщение Пилютик Михаил » 03 фев 2003, 18:50

Cпасибо, Андрей!

Но видимо есть еще какие-то заморочки.
Потому что я сразу же прописал правило на mp3 файлы, как Вы рекомендовали, но по-прежнему плевать он (BM) на меня хотел.

На сайт запретить доступ нет проблем, а файлы не хочет
Пилютик Михаил
 

Не может быть.

Сообщение Андрей Фисенко » 04 фев 2003, 05:24

Если Access Rule включены (в BM Setup), то они обрабатываются конвеерно, сверху вниз. Сначала серверные, потом контекстные.

т.е. сначала должно стоять правило: Deny URL *://*/*.mp3 any
а уже потом разрешающее правило: Allow URL http://www.rmp.ru/*
Или Allow HTTP Proxy Port 80 to 9000

Принцип простой.
Делаем разрешающее правило.
А потом запрещающие правила ставим выше.
Андрей Фисенко
 
Сообщения: 1311
Зарегистрирован: 05 июн 2002, 08:13
Откуда: Красноярск

Сообщение Мещеряков Андрей » 04 фев 2003, 09:59

Приветствую!
Какая версия прокси в Бордюре? 025 и 026 имели тяжкие проблемы с рулями. Нужна 027 или старше.

С уважением And
Аватара пользователя
Мещеряков Андрей
 
Сообщения: 1999
Зарегистрирован: 19 сен 2002, 14:55
Откуда: lipetsk

Re: Не может быть.

Сообщение Пилютик Михаил » 04 фев 2003, 13:13

Андрей Фисенко писал(а):Если Access Rule включены (в BM Setup), то они обрабатываются конвеерно, сверху вниз. Сначала серверные, потом контекстные.

т.е. сначала должно стоять правило: Deny URL *://*/*.mp3 any
а уже потом разрешающее правило: Allow URL http://www.rmp.ru/*
Или Allow HTTP Proxy Port 80 to 9000

Принцип простой.
Делаем разрешающее правило.
А потом запрещающие правила ставим выше.


Спасибо, Андрей!
Мы уже доехали до этого. Проблема была в том, что я пытался решить это через правила на Port. а не для URL.
Пилютик Михаил
 


Вернуться в Novell

Кто сейчас на конференции

Сейчас этот форум просматривают: Bing [Bot] и гости: 46

cron