Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 1999 10:15:43 +0400 (MSD)
From:      "Vladimir B. Grebenschikov" <vova@express.ru>
To:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: IPFW configuration as a transparent proxy
Message-ID:  <Pine.BSF.3.96.990915100916.8136B-100000@radiance.plugcom.ru>
In-Reply-To: <028101befef6$50f47300$1ad2d9ce@work.highcaliber.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 14 Sep 1999, Andre Chang wrote:

> ipfw add 500 fwd 10.0.0.1,80 log tcp from 10.0.0.100 to any 80 in recv fxp1
> 
> For testing purposes I specified logging and the actual ip of the client.
> 
> The logs show a matched rule when I attempt to open the browser:
> ipfw: 500 Forward to 10.0.0.1:80 TCP 10.0.0.100:1158 204.141.86.3:80 in via
> fxp1
> 
> This looks ok but then the browser returns an unable to connect message. I
> cant seem to figure out what is wrong here. Any insight will be greatly
> appreciated. Thanks for the existing comments.

By my opinion problem is in behevior of software listening 10.0.0.1:80
it must be not standart proxy (like squid)

standart proxy listens one address and got requests with full URL like:
GET http://www.somwhere.net/path/here.html HTTP/1.0

but your browser may send requests without protocol and hostname like:
GET /path/here.html HTTP/1.0

so software, listening 10.0.0.1:80 must got destanation IP from
request and insert it in proxy requset

you can play with telnet to chechk how it works

standart software for this need present in ports and called tranproxy
but it designed to work with ipfilter, not IPFW

--
TSB Russian Express, Moscow
Vladimir B. Grebenschikov, vova@express.ru



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990915100916.8136B-100000>