Страница 1 из 1
Squid
Добавлено: 2007-04-02 11:58:55
childs
Задача такая розрешить скачивания файлов с 20,00 до 8 утра
как это возможно реализовать поделитесь соеветами или примерами
Добавлено: 2007-04-02 12:40:10
alex3
acl time
Добавлено: 2007-04-02 12:48:34
Гость
alex3 писал(а):acl time
А можно примерчик ) еси вас не затруднит
Добавлено: 2007-04-02 13:34:26
alex3
нет. затруднит. смотрел этот ацл на squid.opennet.ru. Сам такими вещами не заморачивался, а так в инете много можно нарыть....
Добавлено: 2007-04-02 14:35:05
Urgor
http://www.deckle.co.za/squid-users-gui ... day.2Ftime
Squid allows one to allow access to specific sites by time. Often businesses wish to filter out irrelevant sites during work hours. The Squid time acl type allows you to filter by the current day and time. By combining the dstdomain and time acls you can allow access to specific sites (such as your the sites of suppliers or other associates) during work hours, but allow access to other sites after work hours.
The layout is quite compact:
Код: Выделить всё
acl name time [day-list] [start_hour:minute-end_hour:minute]
Day list is a list of single characters indicating the days that the acl applies to. Using the first letter of the day would be ambiguous (since, for example, both Tuesday and Thursday start with the same letter). When the first letter is ambiguous, the second letter is used: T stands for Tuesday, H for Thursday. Here is a list of the days with their single-letter abreviations:
S - Sunday M - Monday T - Tuesday W - Wednesday H - Thursday F - Friday A - Saturday
Start_hour and end_hour are times written in 24-hour ("military") time (17:00 instead of 5:00). End_hour must always be larger than start_hour. Unfortunately, this means that you can't simply write:
You have to specify two separate ranges:
Код: Выделить всё
acl night time 17:00-24:00
acl early_morning time 00:00-6:00
Надеюсь переводить не надо?
Добавлено: 2007-04-03 14:51:01
Гость
или это умну руки карявые или фиг его знаит

чото немагу паннять как оно должно работать
Добавлено: 2007-04-03 15:07:21
dikens3
Код: Выделить всё
acl worktime time 8:00-20:00
acl dik src 192.168.2.4/255.255.255.255
acl bad_sites url_regex "/usr/local/etc/squid/bad_sites"
http_access deny bad_sites dik worktime
Так запрещается доступ по времени к определённым сайтам. Делай по аналогии на расширения
Добавлено: 2007-04-03 15:13:15
Urgor
Код: Выделить всё
acl dialup src 10.0.0.0/255.255.255.0
acl work time 08:00-17:00
http_access allow work & dialup
Это, по идее, разрешит 10.0.0.0/24 работать с 08:00 до 17:00.