ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Timur Batyrshin <batyrshin@ieml.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] squid & избирательный запрет/доступ к медиа-файлам.
Date: Tue, 17 Mar 2009 16:16:55 +0300
Message-ID: <20090317161655.52286ea8@batyrshin.kzn.ieml.ru> (raw)
In-Reply-To: <200903171513.45943.ashen@nsrz.ru>

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

On Tue, 17 Mar 2009 15:13:45 +0300
Алексей Шенцев wrote:

> В squid'e сделал запрет на получение из инета медиа-файлов:
> acl media urlpath_regex -i \.mp3$ \.wav$ \.avi$ \.mpeg$ \.ra$ \.wma$
> \.m3u$ \.asx$
> 
> Но вот один из руководителей. хочет слушать радио, через инет. 
> Как всем запретить, а ему разрешить?
> Такое:
> http_access alow _ip-клиента_ media
> Прокатит?

Если не ошибаюсь, для адресов нужно завести отдельный ACL, а потом уже
разрешать его. Т.е. что-то типа:

acl Radio src 192.168.1.1

http_access allow Radio media
http_access deny media

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-03-17 13:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17 12:13 Алексей Шенцев
2009-03-17 13:16 ` Timur Batyrshin [this message]
2009-03-17 14:00 ` Alexey Morsov
2009-03-17 14:02   ` Алексей Шенцев

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090317161655.52286ea8@batyrshin.kzn.ieml.ru \
    --to=batyrshin@ieml.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git