|
Re: lug-bg: Iptables Port Redirection ot Squid Port - Problem
- Subject: Re: lug-bg: Iptables Port Redirection ot Squid Port - Problem
- From: gf@xxxxxx (Georgi Chorbadzhiyski)
- Date: Wed, 17 Apr 2002 19:22:47 +0300
Vesselin Kolev wrote:
> Zdraveite...
>
> Imam malko stranen problem.
>
> Iskam da nakaram zaiavkite na kolegite mi kym 80/tcp port
> na vynshni mashini da se obsluzhvat ot squid-a, a ne da
> minavat directno. Na routera ima squid i iskam da redirectna
> paketite za portove 80/tcp kym port 8080/tcp na routera,
> t.e. kym http-alt porta.
>
> Za da redirectvaneto na port izpolzva slednata configuracia:
>
> iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port
> 8080
>
> I taka sega veche ima prenasochvane na zaiavkite. Obache kato
> nabludavam lo-faila na squid-a ustanoviavam, che pri
> redirectvane zaiavkite se podavat BEZ pyt i protocol...
>
> T.e. ako klientskata mashina iska da izvika :
>
> http://www.lcpe.uni-sofia.bg/test.html
>
> zaiavkata kam squida e /test.html, t.e. v neia lispva
> http://www.lcpe.uni-sofia.bg i razbira se na clienta se
> vryshta greshka.
>
> Tozi problem go niama, ako browsera na clientskata mashina
> ima nastroika za proxy. Ako ima nastroika za proxy i podade
> zaiavkata... tia dostiga zaedno s protocola i pytia i se obsluzhva
> normalno...
>
> Squid-a e 2.4.STABLE4. squid.conf faila mozhete da pregledate
> tuk: http://e-lib.lcpe.uni-sofia.bg/squid.conf
>
> Bih bil mnogo blagodaren, ako niakoi znae kak da reshi tozi problem
Lipsvat ti tezi redove vav squid.conf
httpd_accel_host virtual
httpd_accel_port 8080
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|