<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Перенаправление запросов на родительский прокси Squid]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=14609&amp;type=atom" />
	<updated>2011-06-23T11:03:56Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=14609</id>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190155#p190155" />
			<content type="html"><![CDATA[<p>443 (https) не будет работать в прозрачном режиме ток если у людей ручками прописать.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-06-23T11:03:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190155#p190155</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190133#p190133" />
			<content type="html"><![CDATA[<p><strong>Yuriy2005</strong>, могу и ошибаться, но 443 порт он вроде бы поверх прокси работает, хотя проверить можно просто зайти на какой нибудь другой сайт.<br />Еще в cache.log должна отображаться инфа =)</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-06-23T09:11:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190133#p190133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190132#p190132" />
			<content type="html"><![CDATA[<p>2 i2ks<br />А! вы хотите сказать, что первые два TCP_DENIED проходят мимо моих правил?<br />Хм... тогда надо искать как я их пропустил...<br />Благодарю за подсказку. <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Буду смотреть.</p>]]></content>
			<author>
				<name><![CDATA[Yuriy2005]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18003</uri>
			</author>
			<updated>2011-06-23T09:08:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190132#p190132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190131#p190131" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Yuriy2005 пишет:</cite><blockquote><p>192.168.3.13 TCP_DENIED</p></blockquote></div><p>это говорит о том что обращение к ресурсу идет на прямую, мимо патерна.<br />По поводу acl надо подумать&nbsp; :rolleyes:</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-06-23T09:03:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190131#p190131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190126#p190126" />
			<content type="html"><![CDATA[<p>2 i2ks<br />я отбираю юзеров не по IP а по логину в AD. Мне понятен ваш немек, но проблема немного в другом. У меня нет проблем с перенаправлением трафика на родительский прокси, а проблема с его перенаправлением для определенной группы юзеров AD.<br />Я прошу прощения, может сумбурно объясняю.<br />Так вот, если я разрешаю перенаправление для всех, то все замечательно ходят на родительский прокси, но как только я пытаюсь ограничить перенаправление до определенной группы, то тут все встает. Никто не может попасть на сайт <a href="http://www.parent.domain">www.parent.domain</a>. Браузер говорит, что &quot;не возможно отобразить страницу&quot;, а в access.log появляется вышеупомянутые строки.<br />Теперь поясню еще один нюанс, родительский прокси - это прокси в коорпоративной сети, таких прокси у меня два и зачастую юзерам требуется использовать сайты из обоих прокси-серверов. Поэтому я устал постоянно перебивать настройки прокси в браузере и решил поднять squid, т.к. знаю, что от может заниматься такого рода перенаправлениями.</p>]]></content>
			<author>
				<name><![CDATA[Yuriy2005]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18003</uri>
			</author>
			<updated>2011-06-23T08:45:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190126#p190126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190118#p190118" />
			<content type="html"><![CDATA[<p><strong>Yuriy2005</strong>, <br /></p><div class="quotebox"><cite>Yuriy2005 пишет:</cite><blockquote><p>cache_peer 192.168.10.5 parent 3128 0 proxy-only</p></blockquote></div><div class="quotebox"><cite>Yuriy2005 пишет:</cite><blockquote><p>cache_peer 192.168.10.5 parent 3128 0 proxy-only<br />cache_peer_domain 192.168.10.5 parent.domain<br />cache_peer_access 192.168.10.5 allow AD_GROUP</p></blockquote></div><p><a href="http://www.visolve.com/squid/squid30/neighboursel.php#cache_peer">http://www.visolve.com/squid/squid30/ne … cache_peer</a></p><p><em><br />Example(s)<br />The following example could be used, if we want all requests from a specific IP address range to go to a specific cache server (for accounting purposes, for example). Here, all the requests from the 10.0.1.* range are passed to proxy.visolve.com, but all other requests are handled directly.</em></p><p><em>Using acls to select peers,<br />acl myNet src 10.0.0.0/255.255.255.0<br />acl cusNet src 10.0.1.0/255.255.255.0<br />acl all src 0.0.0.0/0.0.0.0<br />cache_peer proxy.visolve.com parent 3128 3130<br />cache_peer_access proxy.visolve.com allow custNet<br />cache_peer_access proxy.visolve.com deny all<br /></em></p><p>подробности здесь: <a href="http://www.visolve.com/squid/squid30/contents.php">http://www.visolve.com/squid/squid30/contents.php</a></p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-06-23T08:22:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190118#p190118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190117#p190117" />
			<content type="html"><![CDATA[<p>просто этот сайт по https работает.<br />Вот мой squid.conf:<br /></p><div class="codebox"><pre><code>auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 50
auth_param ntlm keep_alive on

auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 50
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

acl MY_DOMAIN proxy_auth REQUIRED

acl INTRA_URL url_regex &#039;/etc/squid/urls_for_internet&#039;

# Это наши доменные группы
external_acl_type ad_group %LOGIN /usr/lib/squid/wbinfo_group.pl

acl INTERNET_USERS external ad_group internetusers

acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80&lt;&gt;&lt;------&gt;# http
acl Safe_ports port 21&lt;&gt;&lt;------&gt;# ftp
acl Safe_ports port 443&gt;&lt;------&gt;# https
acl Safe_ports port 70&lt;&gt;&lt;------&gt;# gopher
acl Safe_ports port 210&gt;&lt;------&gt;# wais
acl Safe_ports port 1025-65535&lt;&gt;# unregistered ports
acl Safe_ports port 280&gt;&lt;------&gt;# http-mgmt
acl Safe_ports port 488&gt;&lt;------&gt;# gss-http
acl Safe_ports port 591&gt;&lt;------&gt;# filemaker
acl Safe_ports port 777&gt;&lt;------&gt;# multiling http

acl CONNECT method CONNECT
acl POST method POST

http_access allow POST
http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports

#always_direct allow SSL_ports CONNECT

# Заставим всех пользоваться родительским прокси
never_direct allow INTRA_URLS

http_access allow localhost
http_access allow INTRA_URL INTERNET_USERS
http_access deny all

http_port 192.168.3.4:3128

cache_peer 192.168.10.5 parent 3128 0 proxy-only
cache_peer_domain 192.168.10.5 .parent.domain
cache_peer_access 192.168.10.5 allow AD_GROUP


hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

access_log /var/log/squid/access.log squid

refresh_pattern ^ftp:&lt;-&gt;&lt;------&gt;1440&lt;--&gt;20%&lt;---&gt;10080
refresh_pattern ^gopher:&lt;------&gt;1440&lt;--&gt;0%&lt;----&gt;1440
refresh_pattern .&lt;-----&gt;&lt;------&gt;0&lt;-----&gt;20%&lt;---&gt;4320

acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache

maximum_object_size_in_memory 102 KB
dns_nameservers 192.168.3.5
visible_hostname proxy-router</code></pre></div><p>а про доступ к SSL что-то я не подумал...</p>]]></content>
			<author>
				<name><![CDATA[Yuriy2005]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18003</uri>
			</author>
			<updated>2011-06-23T08:22:09Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190117#p190117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190111#p190111" />
			<content type="html"><![CDATA[<p>А членам группы AD_GROUP разрешён доступ на тот сйт по 443 порту?<br />и почему по 443 именно пытаются?<br />И ещё, я в строке <br /></p><div class="quotebox"><blockquote><p>cache_peer 192.168.10.5 parent 3128 0 proxy-only</p></blockquote></div><p>после знака &quot;0&quot; добавил бы </p><div class="quotebox"><blockquote><p>no-query no-digest no-netdb-exchange default</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Vadimsky]]></name>
				<uri>https://linuxforum.ru/profile.php?id=411</uri>
			</author>
			<updated>2011-06-23T08:07:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190111#p190111</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Перенаправление запросов на родительский прокси Squid]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=190102#p190102" />
			<content type="html"><![CDATA[<p>Здравствуйте, уважаемые господа!</p><p>Столкнулся с проблемой перенаправления запросов на родительский прокси для определенной группы AD. Вот часть моего squid.conf:<br /></p><div class="codebox"><pre><code>cache_peer 192.168.10.5 parent 3128 0 proxy-only
cache_peer_domain 192.168.10.5 parent.domain
cache_peer_access 192.168.10.5 allow all</code></pre></div><p>При такой конфиге все работает, т.е. ВСЕ попадают на родительский проски и все идет замечательно, но мне требуется ограничить доступ и когда я делаю вот так<br /></p><div class="codebox"><pre><code>cache_peer 192.168.10.5 parent 3128 0 proxy-only
cache_peer_domain 192.168.10.5 parent.domain
cache_peer_access 192.168.10.5 allow AD_GROUP</code></pre></div><p>то никто попасть не может. В access.log появляются вот такие вот строки:<br /></p><div class="codebox"><pre><code>7      0 192.168.3.13 TCP_DENIED/407 4037 CONNECT datt.fr.world.socgen:443 - NONE/- text/html
3      2 192.168.3.13 TCP_DENIED/407 4194 CONNECT datt.fr.world.socgen:443 - NONE/- text/html
7     82 192.168.3.13 TCP_MISS/404 0 CONNECT datt.fr.world.socgen:443 USER DIRECT/- -</code></pre></div><p>но браузер говорит, что отобразить страницу невозможно.<br />Мне кажется, что я что-то где-то упустил. Перерыл все что могу, но все бесполезно. Без чужой помощи мне видать не разрешить эту задачу.</p>]]></content>
			<author>
				<name><![CDATA[Yuriy2005]]></name>
				<uri>https://linuxforum.ru/profile.php?id=18003</uri>
			</author>
			<updated>2011-06-23T07:04:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=190102#p190102</id>
		</entry>
</feed>
