<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; squid + squidguard]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=25148&amp;type=atom" />
	<updated>2012-11-13T12:38:05Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=25148</id>
		<entry>
			<title type="html"><![CDATA[squid + squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=309047#p309047" />
			<content type="html"><![CDATA[<p>Всем привет! Подскажите вопрос. может кто нибудь сталкивался.<br />На rhel 6.3 висит сквид и сквидгард. Сквид работает, внутренние acl отрабатывают. Сквидгард в процессах висит. <br />root&nbsp; &nbsp; &nbsp; 3407&nbsp; 0.0&nbsp; 0.0&nbsp; 72964&nbsp; 2928 ?&nbsp; &nbsp; &nbsp; &nbsp; Ss&nbsp; &nbsp;16:05&nbsp; &nbsp;0:00 squid -f /etc/squid/squid.conf<br />squid&nbsp; &nbsp; &nbsp;3409&nbsp; 0.0&nbsp; 0.2&nbsp; 77020 11624 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squid) -f /etc/squid/squid.conf<br />squid&nbsp; &nbsp; &nbsp;3411&nbsp; 0.0&nbsp; 0.0&nbsp; 10252&nbsp; 1552 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squidGuard) -c /etc/squid/squidguard.conf<br />squid&nbsp; &nbsp; &nbsp;3412&nbsp; 0.0&nbsp; 0.0&nbsp; 10248&nbsp; 1528 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squidGuard) -c /etc/squid/squidguard.conf<br />squid&nbsp; &nbsp; &nbsp;3413&nbsp; 0.0&nbsp; 0.0&nbsp; 10248&nbsp; 1528 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squidGuard) -c /etc/squid/squidguard.conf<br />squid&nbsp; &nbsp; &nbsp;3414&nbsp; 0.0&nbsp; 0.0&nbsp; 10248&nbsp; 1544 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squidGuard) -c /etc/squid/squidguard.conf<br />squid&nbsp; &nbsp; &nbsp;3415&nbsp; 0.0&nbsp; 0.0&nbsp; 10248&nbsp; 1544 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (squidGuard) -c /etc/squid/squidguard.conf<br />squid&nbsp; &nbsp; &nbsp;3416&nbsp; 0.0&nbsp; 0.0&nbsp; 20076&nbsp; 1104 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 16:05&nbsp; &nbsp;0:00 (unlinkd)</p> <br /><p>Даю команду <br />echo &quot;http://www.porn.com 10.0.0.1/ - - GET&quot; | squidGuard -d -c /etc/squid/squidguard.conf</p><p>Выводит вроде верно есть редирект на нужный сайт</p><p>2012-11-13 16:36:07 [3512] New setting: dbhome: /var/lib/squidGuard/db<br />2012-11-13 16:36:07 [3512] New setting: logdir: /var/log/squidGuard<br />2012-11-13 16:36:07 [3512] init domainlist /var/lib/squidGuard/db/porn/domains<br />2012-11-13 16:36:07 [3512] loading dbfile /var/lib/squidGuard/db/porn/domains.db<br />2012-11-13 16:36:07 [3512] init urllist /var/lib/squidGuard/db/porn/urls<br />2012-11-13 16:36:07 [3512] loading dbfile /var/lib/squidGuard/db/porn/urls.db<br />2012-11-13 16:36:07 [3512] init domainlist /var/lib/squidGuard/db/socialnet/domains<br />2012-11-13 16:36:07 [3512] loading dbfile /var/lib/squidGuard/db/socialnet/domains.db<br />2012-11-13 16:36:07 [3512] init urllist /var/lib/squidGuard/db/socialnet/urls<br />2012-11-13 16:36:07 [3512] loading dbfile /var/lib/squidGuard/db/socialnet/urls.db<br />2012-11-13 16:36:07 [3512] squidGuard 1.3 started (1352810167.011)<br />2012-11-13 16:36:07 [3512] squidGuard ready for requests (1352810167.013)<br />2012-11-13 16:36:07 [3512] source not found<br />2012-11-13 16:36:07 [3512] no ACL matching source, using default<br /><a href="http://fnkc.ru">http://fnkc.ru</a> 10.0.0.1/- - -<br />2012-11-13 16:36:07 [3512] squidGuard stopped (1352810167.013)</p><p>А на машине где сквид стоит шлюзом нет редиректа((. Не могу понять в чем дело <br />&nbsp; Может в этом?<br /> sudo -u squid squidguard -c /etc/squid/squidguard.conf -d -C all<br />Вывод<br />2012-11-13 18:09:38 [3769] New setting: dbhome: /var/lib/squidGuard/db<br />2012-11-13 18:09:38 [3769] New setting: logdir: /var/log/squidGuard<br />2012-11-13 18:09:38 [3769] init domainlist /var/lib/squidGuard/db/porn/domains<br />2012-11-13 18:09:38 [3769] Error db_open: Permission denied<br />2012-11-13 18:09:38 [3769] going into emergency mode</p><p>Хотя какие только права не выставлял все без толку .Точно так все делал на ALT Linux 6 спт все норм работает((</p>]]></content>
			<author>
				<name><![CDATA[bass_v]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26545</uri>
			</author>
			<updated>2012-11-13T12:38:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=309047#p309047</id>
		</entry>
</feed>
