ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Degtyaryov <maga@beltel.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Прозрачный прокси: squid + iptables
Date: Fri, 15 Aug 2003 23:09:42 +0400
Message-ID: <3F3D2FF6.9070602@beltel.ru> (raw)
In-Reply-To: <3F3D28CA.6090106@rmts.donpac.ru>

Прокопьев Евгений wrote:
> Здравствуйте!
> 
> В Bandwith Limiting HOWTO и в IPTables Tutorial Андерсена написано, что 
> для организации прозрачного прокси достаточно строки
> 
> $IPTABLES -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 
> 3128
> 
> в стартовом скрипте iptables.
> 
> Однако при
> 
> # service iptables status | grep 3128
> REDIRECT   tcp  --  anywhere             anywhere           tcp dpt:http 
> redir ports 3128
> 
> и запущенном сквиде попытка достучаться до www.yandex.ru из IE (WinXP 
> под VMWare) завершается сообщением:
> 
> ERROR
> The requested URL could not be retrieved
> While trying to retrieve the URL: /
> The following error was encountered:
>     * Invalid URL
> Some aspect of the requested URL is incorrect. Possible problems:
>     * Missing or incorrect access protocol (should be `http://'' or 
> similar)
>     * Missing hostname
>     * Illegal double-escape in the URL-Path
>     * Illegal character in hostname; underscores are not allowed
> Your cache administrator is webmaster.
> 
> Если в сквиде принудительно указать прокси-сервер и порт, то все 
> работает как положено.
> 
> Что я сделал не так?
> 

[root@spb squid]# cat squid.conf|grep accel
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

-- 
С уважением, Сергей Дегтярев
XMMS : %s



  reply	other threads:[~2003-08-15 19:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-15 18:39 Прокопьев Евгений
2003-08-15 19:09 ` Sergey Degtyaryov [this message]
2003-08-18 10:58 ` Andrei M. Laptev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F3D2FF6.9070602@beltel.ru \
    --to=maga@beltel.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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