🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.os.linux.debian
Article #21623

Re: transparentne http proxy na innym kompie niz firewall

#21623
From: PaPA
Date: Thu, 29 Apr 2004 14:11
26 lines
1826 bytes
JACo wrote:
> Witam
> 
> Mam taki problem:
> Serwer A stoi w lokalnej sieci razem ze stacjami roboczymi. Na firewallu
> chcialbym przekierowywac wszystko co idzie na port 80 do portu na ktorym
> dziala Squid na serwerze A. Proxy powinno byc niewidoczne dla uzytkownikow.
> Myslalem ze uda sie to zrealizowac regula:
> iptables -t nat -A PREROUTING -j DNAT -p tcp -i eth1 --dport 80 --to
> ip_adres_A:3128
> niestety cos takiego nie dziala, nawet nie ma wpisow w logach Squida ze bylo
> polaczenie. Licznik bajtow przy regule rosnie po wykonaniu zapytania do
> serwera WWW z Internetu.
> Czy transparentne proxy na innym kompie niz firewall jest wogole mozliwe?
> 
> pozdrawiam
> 
> JACo

spruboj tak:
iptables -A PREROUTING -t nat -p tcp -d ip_natujacego_serwera --dport 80 
  -j DNAT --to ip_proxy:port_proxy

Z tym -d nie jestem pewien - ale zobacz

PaPA
Technical Details
Message-ID: <c6r2io$8qb$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <c6p430$nem$1@mamut.aster.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: PaPA <piotr@nospam.str.com.pl>
Newsgroups: alt.pl.comp.os.linux.debian
Subject: Re: transparentne http proxy na innym kompie niz firewall
Date: Thu, 29 Apr 2004 16:11:29 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 26
Message-ID: <c6r2io$8qb$1@nemesis.news.tpi.pl>
References: <c6p430$nem$1@mamut.aster.pl>
NNTP-Posting-Host: co254.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1083248025 9035 80.53.224.254 (29 Apr 2004 14:13:45 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 29 Apr 2004 14:13:45 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5
X-Accept-Language: en
In-Reply-To: <c6p430$nem$1@mamut.aster.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit