* [Comm] Как развернуть SQUID ? @ 2008-10-09 15:56 Vitalik Salomatin 2008-10-09 16:37 ` Kharitonov A. Dmitry ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Vitalik Salomatin @ 2008-10-09 15:56 UTC (permalink / raw) To: community При обращении на мой Web сервер по http я командой iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 весь трафик, приходящий на порт 80 перенаправляю на порт 3128 Помечаю пакеты iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK --set-mark 2 Как повернуть их на мой squid? чтобы закачивали только через прокси. Спасибо. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как развернуть SQUID ? 2008-10-09 15:56 [Comm] Как развернуть SQUID ? Vitalik Salomatin @ 2008-10-09 16:37 ` Kharitonov A. Dmitry 2008-10-09 17:23 ` Vitalik Salomatin 2008-10-09 16:49 ` Kharitonov A. Dmitry 2008-10-10 17:10 ` Vladimir V. Kamarzin 2 siblings, 1 reply; 6+ messages in thread From: Kharitonov A. Dmitry @ 2008-10-09 16:37 UTC (permalink / raw) To: Vitalik Salomatin, ALT Linux Community general discussions Vitalik Salomatin пишет: > При обращении на мой Web сервер по http я командой > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 > весь трафик, приходящий на порт 80 перенаправляю на порт 3128 > > Помечаю пакеты > > iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK --set-mark 2 > > Как повернуть их на мой squid? > > чтобы закачивали только через прокси. > > Спасибо. > в конфигурации squida # #Default: # http_port 3128 # # Squid normally listens to port 3128 http_port 3128 transparent ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как развернуть SQUID ? 2008-10-09 16:37 ` Kharitonov A. Dmitry @ 2008-10-09 17:23 ` Vitalik Salomatin 2008-10-10 2:58 ` Kharitonov A. Dmitry 0 siblings, 1 reply; 6+ messages in thread From: Vitalik Salomatin @ 2008-10-09 17:23 UTC (permalink / raw) To: community Подгрузил, не работает. Сообщает: Во время обработки запроса: GET / HTTP/1.1 Host: 10.48.5.45 User-Agent: Mozilla/5.0 (X11; U; Linux i686; uk-UA; rv:1.8.1.6) Gecko/20070802 Firefox/2.0.0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Произошла следующая ошибка: * Неверный запрос. Некоторые аспекты HTTP запроса неправильны. Возможные проблемы: * Отсутствует либо неизвестен метод запроса (GET, POST) * Отсутствует URL * Отсутствует HTTP идентификатор (HTTP/1.0) * Запрос слишком велик * Не указан Content-Length для запросов POST или PUT * Недопустимый символ в имени сервера; подчёркивания недопустимы ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как развернуть SQUID ? 2008-10-09 17:23 ` Vitalik Salomatin @ 2008-10-10 2:58 ` Kharitonov A. Dmitry 0 siblings, 0 replies; 6+ messages in thread From: Kharitonov A. Dmitry @ 2008-10-10 2:58 UTC (permalink / raw) To: Vitalik Salomatin, ALT Linux Community general discussions > Подгрузил, не работает. > Сообщает: > > Во время обработки запроса: > > GET / HTTP/1.1 > Host: 10.48.5.45 > User-Agent: Mozilla/5.0 (X11; U; Linux i686; uk-UA; rv:1.8.1.6) Gecko/20070802 Firefox/2.0.0.6 > Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 > Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3 > Accept-Encoding: gzip,deflate > Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7 > Keep-Alive: 300 > Connection: keep-alive > > > > Произошла следующая ошибка: > > * Неверный запрос. > > Некоторые аспекты HTTP запроса неправильны. Возможные проблемы: > > * Отсутствует либо неизвестен метод запроса (GET, POST) > * Отсутствует URL > * Отсутствует HTTP идентификатор (HTTP/1.0) > * Запрос слишком велик > * Не указан Content-Length для запросов POST или PUT > * Недопустимый символ в имени сервера; подчёркивания недопустимы > > Похоже редирект работает. squid не переведен в режим транспарент. Поставьте в конфигурации squida параметр transparent, не забудьте перезапустить squid ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как развернуть SQUID ? 2008-10-09 15:56 [Comm] Как развернуть SQUID ? Vitalik Salomatin 2008-10-09 16:37 ` Kharitonov A. Dmitry @ 2008-10-09 16:49 ` Kharitonov A. Dmitry 2008-10-10 17:10 ` Vladimir V. Kamarzin 2 siblings, 0 replies; 6+ messages in thread From: Kharitonov A. Dmitry @ 2008-10-09 16:49 UTC (permalink / raw) To: Vitalik Salomatin, ALT Linux Community general discussions Vitalik Salomatin пишет: > При обращении на мой Web сервер по http я командой > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 > А модуль redirect подгружен? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Comm] Как развернуть SQUID ? 2008-10-09 15:56 [Comm] Как развернуть SQUID ? Vitalik Salomatin 2008-10-09 16:37 ` Kharitonov A. Dmitry 2008-10-09 16:49 ` Kharitonov A. Dmitry @ 2008-10-10 17:10 ` Vladimir V. Kamarzin 2 siblings, 0 replies; 6+ messages in thread From: Vladimir V. Kamarzin @ 2008-10-10 17:10 UTC (permalink / raw) To: community >>>>> On 09 Окт 2008 at 21:56 "VS" == Vitalik Salomatin writes: VS> При обращении на мой Web сервер по http я командой VS> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128 VS> весь трафик, приходящий на порт 80 перенаправляю на порт 3128 Реверс-прокси для веб-сервера лучше делать nginx-ом, а не сквидом. -- Собственно говоря, пакет glibc предназначен для того, чтобы не потерять разные части glibc, если только вы не знаете заранее, что они не все вам нужны. -- ldv in community@ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-10-10 17:10 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-10-09 15:56 [Comm] Как развернуть SQUID ? Vitalik Salomatin 2008-10-09 16:37 ` Kharitonov A. Dmitry 2008-10-09 17:23 ` Vitalik Salomatin 2008-10-10 2:58 ` Kharitonov A. Dmitry 2008-10-09 16:49 ` Kharitonov A. Dmitry 2008-10-10 17:10 ` Vladimir V. Kamarzin
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git