<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Purrucker Page Blog &#187; Squid</title>
	<atom:link href="http://blog.purrucker.de/tag/squid/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.purrucker.de</link>
	<description>Informationstechnologie, Sport und anderes ...</description>
	<lastBuildDate>Sun, 01 Jan 2012 20:09:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Proxy-Benutzer mit unterschiedlichen Rechten bei einer Securepoint V2007nx</title>
		<link>http://blog.purrucker.de/2008/06/19/proxy-benutzer-mit-unterschiedlichen-rechten-bei-einer-securepoint-v2007nx/</link>
		<comments>http://blog.purrucker.de/2008/06/19/proxy-benutzer-mit-unterschiedlichen-rechten-bei-einer-securepoint-v2007nx/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 13:29:09 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Hersteller]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[Securepoint]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=82</guid>
		<description><![CDATA[Der integrierte Squid-Proxy der Securepoint V2007nx Software kennt normaler Weise nur Benutzer, die Internetzugriff haben. Darüber hinaus gibt es nur noch die Möglichkeit bestimmte Seiten für diese Benutzer zu sperren oder zu erlauben. Es kann jedoch sinnvoll sein unterschiedliche Gruppen &#8230; <a href="http://blog.purrucker.de/2008/06/19/proxy-benutzer-mit-unterschiedlichen-rechten-bei-einer-securepoint-v2007nx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Der integrierte Squid-Proxy der <a href="http://www.securepoint.de">Securepoint</a> V2007nx Software kennt normaler Weise nur Benutzer, die Internetzugriff haben. Darüber hinaus gibt es nur noch die Möglichkeit bestimmte Seiten für diese Benutzer zu sperren oder zu erlauben. Es kann jedoch sinnvoll sein unterschiedliche Gruppen von Benutzern einzurichten und diesen unterschiedliche Internetseiten zu erlauben.</p>
<p>Ich benötige z.B. immer wieder eine Gruppe von Benutzern die alle und eine die nur bestimmte Webseiten aufrufen darf. Zusätzlich sollen alle auf bestimmte Webseiten ohne Benutzerauthentifizierung zugreifen können und bestimmte Webseiten sollen generell gesperrt werden. Da man diese speziellen Berechtigungen leider nicht über den Securepoint Security Manager einstellen kann, muss man die Änderungen über das CLI (Command line interface) direkt auf der Firewall konfigurieren.</p>
<p>Die Securepoint V2007nx Software speichert die gesamte Konfiguration in sogenannten Templates in einer SQLite-Datenbank. Beim Booten werden aus den Templates die eigentlichen Konfigurationsdateien erstellt. Deshalb ist es nicht sinnvoll direkt die Konfigurationsdateien anzupassen. Beim nächsten Neustart würden diese Änderungen ansonsten wieder überschrieben. Es ist stattdessen notwendig, die Templates zu ändern.</p>
<p>Die Templates können nicht angepasst sondern nur komplett überschrieben werden. Deshalb sollte man sich zuerst das alte Template anzeigen lassen, um dies mit Copy &amp; Paste in einen Editor seiner Wahl zu kopieren. Danach kann man es anpassen und hinterher mit der geänderten Version das alte Template ersetzten.</p>
<p>Mit <code>show extc_template /etc/squid/squid.conf</code> kann man das Template für die zentrale Konfigurationsdatei von Squid anzeigen. Nachdem man es geändert hat kann man es mit <code>change extc_template /etc/squid/squid.conf</code> ersetzen.</p>
<p>Für meine Zwecke habe ich das Template wie folgt angepasst (die roten Zeilen habe ich geändert bzw. eingefügt):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#$Id: squid.conf 4902 2007-09-19 11:32:23Z basti $</span>
http_port           127.0.0.1:<span style="color: #000000;">49221</span> transparent
&nbsp;
<span style="color: #666666; font-style: italic;"># Kaskadierung</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_FORWARD}=1</span>
cache_peer <span style="color: #800000;">${FORWARD_PROXY_IP}</span> parent <span style="color: #800000;">${FORWARD_PROXY_PORT}</span> <span style="color: #000000;">0</span> default no-query
<span style="color: #666666; font-style: italic;">#ENDIF</span>
icp_port <span style="color: #000000;">0</span>
acl QUERY urlpath_regex cgi-bin \?
acl all src 0.0.0.0<span style="color: #000000; font-weight: bold;">/</span>0.0.0.0
no_cache deny all
cache_mem  <span style="color: #000000;">16</span> MB
cache_swap_low  <span style="color: #000000;">70</span>
cache_swap_high <span style="color: #000000;">75</span>
maximum_object_size <span style="color: #000000;">4096</span> KB
ipcache_size <span style="color: #000000;">1024</span>
ipcache_low  <span style="color: #000000;">70</span>
ipcache_high <span style="color: #000000;">75</span>
fqdncache_size <span style="color: #000000;">1024</span>
<span style="color: #666666; font-style: italic;">#cache_dir ufs  /var/spool/squid 1000 16 256</span>
cache_dir null <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #666666; font-style: italic;">#cache_access_log /var/log/squid/access.log</span>
cache_access_log <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #666666; font-style: italic;">#cache_log /var/log/squid/cache.log</span>
cache_log <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #666666; font-style: italic;">#cache_store_log /var/log/squid/store.log</span>
cache_store_log <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
emulate_httpd_log off
mime_table <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>squid<span style="color: #000000; font-weight: bold;">/</span>mime.conf
log_mime_hdrs off
pid_filename <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>squid.pid
debug_options ALL,<span style="color: #000000;">1</span>
log_fqdn off
ftp_user anonymous<span style="color: #000000; font-weight: bold;">@</span>foo
unlinkd_program <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>unlinkd
&nbsp;
<span style="color: #666666; font-style: italic;"># Authentisierung mit lokaler Datenbank</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LOCAL}=1</span>
auth_param basic program <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>ncsa_auth <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>squid<span style="color: #000000; font-weight: bold;">/</span>squid_user.dat
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Authentisierung mit Radius</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_RADIUS}=1</span>
auth_param basic program <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>squid_radius_auth <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>squid_radius_auth.conf
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Authentisierung mit LDAP oder AD</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LDAP}=1</span>
auth_param basic program <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>libexec<span style="color: #000000; font-weight: bold;">/</span>squid_spldap_auth <span style="color: #660033;">-h</span> <span style="color: #800000;">${GLOB_LDAP_URI}</span> <span style="color: #660033;">-d</span> <span style="color: #800000;">${GLOB_AD_DOMAIN}</span>
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
auth_param basic realm Securepoint Firewall
auth_param basic children <span style="color: #000000;">32</span>
auth_param basic credentialsttl <span style="color: #000000;">2</span> hours
refresh_pattern         ^<span style="color: #c20cb9; font-weight: bold;">ftp</span>:           <span style="color: #000000;">1440</span>    <span style="color: #000000;">20</span><span style="color: #000000; font-weight: bold;">%</span>     <span style="color: #000000;">10080</span>
refresh_pattern         ^gopher:        <span style="color: #000000;">1440</span>    <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span>      <span style="color: #000000;">1440</span>
refresh_pattern         .               <span style="color: #000000;">0</span>       <span style="color: #000000;">20</span><span style="color: #000000; font-weight: bold;">%</span>     <span style="color: #000000;">4320</span>
quick_abort_min <span style="color: #000000;">16</span> KB
quick_abort_max <span style="color: #000000;">16</span> KB
quick_abort_pct <span style="color: #000000;">95</span>
negative_ttl <span style="color: #000000;">5</span> minutes
positive_dns_ttl <span style="color: #000000;">6</span> hours
negative_dns_ttl <span style="color: #000000;">5</span> minutes
range_offset_limit <span style="color: #000000;">0</span> KB
connect_timeout <span style="color: #000000;">120</span> seconds
read_timeout <span style="color: #000000;">15</span> minutes
request_timeout <span style="color: #000000;">30</span> seconds
client_lifetime <span style="color: #000000;">1</span> day
half_closed_clients on
pconn_timeout <span style="color: #000000;">120</span> seconds
shutdown_lifetime <span style="color: #000000;">30</span> seconds
&nbsp;
<span style="color: #666666; font-style: italic;"># Authentisierunf erforderlich</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LOCAL}=1</span>
acl authentication proxy_auth REQUIRED
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_RADIUS}=1</span>
acl authentication proxy_auth REQUIRED
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LDAP}=1</span>
acl authentication proxy_auth REQUIRED
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Webseiten filtern</span>
acl porn url_regex <span style="color: #ff0000;">&quot;/etc/squid/denied.txt&quot;</span>
acl noporn url_regex <span style="color: #ff0000;">&quot;/etc/squid/nodenied.txt&quot;</span>
&nbsp;
acl manager proto cache_object
acl localhost src 127.0.0.1<span style="color: #000000; font-weight: bold;">/</span>255.255.255.255
acl SSL_ports port <span style="color: #000000;">443</span>
acl Safe_ports port <span style="color: #000000;">20</span> <span style="color: #000000;">21</span> <span style="color: #000000;">80</span> <span style="color: #000000;">81</span> <span style="color: #000000;">443</span> <span style="color: #000000;">1025</span>-<span style="color: #000000;">65535</span>
acl CONNECT method CONNECT
&nbsp;
acl usergroup1 proxy_auth other
acl usergroup2 proxy_auth <span style="color: #ff0000;">&quot;/etc/squid/unpriviligiert.txt&quot;</span>
acl usergroup3 proxy_auth <span style="color: #ff0000;">&quot;/etc/squid/priviligiert.txt&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Download Grösse beschränken</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_SIZE_LIMIT}=1</span>
reply_body_max_size <span style="color: #800000;">${REPLY_BODY_MAX_SIZE}</span> allow all
<span style="color: #666666; font-style: italic;">#ELSE</span>
reply_body_max_size <span style="color: #000000;">0</span> allow all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Kaskadierung</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_FORWARD}=1</span>
never_direct allow all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
http_access deny manager
http_access deny <span style="color: #000000; font-weight: bold;">!</span>Safe_ports
http_access deny CONNECT <span style="color: #000000; font-weight: bold;">!</span>SSL_ports
&nbsp;
<span style="color: #666666; font-style: italic;"># Zugriff erlaubt mit oder ohne Authentisierung</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_EXCEPTION_URL_LIST}=1</span>
acl alle dstdomain .ohl.de .ups.com .ups.de .dpd.net .dpd.de
http_access allow alle all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># http_access allow noporn authentication</span>
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_BANNED_URL_LIST}=1</span>
http_access allow noporn authentication usergroup1
http_access deny porn authentication usergroup2
http_access allow authentication usergroup3
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LOCAL}=1</span>
http_access allow authentication all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_RADIUS}=1</span>
http_access allow authentication all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#IF ${ENABLE_AUTH_LDAP}=1</span>
http_access allow authentication all
<span style="color: #666666; font-style: italic;">#ENDIF</span>
&nbsp;
icp_access deny all
miss_access allow all
ident_lookup_access deny all
cache_mgr admin<span style="color: #000000; font-weight: bold;">@</span>somewhere
cache_effective_user nobody
cache_effective_group nogroup
visible_hostname localhost
unique_hostname localhost
logfile_rotate <span style="color: #000000;">0</span>
tcp_recv_bufsize <span style="color: #000000;">0</span> bytes
memory_pools off
forwarded_for off
log_icp_queries off
icp_hit_stale off
minimum_direct_hops <span style="color: #000000;">4</span>
cachemgr_passwd disable all
store_avg_object_size <span style="color: #000000;">13</span> KB
store_objects_per_bucket <span style="color: #000000;">50</span>
client_db off
query_icmp off
test_reachability off
buffered_logs off
reload_into_ims off
error_directory <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>squid<span style="color: #000000; font-weight: bold;">/</span>errors
maximum_single_addr_tries <span style="color: #000000;">3</span>
uri_whitespace deny
prefer_direct on
strip_query_terms on
<span style="color: #000000; font-weight: bold;">**</span></pre></div></div>

<p>Durch die Änderungen in der Konfiguration von Squid gibt es die drei Benutzergruppen usergroup1, usergroup2 und usergroup3. Die Benutzer der usergroup3 stehen in der Datei &#8220;/etc/squid/priviligiert.txt&#8221; und dürfen alle Intenetseiten aufrufen. Die Benutzer der usergroup2 sind in der Datei &#8220;/etc/squid/unpriviligiert.txt&#8221; zu finden und dürfen nur die Internetseiten der No-Blocking-Liste aufrufen, die man über den Securepoint Security Manager einstellen kann. Alle anderen Benutzer sind in der usergroup1 und dürfen nur die Internetadressen aufrufen, die unter den Domänen &#8220;.ohl.de .ups.com .ups.de .dpd.net .dpd.de&#8221; zu finden sind.</p>
<p>Danach habe ich noch die beiden von mir eingebauten Konfigurationsdateien mit <code>add extc_template http_proxy /etc/squid/unpriviligiert.txt</code> bzw. <code>add extc_template http_proxy /etc/squid/priviligiert.txt</code> als Template angelegt. Sie sollten die Namen der jeweiligen Proxy-Benutzer enthalten. Wenn die Benutzer kristian, michael und oliver alle Webseiten anschauen dürfen sollte das Template /etc/squid/priviligiert.txt wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kristian
michael
oliver
<span style="color: #000000; font-weight: bold;">**</span></pre></div></div>

<p>Wenn des weiteren die Benutzer tester und heinrich nur die eingeschränkten Webseiten anschauen dürfen sollte das Template /etc/squid/unpriviligiert.txt wie folgt aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tester
heinrich
<span style="color: #000000; font-weight: bold;">**</span></pre></div></div>

<p>Zum Schluss müssen die Benutzer über den Securepoint Security Manager noch angelegt, der Gruppe HTTP-Proxy-Benutzer zugeordnet und der HTTP-Proxy neu gestartet werden. Danach sollten die unterschiedlichen Rechte für die Proxy-Benutzer funktionieren.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2008/06/19/proxy-benutzer-mit-unterschiedlichen-rechten-bei-einer-securepoint-v2007nx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Squid 3.0 in ein Active Directory von Microsoft integrieren</title>
		<link>http://blog.purrucker.de/2008/04/14/squid-30-in-ein-active-directory-von-microsoft-integrieren/</link>
		<comments>http://blog.purrucker.de/2008/04/14/squid-30-in-ein-active-directory-von-microsoft-integrieren/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 19:02:07 +0000</pubDate>
		<dc:creator>kristian</dc:creator>
				<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Kommunikationstechnik]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://blog.purrucker.de/?p=51</guid>
		<description><![CDATA[Nach unendlich langer Zeit ist der bekannte und beliebte Proxy Squid in der Version 3.0 erschienen. Die Entwicklung hat fast acht Jahre gedauert. Ich hatte eigentlich auch schon nicht mehr daran geglaubt, dass es jemals eine Version 3.0 geben würde. &#8230; <a href="http://blog.purrucker.de/2008/04/14/squid-30-in-ein-active-directory-von-microsoft-integrieren/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nach unendlich langer Zeit ist der bekannte und beliebte Proxy <a href="http://www.heise.de/newsticker/meldung/100697/">Squid in der Version 3.0</a> erschienen. Die Entwicklung hat fast acht Jahre gedauert. Ich hatte eigentlich auch schon nicht mehr daran geglaubt, dass es jemals eine Version 3.0 geben würde. Wie man den <a href="http://www.squid-cache.org/Versions/v3/3.0/">Release Notes</a> entnehmen kann, hat sich einiges geändert. So wurde Squid jetzt in C++ statt C entwickelt und kann das Internet Content Adaptation Protocol (<a href="http://www.icap-forum.org/">ICAP</a>). Grund genug für mich, mir die neue Version mal etwas näher anzusehen und in der Praxis zu testen. Deshalb habe ich mich für einen Squid 3.0 entschieden, als ich einen kleineren Proxy für ca. 30 Benutzer benötigte.</p>
<p><strong>Aufgabenstellung</strong><br />
Es wird ein HTTP-Proxy für ca. 30 Benutzer benötigt. Die Benutzer sollen sich für Internetzugriffe authentifizieren und teilweise nur zugriff auf bestimmte Internetseiten bekommen. Die Anmeldenamen und Passwörter dafür sind in einem Active Directory hinterlegt. Bei jedem Zugriff soll der Squid also bei einem Windows Domain Controller nachfragen, ob der Benutzer existiert und ob er Internetseiten sehen darf.</p>
<div align="center"><img src='http://blog.purrucker.de/wp-content/uploads/2008/03/http-proxy_20080326.png' alt='HTTP-Proxy' /></div>
<p><strong>Installation</strong><br />
Als Server habe ich einen IBM HS21 Blade mit einer 2 GHz Xeon Dual Core CPU, 1 GB Hauptspeicher und einem Debian Linux 4.0 (64 Bit) verwendet. Er hatte bereits einige andere Aufgaben, die ihn aber kaum auslasteten.<br />
Bei Squid habe ich die PRE5-Version verwendet. Diese kann man bei Debian 4.0 mit dem Befehlt <code>aptitude install squid3</code> installieren. Das STABLE2-Paket gibt es nur für den <a href="http://packages.debian.org/testing/">&#8220;testing-Zweig&#8221;</a> von Debian und es ist wegen einigen Abhängigkeiten nicht so einfach zu installieren. Alle aktuellen Debian-Pakete von Squid 3.0 sind unter <a href="http://packages.debian.org/squid3">http://packages.debian.org/squid3</a> zu finden.</p>
<p><strong>Konfiguration der Authentifizierung</strong><br />
Um die Anmeldenamen und Passwörter abzufragen, habe ich im Active Directory einen Benutzer <code>SquidAuth</code> und die Gruppe <code>InternetZugang</code> angelegt. Der Benutzer sollte aus Sicherheitsgründen keine vollen Admin-Rechte bekommen. Für das abfragen der Gruppenmitgliedschaft reicht es, wenn er Mitglied in der Gruppe <code>RAS- IAS-Server</code> ist. Falls man die Mitgliedschaften von Gruppen nicht braucht und nur den Benutzernamen und das Passwort gegen den Windows Domain Controller Authentifizieren möchte, reichen sogar normale Benutzerrechte!<br />
Danach habe ich die Konfigurationsdatei des Squid (/etc/squid3/squid.conf) entsprechend erweitert. Wenn der befragte Windows Domain Controller ein <code>Global Catalog Server</code> ist, sollte der Port <code>3268</code> anstelle von Port <code>389</code> (wie eigentlich bei LDAP üblich) verwendet werden.<br />
Falls sich ein Windows Domain Controller (der auch Global Catalog Server ist) mit der IP-Adresse <code>192.168.140.11</code> für die Domäne <code>DOMAIN.local</code> verantwortlich fühlt und das LAN den IP-Bereich <code>192.168.140.0/24</code> hat, könnte die Erweiterung etwa wie folgt aussehen:</p>
<pre><code>
# Authentifizierung an Active Directory
auth_param basic program /usr/lib/squid3/squid_ldap_auth -R -b "dc=DOMAIN,dc=local" -D "cn=SquidAuth,cn=Users,dc=DOMAIN,dc=local" -w "password" -f sAMAccountName=%s -h 192.168.140.11:3268
auth_param basic children 5
auth_param basic realm "Proxy Authentifizierung. Bitte geben Sie Ihren Benutzername und Ihr Passwort ein!"
auth_param credentialsttl 2 hours

external_acl_type InetGroup %LOGIN /usr/lib/squid3/squid_ldap_group -R -b "dc=DOMAIN,dc=local" -D "cn=SquidAuth,cn=Users,dc=DOMAIN,dc=local" -w "password" -f "(&#038;(objectclass=person)(sAMAccountName=%v) (memberof=cn=%a,cn=Users,dc=DOMAIN,dc=local))" -h 192.168.140.11:3268

acl localnet proxy_auth REQUIRED
acl InetAccess external InetGroup InternetZugang
http_access allow InetAccess
</code></pre>
<p>Danach fragt Squid beim Aufruf einer Webseite nach einem Benutzernamen und Passwort. Des weiteren erhalten nur noch die Mitglieder der Gruppe <code>InternetZugang</code> Internetzugriff.</p>
<p><strong>Fazit</strong><br />
Der Squid läuft jetzt seit 14 Tagen ohne Probleme. Bis jetzt habe ich keine Probleme mit Webseiten festgestellt. Sogar das Microsoft Windows Update läuft jetzt. Bei den alten Versionen von Squid funktionierte es meist nicht richtig.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.purrucker.de/2008/04/14/squid-30-in-ein-active-directory-von-microsoft-integrieren/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

