<?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=11212&amp;type=atom" />
	<updated>2011-02-24T12:19:02Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=11212</id>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=149268#p149268" />
			<content type="html"><![CDATA[<p>В идеале прикрутить бы как то <a href="http://lexi.ucoz.ru/oac/urlfilter.ini">вот этот</a> список к фильтру рекламы, так как он вырезает практически всю рекламу, которая попадается, хотя конечно тоже уже не очень актуально...</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-24T12:19:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=149268#p149268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=149259#p149259" />
			<content type="html"><![CDATA[<p>Всё работает отлично. Остался только один вопрос... Подскажите где взять актуальную базу блокировки... Больше всего меня интересуют базы рекламмы в рунете, а то сейчас к примеру заходишь на зайцев.нет или рутрекер.орг и такое ощущение что ничего и не установлено... Хотя конечно не могу сказать, что ничего не блочится, часть рекламы всё же удаляется.</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-24T12:07:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=149259#p149259</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148911#p148911" />
			<content type="html"><![CDATA[<p>Всё понял и протестил! Вроде работает! Спасибо огромное за помощь! Завтра буду проверять на работе <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T15:06:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148911#p148911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148910#p148910" />
			<content type="html"><![CDATA[<p>Спасибо. Понял. Всё вроде работает. Завтра буду тестить! <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p><p>Пробовал протестировать описанный в ссылке способом, но как то не вышло...</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T15:03:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148910#p148910</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148891#p148891" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Dormidont3 пишет:</cite><blockquote><p>Я в самом начале конфига squiGuard указал другую папку для логов, а папки /var/log/squidGuard/ вообще не существует...</p></blockquote></div><p>Так оно и работает по умолчанию. В моем примере путь к файлу журнала был указан принудительно. Можете удалить эту строку </p><div class="codebox"><pre><code>log /var/log/squidGuard/default.log</code></pre></div><p>или отредактировать с использованием вашего пути.</p><p>З.Ы. Всегда думайте над тем, что копируете из интернетов. Хоть количество вирусов в Linux стремится к нулю, но социальную инженерию никто не отменял =).</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-02-23T14:49:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148891#p148891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148881#p148881" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>[root@comp-Pentium-Dual-679ab3 log]# ps uax | grep squid
root      2424  0.0  0.2  10888  2844 ?        Ss   19:16   0:00 /usr/sbin/squid -D 
squid     2426  0.0  1.5  24424 15876 ?        S    19:16   0:01 (squid) -D 
squid     2427  0.7  0.2   4896  2800 ?        S    19:16   0:11 (squidGuard) -c /etc/squidGuard/squidGuard.conf 
squid     2435  0.7  0.2   4900  2800 ?        S    19:16   0:11 (squidGuard) -c /etc/squidGuard/squidGuard.conf 
squid     2436  0.7  0.2   4896  2800 ?        S    19:16   0:11 (squidGuard) -c /etc/squidGuard/squidGuard.conf 
squid     2437  0.6  0.2   4900  2796 ?        S    19:16   0:11 (squidGuard) -c /etc/squidGuard/squidGuard.conf 
squid     2438  0.7  0.2   4896  2796 ?        S    19:16   0:11 (squidGuard) -c /etc/squidGuard/squidGuard.conf 
squid     2439  0.0  0.0   2956   924 ?        S    19:16   0:00 (unlinkd) 
squid     2440  0.0  0.1   3244  1216 ?        S    19:16   0:00 (pinger) 
root      2655  0.0  0.0   2268   652 pts/4    S+   19:42   0:00 grep squid 
root     10557  0.0  0.1   2348  1200 pts/5    Ss+  Feb22   0:00 /bin/sh /usr/lib/alterator/backend3/squid-commit 
root     11229  0.0  0.2   6048  2388 ?        Ss   Feb21   0:00 /bin/su -s /bin/sh -l squid -c /usr/sbin/squidmill -d &quot;/var/log/squid/squidmill.db&quot; -B 1 -F &quot;/var/log/
squid    11257  0.0  0.6  10212  6992 ?        S    Feb21   0:44 /usr/sbin/squidmill -d /var/log/squid/squidmill.db -B 1 -F /var/log/squid/access.log 
squid    11400  0.0  0.0   3236   624 ?        S    Feb21   0:01 tail -F /var/log/squid/access.log </code></pre></div><p>Действительно стартовал. Спасибо. Только я не пойму... Я в самом начале конфига squiGuard указал другую папку для логов, а папки /var/log/squidGuard/ вообще не существует...</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T14:44:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148881#p148881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148873#p148873" />
			<content type="html"><![CDATA[<p>Вот тут надо поправить.</p><p><strong>squidGuard: can&#039;t write to logfile /var/log/squidGuard/default.log</strong></p><p>т.е. он не может записать в лог. Поправьте путь в вышеприведенной мной конфигурации на свой или обеспечьте права на запись в этот файл пользователю <strong>squid</strong>.</p><p>А так squidGuard стартовал и ждет информацию о запрошенном url от сквида=). Т.е. работает правильно. Запускайте прокси.<br />После запуска команда </p><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">ps aux | grep squid</div></p><p>Должна показать не только процесс самого демона сквида, но и запущенных потоков нашего редиректора.</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-02-23T14:38:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148873#p148873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148868#p148868" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>elve пишет:</cite><blockquote><p>Я в свое время сделал вот так:</p><div class="codebox"><pre><code>default {
        pass none
        log /var/log/squidGuard/default.log
}</code></pre></div><p>Если вам непонятно как эта конструкция работает и как ее составлять, то рекомедую почитать <a href="http://unixgems.jinr.ru/~lavr/squidguard.html">тут</a>.</p></blockquote></div><p>Я пользовался этой ссылкой, спасибо, действительно хороший материал. Ваш совет так же помог, но я немного в сомнении... Сейчас у меня такая ситуация</p><div class="codebox"><pre><code>[root@comp-Pentium-Dual-679ab3 squidGuard]# squidGuard -c /etc/squidGuard/squidGuard.conf -d 
2011-02-23 19:29:12 [2539] New setting: dbhome: /etc/squidGuard/blacklists
2011-02-23 19:29:12 [2539] New setting: logdir: /etc/squidGuard/log
2011-02-23 19:29:12 [2539] init domainlist /etc/squidGuard/blacklists/ads/domains
2011-02-23 19:29:12 [2539] init urllist /etc/squidGuard/blacklists/ads/urls
2011-02-23 19:29:12 [2539] init expressionlist /etc/squidGuard/blacklists/ads/expressions
2011-02-23 19:29:12 [2539] init domainlist /etc/squidGuard/blacklists/porn/domains
2011-02-23 19:29:19 [2539] init urllist /etc/squidGuard/blacklists/porn/urls
2011-02-23 19:29:19 [2539] init expressionlist /etc/squidGuard/blacklists/porn/expressions
2011-02-23 19:29:19 [2539] squidGuard: can&#039;t write to logfile /var/log/squidGuard/default.log
2011-02-23 19:29:19 [2539] squidGuard 1.4 started (1298471352.050)
2011-02-23 19:29:19 [2539] squidGuard ready for requests (1298471359.627)</code></pre></div><p>И всё, больше ничего не происходит... Это он уже работает или что то опять не так? К сожалению проверить не могу, так как сейчас работаю из дома по SSH мне сейчас как быть? просто терминал закрыть или опять какой то сбой? Почему у меня не вывелась строка для ввода команды? Или он долго обрабатывает и просто подождать?</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T14:33:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148868#p148868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148856#p148856" />
			<content type="html"><![CDATA[<p>Я в свое время сделал вот так:</p><div class="codebox"><pre><code>default {
        pass none
        log /var/log/squidGuard/default.log
}</code></pre></div><p>Если вам непонятно как эта конструкция работает и как ее составлять, то рекомедую почитать <a href="http://unixgems.jinr.ru/~lavr/squidguard.html">тут</a>.</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-02-23T14:26:01Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148856#p148856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148849#p148849" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>elve пишет:</cite><blockquote><p>А теперь следует обратить внимание вот на эту строку и приведенного вами лога:</p><p><strong>011-02-23 19:08:05 [2136] squidGuard: ACL destination local is not defined in configfile /etc/squidGuard/squidGuard.conf</strong></p><p>В конфиге squidGuard вам нужно описать dst local или же не использовать этот псевдоним в конструкции pass</p></blockquote></div><p>Можете подсказать как это правильнее сделать?</p>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T14:20:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148849#p148849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148844#p148844" />
			<content type="html"><![CDATA[<p>А теперь следует обратить внимание вот на эту строку и приведенного вами лога:</p><p><strong>011-02-23 19:08:05 [2136] squidGuard: ACL destination local is not defined in configfile /etc/squidGuard/squidGuard.conf</strong></p><p>В конфиге squidGuard вам нужно описать dst local или же не использовать этот псевдоним в конструкции pass</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-02-23T14:15:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148844#p148844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148840#p148840" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>elve пишет:</cite><blockquote><p><strong>Dormidont3</strong>, напишите в консоли </p><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">which squidGuard </div></p><p>и дайте вывод сюда</p><p>Файл <strong>/etc/squidGuard</strong> существует на самом деле? А какие на него выданы права? Почему он в <strong>/etc</strong> лежит, а не в <strong>/usr/bin</strong> ?</p></blockquote></div><p>действительно писал не правильно. Конфиг сквида поправил, сейчас сквид запускается, а вот squidGuard не хочет даже ручками...</p><div class="codebox"><pre><code>[root@comp-Pentium-Dual-679ab3 Documents]# squidGuard -c /etc/squidGuard/squidGuard.conf -d 
2011-02-23 19:07:57 [2136] New setting: dbhome: /etc/squidGuard/blacklists
2011-02-23 19:07:57 [2136] New setting: logdir: /etc/squidGuard/log
2011-02-23 19:07:57 [2136] init domainlist /etc/squidGuard/blacklists/ads/domains
2011-02-23 19:07:58 [2136] init urllist /etc/squidGuard/blacklists/ads/urls
2011-02-23 19:07:58 [2136] init expressionlist /etc/squidGuard/blacklists/ads/expressions
2011-02-23 19:07:58 [2136] init domainlist /etc/squidGuard/blacklists/porn/domains
2011-02-23 19:08:05 [2136] init urllist /etc/squidGuard/blacklists/porn/urls
2011-02-23 19:08:05 [2136] init expressionlist /etc/squidGuard/blacklists/porn/expressions
2011-02-23 19:08:05 [2136] squidGuard: ACL destination local is not defined in configfile /etc/squidGuard/squidGuard.conf
2011-02-23 19:08:05 [2136] Going into emergency mode</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-23T14:12:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148840#p148840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148828#p148828" />
			<content type="html"><![CDATA[<p><strong>Dormidont3</strong>, напишите в консоли </p><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">which squidGuard </div></p><p>и дайте вывод сюда</p><p>Файл <strong>/etc/squidGuard</strong> существует на самом деле? А какие на него выданы права? Почему он в <strong>/etc</strong> лежит, а не в <strong>/usr/bin</strong> ?</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-02-23T13:52:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148828#p148828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148551#p148551" />
			<content type="html"><![CDATA[<p>Убрал, не помогло...<br />вот лог сквида, а squidGuard логи не создаёт... по крайней мере папка указанная в конфиге пуста...<br /></p><div class="codebox"><pre><code>2011/02/23 03:38:59| cat cache.log
helperOpenServers: Starting 5/5 &#039;squidGuard&#039; processes
2011/02/23 03:38:59| ipcCreate: /etc/squidGuard: (13) Permission denied
2011/02/23 03:38:59| ipcCreate: /etc/squidGuard: (13) Permission denied
2011/02/23 03:38:59| ipcCreate: /etc/squidGuard: (13) Permission denied
2011/02/23 03:38:59| ipcCreate: /etc/squidGuard: (13) Permission denied
2011/02/23 03:38:59| User-Agent logging is disabled.
2011/02/23 03:38:59| Referer logging is disabled.
2011/02/23 03:38:59| ipcCreate: /etc/squidGuard: (13) Permission denied
2011/02/23 03:38:59| Unlinkd pipe opened on FD 18
2011/02/23 03:38:59| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2011/02/23 03:38:59| Swap maxSize 2097152 + 8192 KB, estimated 161949 objects
2011/02/23 03:38:59| Target number of buckets: 8097
2011/02/23 03:38:59| Using 8192 Store buckets
2011/02/23 03:38:59| Max Mem  size: 8192 KB
2011/02/23 03:38:59| Max Swap size: 2097152 KB
2011/02/23 03:38:59| Version 1 of swap file with LFS support detected... 
2011/02/23 03:38:59| Rebuilding storage in /var/spool/squid (DIRTY)
2011/02/23 03:38:59| Using Least Load store dir selection
2011/02/23 03:38:59| Set Current Directory to /var/spool/squid
2011/02/23 03:38:59| Loaded Icons.
2011/02/23 03:38:59| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 20.
2011/02/23 03:38:59| HTCP Disabled.
2011/02/23 03:38:59| Pinger socket opened on FD 22
2011/02/23 03:38:59| NETDB state reloaded; 895 entries, 7 msec
2011/02/23 03:38:59| Ready to serve requests.
2011/02/23 03:38:59| WARNING: redirector #1 (FD 9) exited
2011/02/23 03:38:59| WARNING: redirector #2 (FD 10) exited
2011/02/23 03:38:59| WARNING: redirector #3 (FD 11) exited
2011/02/23 03:38:59| WARNING: redirector #4 (FD 12) exited
2011/02/23 03:38:59| Too few redirector processes are running
FATAL: The redirector helpers are crashing too rapidly, need help!

Squid Cache (Version 3.0.STABLE19): Terminated abnormally.
CPU Usage: 0.068 seconds = 0.040 user + 0.028 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
    total space in arena:    3868 KB
    Ordinary blocks:         3852 KB      6 blks
    Small blocks:               0 KB      2 blks
    Holding blocks:          8376 KB     13 blks
    Free Small blocks:          0 KB
    Free Ordinary blocks:      15 KB
    Total in use:           12228 KB 316%
    Total free:                15 KB 0%</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dormidont3]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12625</uri>
			</author>
			<updated>2011-02-22T22:42:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148551#p148551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Не могу запустить squid+squidguard]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=148548#p148548" />
			<content type="html"><![CDATA[<p>А выложы все строки от последнего запуска которые начинаютса <br />starting squid ...<br />как то так. И если можна то лог squidGuarda<br />Попробуй вот тут в конфиге squidGuarda убрать эти строки он на них ругаетса. Где у тебя acl local его нету. Убери<br /></p><div class="codebox"><pre><code> default {
        pass     none
        redirect http://yandex.ru}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kisil]]></name>
				<uri>https://linuxforum.ru/profile.php?id=767</uri>
			</author>
			<updated>2011-02-22T22:26:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=148548#p148548</id>
		</entry>
</feed>
