<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Squid. Блокировка определенных ресурсов для доменной (NTLM) группы]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=33802&amp;type=atom" />
	<updated>2014-02-16T10:05:57Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=33802</id>
		<entry>
			<title type="html"><![CDATA[Re: Squid. Блокировка определенных ресурсов для доменной (NTLM) группы]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394500#p394500" />
			<content type="html"><![CDATA[<p>Вот мой конфиг сквида. Инет всем кто в группе ia, остальные группе insured только из белого списка. Авторизация по доменному имени.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />http_port 3128<br />auth_param basic program /usr/lib64/squid/squid_ldap_auth -R -D sel_ldap@smb.mgkb1.local -w XXXXX -b &quot;dc=smb,dc=mgkb1,dc=local&quot; -f &quot;sAMAccountName=%s&quot; 192.168.2.82 -p 389</p><p>auth_param basic children 20<br />auth_param basic realm Internet Access MGKB1<br />auth_param basic credentialsttl 1 minutes<br />auth_param basic casesensitive off</p><p>external_acl_type ldap_users %LOGIN /usr/lib64/squid/squid_ldap_group -R -b &quot;OU=UsersDom,DC=smb,DC=mgkb1,DC=local&quot; -f &quot;(&amp;(sAMAccountName=%v)(memberOf=CN=%a,CN=Builtin,DC=smb,DC=mgkb1,DC=local))&quot; -D sel_ldap@smb.mgkb1.local -w &quot;XXXXXXX&quot; 192.168.2.82 -v 3 -p 389</p><p>hierarchy_stoplist cgi-bin ?</p><p>coredump_dir /var/spool/squid</p><p>refresh_pattern ^ftp:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1440&nbsp; &nbsp; 20%&nbsp; &nbsp; &nbsp;10080<br />refresh_pattern ^gopher:&nbsp; &nbsp; &nbsp; &nbsp; 1440&nbsp; &nbsp; 0%&nbsp; &nbsp; &nbsp; 1440<br />refresh_pattern -i (/cgi-bin/|\?) 0&nbsp; &nbsp; &nbsp;0%&nbsp; &nbsp; &nbsp; 0<br />refresh_pattern .&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;20%&nbsp; &nbsp; &nbsp;4320</p><p>access_log /var/log/squid/access.log squid</p><p>cache_mem 512 MB<br />cache_effective_user squid<br />cache_effective_group squid<br />cache_dir ufs /var/spool/squid/ 1024 16 256<br />cache_swap_low 97&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />cache_swap_high 100&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />acl manager proto cache_object&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />acl localhost src 127.0.0.1/32</p><p>acl inetusers external ldap_users ia<br />acl insured_user external ldap_users insured<br />acl small_allow&nbsp; url_regex -i &quot;/etc/squid/Privilegy_list&quot;</p><p>acl media urlpath_regex -i \.mp3$ \.asf$ \.wma$<br />#dns_nameservers 192.168.2.82 192.168.1.77 192.168.3.223</p><p>acl SSL_ports port 443<br />acl Safe_ports port 80&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # http<br />acl Safe_ports port 21&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # ftp<br />acl Safe_ports port 443&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# https<br />acl Safe_ports port 70&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # gopher<br />acl Safe_ports port 210&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# wais<br />acl Safe_ports port 1025-65535&nbsp; # unregistered ports<br />acl Safe_ports port 280&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# http-mgmt<br />acl Safe_ports port 488&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# gss-http<br />acl Safe_ports port 591&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# filemaker<br />acl Safe_ports port 777&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# multiling http<br />acl CONNECT method CONNECT</p><br /><p>delay_pools 2<br /># ограничим mp3 до 30 Кб/с<br />delay_class 1 1<br />delay_parameters 1 700000/700000<br />delay_access 1 allow media<br />delay_access 1 deny all<br /># ограничим ldap users до 150 Кб/с<br />delay_class 2 1<br />delay_parameters 2 700000/700000<br />delay_access 2 allow inetusers insured_user<br />delay_access 2 deny all</p><p>http_access allow manager localhost<br />http_access deny manager<br />http_access deny !Safe_ports<br />http_access deny CONNECT !SSL_ports</p><p>http_access allow inetusers<br />http_access allow insured_user small_allow<br />http_access allow localhost<br />http_access deny all</p><p>http_reply_access allow all<br />icp_access allow all</p><p>coredump_dir /var/spool/squid</p><p>log_fqdn on<br /># Настроим ротацию логов<br />logfile_rotate 1<br /># Отключить удаление параметров передаваемых в URL запросе<br />strip_query_terms off<br />logformat squid %ts %6tr %&gt;A %Ss/%03&gt;Hs %&lt;st %rm %ru %un %Sh/%&lt;A %mt</p><br /><p></div></p></div></div>]]></content>
			<author>
				<name><![CDATA[XliN]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6412</uri>
			</author>
			<updated>2014-02-16T10:05:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394500#p394500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid. Блокировка определенных ресурсов для доменной (NTLM) группы]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394429#p394429" />
			<content type="html"><![CDATA[<p>Тут ни слова про доменные группы. С ACL я знаком.<br />Как мне прописать в ACL определенную группу из домена?</p>]]></content>
			<author>
				<name><![CDATA[OverLocker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15796</uri>
			</author>
			<updated>2014-02-16T05:06:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394429#p394429</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Squid. Блокировка определенных ресурсов для доменной (NTLM) группы]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394385#p394385" />
			<content type="html"><![CDATA[<p>Смотреть <a href="http://linux.yaroslavl.ru/docs/faq/squid/FAQ-10.html">тут</a></p>]]></content>
			<author>
				<name><![CDATA[slash1472]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6302</uri>
			</author>
			<updated>2014-02-15T21:05:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394385#p394385</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Squid. Блокировка определенных ресурсов для доменной (NTLM) группы]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=394197#p394197" />
			<content type="html"><![CDATA[<p>Прошу помощи,<br />Нужно заблокировать список ресурсов (допустим из файла) для определенной группы в домене.</p><p>Естсественно на фоне что всем остальным членам домена можно все как раньше.</p><p>Авторизация прозрачная через NTLM.</p><br /><p>Ну и сразу доп. вопрос можно ли пойти от обратного и дать доступ только к нужным сайтам и все.</p>]]></content>
			<author>
				<name><![CDATA[OverLocker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15796</uri>
			</author>
			<updated>2014-02-15T07:26:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=394197#p394197</id>
		</entry>
</feed>
